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/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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pathchain-1.1.0.tar.gz.
File metadata
- Download URL: pathchain-1.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aecdf95a1c34bd23037ef481c58ceeca995873958dc951118e3f1faa05647726
|
|
| MD5 |
7bf1fc2b3bc3bc44d7b3ca568e3790f4
|
|
| BLAKE2b-256 |
85008c8c0fe4f6e99d42174b52aef00f6e19342d0f439966517c8f1e03757574
|
File details
Details for the file pathchain-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pathchain-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e6ab70043afc83c0dcf026a3fe3722cbc315a099af5cbc2e1d6a74a202f2bf0
|
|
| MD5 |
05e3fe3a15a86e31651b081e1f6bfe41
|
|
| BLAKE2b-256 |
2645f208a9ad5849e9d90203b0635d5ea9d4b72b3bf5d6f78f3f6c647fa9e9b8
|