Skip to main content

A drop-in pathlib.Path replacement with fully chainable methods.

Project description

pathchain – chainable extension of pathlib.Path

During a data science project and building modular functions with the Dataset.pipe methods provided by xarray.Dataset, a subclass of pathlib.Path was written to make a path pipeline combining Path.joinpath and Path.mkdir.

Instead of copying this class between projects, it is made available as a package on PyPI.

A similar approach can be found in the ubelt.Path class from the ubelt package, although ubelt provides a variety of different extensions to the standard library, and subclasses str instead of pathlib.Path.


Install

Install the package using pip:

pip install pathchain

Develop

  • Clone the repository (HTTPS):
git clone https://github.com/kolja-wagner/pathchain.git
  • Clone the repository (SSH):
git clone git@github.com:kolja-wagner/pathchain.git
  • Install dependencies
pip install -e .[dev,doc]

Links

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

pathchain-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

pathchain-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file pathchain-1.0.0.tar.gz.

File metadata

  • Download URL: pathchain-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for pathchain-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d804d5bf3b55a6ba29d53aadafa69a802b5c53231b7a4ccb3e99e48b1e49ac10
MD5 d98975e6325b68ab96a05680d7ff25d3
BLAKE2b-256 9d53749e8215025009c9ff77920fb0366b8d20df94c89f2b0689ecd534bac68a

See more details on using hashes here.

File details

Details for the file pathchain-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pathchain-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for pathchain-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50935680b1eeeed5dff469bae74bd4788e2ae2649339f7e2ee7538baad6d4da5
MD5 31ab4f35c8892f9bd9dbd07bf7c1dfca
BLAKE2b-256 1801f65ad17bb9505851473871ae3146701cf43dbd427c7fb8b9daf6c0f673cd

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