Skip to main content
Documentation Status https://github.com/MacHu-GWU/enum_mate-project/actions/workflows/main.yml/badge.svg https://codecov.io/gh/MacHu-GWU/enum_mate-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/enum-mate.svg https://img.shields.io/pypi/l/enum-mate.svg https://img.shields.io/pypi/pyversions/enum-mate.svg https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to enum_mate Documentation

https://enum-mate.readthedocs.io/en/latest/_static/enum_mate-logo.png

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)

Source distribution for enum-mate 0.1.1
File Size Uploaded
enum_mate-0.1.1.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enum-mate 0.1.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page