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.11.tar.gz (14.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.11-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: universal_pathlib-0.0.11.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for universal_pathlib-0.0.11.tar.gz
Algorithm Hash digest
SHA256 9954b96269c86996d618569e7fd69ac505cc74fdafa7116a3a7766be6769d008
MD5 b7d0ebdcd8ea69ed805c487dfd6019b3
BLAKE2b-256 411e94167118d74b4f1109a8c44c275ef052a6cf1e183091d2f283fb8690c7ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: universal_pathlib-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for universal_pathlib-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 103fde978059501e2adc56941909a571ad8ed8625278d1150ecd45e1b46c579c
MD5 1d08732eb1241c9d63a86dbb1b47f4c3
BLAKE2b-256 535eea6f84587a25d0587f6f2fbf9918850205fc4bd84afcf8802fd2774c2e3c

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