Skip to main content

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/python-pathchain.git
  • Clone the repository (SSH):
git clone git@github.com:kolja-wagner/python-pathchain.git
  • Install dependencies
pip install -e .[dev,doc]

Links

Release files for pathchain 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pathchain 1.2.0
File Size Uploaded
pathchain-1.2.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pathchain 1.2.0
File Interpreter ABI Platform
pathchain-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / pathchain-1.2.0.tar.gz

Download URL pathchain-1.2.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4e37e2ab2eabc03adeb150c0bd6e7c51e4384ae1fc4f8599bdaf2873d0e0f350
BLAKE2b-256 checksum
How to use checksums
a2fa12181cb72802535d9282e4f38169f0b9ec83789f2c5e89aaf91a3f0b85f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / pathchain-1.2.0-py3-none-any.whl

Download URL pathchain-1.2.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc69b933699ea77fe90e373ef51cdcecdbf22f870f47249df4c6d25a35d57fc7
BLAKE2b-256 checksum
How to use checksums
20bd141a3e264a811c0d4c1b697aa93a96c09c18dd96a81dbb69cfb73f3d43ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page