python-packaging / tuber

Finds the root of a python project repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tuber

This project finds an easy way to find the root of a python project's repo. It relies on several common markers, like .git or pyproject.toml to determine this.

>>> from tuber import get_root
>>> get_root("/")
Traceback (most recent call last):
...
tuber.RootException: No root found before actual root
>>> get_root(".")
PosixPath("/path/to/repo")

License

Tuber is copyright Tim Hatch, and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the LICENSE file for details.

About

Finds the root of a python project repo

License:MIT License


Languages

Language:Python 89.3%Language:Makefile 10.7%