Traverse the file tree.
pip install walkmate
Documentation and more detailed examples are hosted on Github Pages.
Given a multi-level directory structure:
.
├── one.py
├── two.py
└── child
└── three.py
We can list all the files tree:
>>> tree("test/fixtures")
["one.py", "two.py", "child/three.py"]
Filter with a regex:
>>> tree("test/fixtures", r"one\.py$")
["one.py"]
Add exclude patterns too:
>>> tree("test/fixtures", r"\.py$", [r"one\.py$"])
["two.py", "child/three.py"]
Specify the maximum depth:
>>> tree("test/fixtures", depth=1)
["one.py", "two.py"]
To install dependencies:
yarn install
pip install .[all]
To run tests:
thx test
To generate the documentation locally:
thx docs
To run linters:
thx lint
To run formatters:
thx format
Please read this repository's Code of Conduct which outlines our collaboration standards and the Changelog for details on breaking changes that have been made.
This repository adheres to semantic versioning standards. For more information on semantic versioning visit SemVer.
Bump2version is used to version and tag changes. For example:
bump2version patch
- Joel Lefkowitz - Initial work
Lots of love to the open source community!