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.10.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for universal_pathlib-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4a601578010b8e9b8b96e886578ad5f13870e1ad5fb50d304385d760da2be90 |
|
MD5 | bac0013a68fade062db84499e023f4d2 |
|
BLAKE2b-256 | a1fca5156aa3d338c3a3b10e5f5db185a5d7bf8ac6bf2e2d7054c3d59fdaaa54 |