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 the package using pip:
pip install pathchain- 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]