Skip to main content

Python package to backport classes from new python releases (for example,

Project description

tests_badge PyPI Version Python Version MIT License PyPI Downloads Docs

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, but py_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 in enum, but py_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, like BGR.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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyBackport-0.2.0.post1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

PyBackport-0.2.0.post1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for PyBackport-0.2.0.post1.tar.gz
Algorithm Hash digest
SHA256 4307d336819ba49c81a481158dfa26c105905c152eae6b13f082d5d376b3d5a6
MD5 557509d66f1d19b318a47ca2679c94d0
BLAKE2b-256 6597498d6d9c1796ba51222ebf8ded926c590b60789732492f52ace56695fdf8

See more details on using hashes here.

File details

Details for the file PyBackport-0.2.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for PyBackport-0.2.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 249ad5076417ed0f1e942c15afc9055c292603b905ac22a5362bc7be75243cb5
MD5 352f1734fcbb866463686edea51a62ad
BLAKE2b-256 449cff724e839e3c2a3b8ba861bf69d426ad441bdd27adcd260de38ed809daff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page