Python package to backport classes from new python releases (for example,
Project description
Python Backport
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)
Setup
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
Documentation can be found:
- At the released mkdocs page.
- Within the
docs
folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PyBackport-0.2.0.post1.tar.gz
.
File metadata
- Download URL: PyBackport-0.2.0.post1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4307d336819ba49c81a481158dfa26c105905c152eae6b13f082d5d376b3d5a6 |
|
MD5 | 557509d66f1d19b318a47ca2679c94d0 |
|
BLAKE2b-256 | 6597498d6d9c1796ba51222ebf8ded926c590b60789732492f52ace56695fdf8 |
File details
Details for the file PyBackport-0.2.0.post1-py3-none-any.whl
.
File metadata
- Download URL: PyBackport-0.2.0.post1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249ad5076417ed0f1e942c15afc9055c292603b905ac22a5362bc7be75243cb5 |
|
MD5 | 352f1734fcbb866463686edea51a62ad |
|
BLAKE2b-256 | 449cff724e839e3c2a3b8ba861bf69d426ad441bdd27adcd260de38ed809daff |