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.15.tar.gz (16.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.15-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: universal_pathlib-0.0.15.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for universal_pathlib-0.0.15.tar.gz
Algorithm Hash digest
SHA256 862decbf5e921638639b9824bdf56b3e92f29f6385974b5664abda6304e731da
MD5 f9f7164d37805b40ac7f2fddafd4a0d0
BLAKE2b-256 31441185989971b28745ff7451f2c7e946019fcb3f9e8d2d76838bb972377e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for universal_pathlib-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 b90c2506bcec95f73d1a46eb46fad0e82a425bfc3af35cc06a17eca873ab66c7
MD5 5ffe083b38393d4f9721453b3e41bc24
BLAKE2b-256 213493edadd25a4fb9b03f4b5ad1fd5c680b6574311320cd0d534b5282e7c1c5

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