The py_back
modules serve three purposes:
- Enable the use of new base classes in older Python versions. For example,
enum.StrEnum
is new in Python 3.11, butpy_back
allows users on previous versions to use it too. - Enable experimental classes not implemented in other modules. For example,
enum.TupleEnum
is not implemented inenum
, butpy_back
allows users to create enumerations where its members are tuples. - Provide of new classes containing commonly used constant values. For example,
py_back.colors
provides a wrapper to commonly used BGR color codes, likeBGR.WHITE
to use the color code(255, 255, 255)
Install the package via pip.
pip install PyBackport
The latest changes on develop can be installed via pip + git:
pip install git+https://github.com/Jtachan/PyBackport.git@develop
Documentation can be found:
- At the released mkdocs page.
- Within the
docs
folder.