Skip to content

kolja-wagner/python-pathchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a minimal subclass to pathlib.Path to make methods chainable.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages