The py_back modules serve the next purposes of importing features from newer python releases into older versions.
For example, enum.StrEnum is new in Python 3.11, but py_back allows users to use it on previous versions.
from py_back import enum
class Animal(enum.StrEnum):
DOG = "dog"
CAT = "cat"Install the package via pip.
pip install PyBackportDocumentation can be found:
- At the released mkdocs page.
- Within the
docsfolder.