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_edge-0.0.13.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

universal_pathlib_edge-0.0.13-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file universal_pathlib_edge-0.0.13.tar.gz.

File metadata

  • Download URL: universal_pathlib_edge-0.0.13.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for universal_pathlib_edge-0.0.13.tar.gz
Algorithm Hash digest
SHA256 b803c41092b6262d3b432288c12f874217505a5368a4f4ad934004c6ad5a887a
MD5 0d42226192681b9783a9d5f58099c396
BLAKE2b-256 9b910bf5d0b735ab6d996949749975f1b3ac2479cd1f007d7c770719b595dbdc

See more details on using hashes here.

File details

Details for the file universal_pathlib_edge-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: universal_pathlib_edge-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for universal_pathlib_edge-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 c70bdb78ff8ddd802aef8725fe0c08f5856db042d0ebdd1ea6cc365678135c1c
MD5 5b89b577832383c3e57d4d1b8e108d90
BLAKE2b-256 f307710e70d8c812cd526502c104df8366c3791f9d020140460be896089ab709

See more details on using hashes here.

Supported by

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