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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file universal_pathlib-0.0.16.tar.gz.
File metadata
- Download URL: universal_pathlib-0.0.16.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd483243650e2b6b6136ab1f2c707d0194f3ce479afad867a8e3cbb73380f334
|
|
| MD5 |
41d8df27a1e64ae0e56f11b8380ed041
|
|
| BLAKE2b-256 |
58dc88f227d8cbc4aa3076a0f36486ffb8f0da5e6dcefe0841e5a788497b0fb1
|
File details
Details for the file universal_pathlib-0.0.16-py3-none-any.whl.
File metadata
- Download URL: universal_pathlib-0.0.16-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a499a10e0e83559073c6199379e6d8391c6d0ec448c2c3ffdd9d9baefa03e9
|
|
| MD5 |
8cd01dd57c1af8d2f2b71cce4732a127
|
|
| BLAKE2b-256 |
a24697b407887ea65675265c52f4670b45f8caf42ac539e95f17a14f9bbabb0d
|