Skip to main content

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


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.9.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

universal_pathlib-0.0.9-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file universal_pathlib-0.0.9.tar.gz.

File metadata

  • Download URL: universal_pathlib-0.0.9.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for universal_pathlib-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c93db74fc214407fd7d6e3a5620e31ea0632219835257b25974719927b7ed7d4
MD5 949584bf19258bf12fd0935dda2cad36
BLAKE2b-256 1003620a7d73eeffae1b374aef4e3de566085d878314b2cff2258935f5439320

See more details on using hashes here.

File details

Details for the file universal_pathlib-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: universal_pathlib-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for universal_pathlib-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 72b97b83013a354d8beb7657332526285ce1f83cbe2a180840f389b1f892e0ab
MD5 07456d32e15f76ccfc04acdc69e3778e
BLAKE2b-256 c25d849a7ff7db4a66de0b3dbd6cf8975a6f3189da7ea950ecfe1373cebe07a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page