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.1.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.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pathchain-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 485829643ee15aa4262cd717d2da852305ee6b6dc0b9eb7470ea1ed5c2f1f405
MD5 b6a7c917d57c618e25a712ae7988ff5e
BLAKE2b-256 9e91cb5548b958efe451c6cc740be637b763854ac7f40fafb76dd47e4d177196

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pathchain-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 094c9492831517576a87cd0cbbf0f115817cbf35c8f0482ff70c85bb00e4c785
MD5 74a86c3582eee5374c50410d6e2438af
BLAKE2b-256 3158f13738f1453183b0083696f11dbc3aa4e42b578fe886ba634e30161be0a5

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