Pathlib API extended to use fsspec backends
Project description
Universal Pathlib
Universal Pathlib is a python library that aims to extend Python's built-in pathlib.Path
api to use a variety of backend filesystems using fsspec
Installation
Pypi
pip install universal_pathlib
conda
conda install -c conda-forge universal_pathlib
Basic Usage
>>> from upath import UPath
>>> path = UPath("file:/some/filepath.py")
>>> path.name
filepath.py
>>> path.stem
filepath
>>> path.suffix
.py
>>> path.exists()
True
Some backends may require other dependencies. For example to work with S3 paths, s3fs
is required.
For more examples, see the example notebook here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
universal_pathlib-0.0.14.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for universal_pathlib-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927e4205fe590eef4da71ff60d2371013c44952da570b480e7e3b1fcaa98cd97 |
|
MD5 | 52773b7fdf2432bb2b6339ce6723eb93 |
|
BLAKE2b-256 | 9e7011cc5343f480ab6a7cae7c71d393ccce0971c4cdbcdc860a3879360b4df6 |