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)
| File | Size | Uploaded | |
|---|---|---|---|
| pathchain-1.2.0.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|