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

Uploaded Python 3

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

Hashes for universal_pathlib-0.0.16.tar.gz
Algorithm Hash digest
SHA256 cd483243650e2b6b6136ab1f2c707d0194f3ce479afad867a8e3cbb73380f334
MD5 41d8df27a1e64ae0e56f11b8380ed041
BLAKE2b-256 58dc88f227d8cbc4aa3076a0f36486ffb8f0da5e6dcefe0841e5a788497b0fb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for universal_pathlib-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 07a499a10e0e83559073c6199379e6d8391c6d0ec448c2c3ffdd9d9baefa03e9
MD5 8cd01dd57c1af8d2f2b71cce4732a127
BLAKE2b-256 a24697b407887ea65675265c52f4670b45f8caf42ac539e95f17a14f9bbabb0d

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