{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/5"}],"enrichment":{"capability":"Provides a unified interface to access local and remote files (HTTP, HTTPS, S3, Google Cloud Storage, HuggingFace Hub) with automatic caching and archive extraction.","skillfed_tags":["file-caching","cloud-storage","ml-workflow"],"use_cases":["Download and cache model weights from HuggingFace Hub in a single call without manual path logic.","Build data pipelines that work with datasets stored on S3, Google Cloud Storage, or local disk using identical code.","Extract a specific file from a remote tarball or zipfile and cache it locally without manual archive handling.","Authenticate to private repositories using bearer tokens and cache the downloaded files automatically."],"what_it_does":"cached-path is a file utility that abstracts away the difference between local paths and remote URLs, letting you treat them uniformly. Pass it a local path, HTTP URL, S3 URI, Google Cloud Storage path, or HuggingFace Hub reference\u2014it checks if the file exists locally, downloads and caches it if remote, and returns the local path. It also supports extracting specific files from tar and zip archives on the fly.\n\nThe package is built for AI/ML workflows where models and datasets live in different places (local disk, cloud storage, model hubs) and you want a single code path to handle all of them. It handles authentication via custom headers, manages a configurable cache directory (defaulting to ~/.cache/cached_path/), and uses filelock to coordinate concurrent access.","worth_installing":"Yes. The package solves a real problem in ML/data workflows\u2014unifying file access across local and cloud storage\u2014with low install friction, active maintenance, no known vulnerabilities, and permissive licensing. It's a thin, focused utility that does one thing well and integrates cleanly with common cloud providers and model hubs."},"id":"cached-path","links":{"html":"https://skillfed.io/packages/cached-path","md":"https://skillfed.io/packages/cached-path.md","pypi":"https://pypi.org/project/cached-path/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-20","license_spdx":null,"license_treatment":"permissive","name":"cached-path","python_support":"supports_current","summary":"A file utility for accessing both local and remote files through a unified interface"},"popularity":{"monthly_downloads":554689,"position":6032,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.8.10"}
