Skip to main content

A case insensitive StrEnum

Project description

insensitive-strenum

A case insensitive StrEnum

Installation

You can install this package with pip.

$ pip install insensitive-strenum

Links

Documentation

Source Code - GitHub

PyPI - insensitive-strenum

Usage

from insensitive_strenum import InsensitiveStrEnum

class Color(InsensitiveStrEnum):
	RED = 'red'
	GREEN = 'green'
	BLUE = 'blue'
>>> Color('RED')
<Color.RED: 'red'>
>>> Color('red')
<Color.RED: 'red'>
>>> Color('Red')
<Color.RED: 'red'>

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

insensitive_strenum-1.0.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

insensitive_strenum-1.0.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file insensitive_strenum-1.0.2.tar.gz.

File metadata

  • Download URL: insensitive_strenum-1.0.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1015-azure

File hashes

Hashes for insensitive_strenum-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b1036c3028a800678dd613e2c089901c99fac2343c93c1192fa13428a2b6ca7b
MD5 bde2dd8dab4d543a57ff9a2fa8db5fd9
BLAKE2b-256 2434b09a0f7a9f172f8f6a3ea710a939f09b4db16611053682ae04e6a61233cd

See more details on using hashes here.

File details

Details for the file insensitive_strenum-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: insensitive_strenum-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.13 Linux/6.11.0-1015-azure

File hashes

Hashes for insensitive_strenum-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5972bcf603a138e66dfad8f80493899e7f8bfb2bc68908b1caa0370c33c10261
MD5 6c3003d11b5d28e4f9031e5e7222f36b
BLAKE2b-256 4cd918c11ca3213371cf5fe66a493cebcf06da7d243a689c082324e76746b74c

See more details on using hashes here.

Supported by

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