Backport of the Python 3.9 graphlib module for Python 3.6+
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project. It brings a standard-library module to older Pythons: on current versions, use the built-in one.
pip install graphlib-backportgraphlib backport
Backport of the Python 3.9 graphlib module for older Python versions.
Github: https://github.com/mariushelf/graphlib_backport
Supported versions
This backport currently supports Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3 (tested with pypy3.6, 3.7, 3.8 and 3.9).
Support for Python 3.6 and 3.7 is somewhat experimental and due to be dropped because of the end of support for these old versions.
Installation
pip install graphlib_backport
It is recommended to limit installation of this package to version of Python <3.9 and use the original implementation for Python >=3.9.
For example in a poetry pyproject.toml this can be done
by specifying the dependency as a
Python restricted dependency:
[tool.poetry.dependencies]
graphlib_backport = {version="^1.0.0", python="<3.9"}
Usage
The package works the very same way as the original package. Here's the documentation.
Development
The sourcecode is hosted on github. To develop on this package, just clone it, work on it and submit a pull request.
Dev requirements
For testing against different Python versions, tox is required.
To download the latest original sourcecode into the repository, there is a make target:
make download_sourcecode