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
Metadata
Release files for universal-pathlib-edge 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| universal_pathlib_edge-0.0.13.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| universal_pathlib_edge-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.5 kB
Release files / universal_pathlib_edge-0.0.13.tar.gz
| Download URL | universal_pathlib_edge-0.0.13.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b803c41092b6262d3b432288c12f874217505a5368a4f4ad934004c6ad5a887a
|
|
BLAKE2b-256 checksum How to use checksums |
9b910bf5d0b735ab6d996949749975f1b3ac2479cd1f007d7c770719b595dbdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / universal_pathlib_edge-0.0.13-py3-none-any.whl
| Download URL | universal_pathlib_edge-0.0.13-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c70bdb78ff8ddd802aef8725fe0c08f5856db042d0ebdd1ea6cc365678135c1c
|
|
BLAKE2b-256 checksum How to use checksums |
f307710e70d8c812cd526502c104df8366c3791f9d020140460be896089ab709
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|