Welcome to enum_mate Documentation
enum_mate is a Python library that supercharges standard enums by providing explicit, intuitive APIs for validation, retrieval, and type conversion. It introduces BetterIntEnum and BetterStrEnum classes that seamlessly extend Python’s built-in enum functionality with comprehensive methods like get_by_name(), get_by_value(), is_valid_value(), ensure_int(), and ensure_str(). These enhanced enums make input validation, error handling, and enum manipulation more robust and developer-friendly. For a complete guide with detailed usage examples and advanced techniques, visit the comprehensive documentation.
Install
enum_mate is released on PyPI, so all you need is to:
$ pip install enum-mate
To upgrade to latest version:
$ pip install --upgrade enum-mate
Metadata
Release files for enum-mate 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enum_mate-0.1.1.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enum_mate-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / enum_mate-0.1.1.tar.gz
| Download URL | enum_mate-0.1.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cca0cb89471db8f22dfcd1740481fe6848aecfc2188d5fc0e25fbfa159454713
|
|
BLAKE2b-256 checksum How to use checksums |
e27d18d25e081ada0bbef21fd492f63be48724c103adbfc54331501504c88eff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / enum_mate-0.1.1-py3-none-any.whl
| Download URL | enum_mate-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8453abda2cbd0358c187532ebfde10dd3ad8b52378a4e6993bcb80fe3a639f89
|
|
BLAKE2b-256 checksum How to use checksums |
7270bae76748971c2f583654667be3f76da8352438a4d887b7a543a399bee137
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|