Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.27 KB

File metadata and controls

35 lines (24 loc) · 1.27 KB

tests_badge PyPI Version Python Version MIT License PyPI Downloads Docs

Python Backport

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"

Setup

Install the package via pip.

pip install PyBackport

📖 Documentation

Documentation can be found: