Skip to main content

A simpler Enum for Python 3

Project description

What Does Simple Enum Do?

Simple Enum provides a simpler way to define Enums in Python 3:

class Colour(Enum):
    red
    green
    blue

You can see the full documentation (and implementation) on github.

Why Should I Use Simple Enum?

  • It makes the common case as simple as possible.

  • It detects accidental duplicate values.

  • It allows you to easily select alternative values (numbers from one, bit fields, etc).

What Else Should I Know?

  • (c) 2013 Andrew Cooke, andrew@acooke.org; released into the public domain for any use, but with absolutely no warranty.

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

simple-enum-0.0.6.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file simple-enum-0.0.6.tar.gz.

File metadata

File hashes

Hashes for simple-enum-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e088c788185d0d4a90892fe4b2ee7f973e4f0ae2f43e171ba128345b7c202f72
MD5 eda7cd6ba0b3dcb5f63983db8df437ef
BLAKE2b-256 c4c5081bc34fab9229610f72edd7f7421b266dabd253393ac240ae334474a6f5

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