Skip to main content

A small enum package

Project description

enum

Python enum implementation

Usage

>>> from enum import EnumBase
>>>
>>> class Color(EnumBase):
>>>     red = 1
>>>     green = 2
>>>     ...
>>> Color.red
1
>>> Color.get_value('red')
1
>>> Color.get_name(1)
'red'

TODO

  • Added setup.py
  • Unittest
  • CI

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

jx-enum-1.0.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

jx_enum-1.0.0-py2-none-any.whl (3.4 kB view details)

Uploaded Python 2

File details

Details for the file jx-enum-1.0.0.tar.gz.

File metadata

  • Download URL: jx-enum-1.0.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for jx-enum-1.0.0.tar.gz
Algorithm Hash digest
SHA256 efdf56ea569b74adde5b8c11c359b7a55454ff39f2a60aec7906ee4617b46629
MD5 f62c5f47669a4dbb0f5f36ad6549c255
BLAKE2b-256 eee14127b35d08c2e9442ccb537be212741fb4dd2f95870778310048f182bf7d

See more details on using hashes here.

File details

Details for the file jx_enum-1.0.0-py2-none-any.whl.

File metadata

  • Download URL: jx_enum-1.0.0-py2-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for jx_enum-1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 52e240677ecc6f4aeca127bf4fd6c277d0a1d5ac27c29f7d0b394224ef7ee2cc
MD5 510277a98f17ef9bbcd887651b0aca4b
BLAKE2b-256 94099be11d3f543c4d7147670d10cdf1a8ba1b17a6f6cf77501fb565788d4b00

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