A file utility for accessing both local and remote files through a unified interface
Maintained. Last release 8 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install cached-pathcached-path
A file utility library that provides a unified, simple interface for accessing both local and remote files. This can be used behind other APIs that need to access files agnostic to where they are located.
Quick links
Installation
cached-path requires Python 3.7 or later.
Installing with pip
cached-path is available on PyPI. Just run
pip install cached-path
Installing from source
To install cached-path from source, first clone the repository:
git clone https://github.com/allenai/cached_path.git
cd cached_path
Then run
pip install -e .
Usage
from cached_path import cached_path