Yet another Python enum implementation

Download project files

How do I verify a download?


4.0 release from the trunk series released 2013-04-05

Release information
Release notes:

 * Fix documentation bugs. (LP: #1026403, LP: #1132830)
 * Deprecate ``EnumValue.__int__()``; use ``IntEnumValue`` (via ``IntEnum``)
   instead.
 * Add ``IntEnum`` class which returns int-subclass enum values. (LP: #1132976)
   - Add ``__index__()`` method to support slicing. (LP: #1132972)
   - Add non-deprecated ``__int__()`` method.
 * Deprecate ``make()``; use ``Enum()`` instead.
   - Call ``IntEnum()`` to create integer valued enums. (LP: #1162375)
   - Accept a space-separate string of enum values which are auto-split.
   - Accept a dictionary of enumeration name/value pairs.
 * Add ``.value`` attribute to enum values. (LP: #1132859)
 * For ``__getitem__()`` and ``__call__()``, fall back to using the ``.value``
   attribute if the argument has one. (LP: #1124596)
 * Previously...

File Description Downloads
download icon flufl.enum-4.0.tar.gz (md5, sig) flufl.enum 4.0 1,113
last downloaded 3 days ago
Total downloads: 1,113

3.3.2 release from the trunk series released 2012-04-19

Release information
Release notes:

3.3.2 (2012-04-19)
==================
 * Add classifiers to setup.py and make the long description more compatible
   with the Cheeseshop.
 * Other changes to make the Cheeseshop page look nicer. (LP: #680136)
 * setup_helper.py version 2.1.

File Description Downloads
download icon flufl.enum-3.3.2.tar.gz (md5, sig) flufl.enum 3.3.2 2,150
last downloaded 50 weeks ago
Total downloads: 2,150

3.3.1 release from the trunk series released 2012-01-19

Release information
Release notes:

 * Fix Python 3 compatibility with Sphinx's conf.py ($python setup.py install).

File Description Downloads
download icon flufl.enum-3.3.1.tar.gz (md5, sig) flufl.enum 3.3.1 3,379
last downloaded 50 weeks ago
Total downloads: 3,379

3.3 release from the trunk series released 2012-01-19

Release information
Release notes:

3.3 (2012-01-19)
================
 * Remove the dependency on 2to3 for Python 3 support; support Python 3
   directly with a single code base.
 * flufl.enum.make_enum() is deprecated in favor of flufl.enum.make() which
   provides a better API. (LP: #839529)
 * Updated to distribute 0.6.19.
 * Moved all documentation to .rst suffix.
 * Make test_deprecations() compatible with Python 3 and Python 2.
 * Removed markup for pylint.
 * Improve documentation to illustrate that enum values with similar names and
   integer representations still do not hash equally. (Found by Jeroen
   Vermeulen).

File Description Downloads
download icon flufl.enum-3.3.tar.gz (md5, sig) flufl.enum 3.3 2,045
last downloaded 36 weeks ago
Total downloads: 2,045

3.2 release from the trunk series released 2011-08-19

Release information
Release notes:

3.2 (2011-08-19)
==================
 * make_enum() accepts an optional `iterable` argument to provide the values
   for the enums.
 * The .enumclass and .enumname attributes are deprecated. Use .enum and
   .name instead, respectively.
 * Improve the documentation regarding ordered comparisons and equality
   tests. (LP: #794853)
 * make_enum() now enforces the use of valid Python identifiers. (LP: #803570)

File Description Downloads
download icon flufl.enum-3.2.tar.gz (md5, sig) version 3.2 4,040
last downloaded 48 weeks ago
Total downloads: 4,040

3.1 release from the trunk series released 2011-03-01

Release information
Release notes:

3.1 (2011-03-01)
================
 * New convenience function `make_enum()`. (Contributed by Michael Foord)
 * Fix `from flufl.enum import *`.
 * Enums created with the class syntax can be pickled and unpickled.
   (Suggestion and basic implementation idea by Phillip Eby).

File Description Downloads
download icon flufl.enum-3.1.tar.gz (md5, sig) 3.1 3,983
last downloaded 22 weeks ago
Total downloads: 3,983

3.0.1 release from the trunk series released 2010-06-07

Release information
Release notes:

Fixed typo which caused the package to break.

File Description Downloads
download icon flufl.enum-3.0.1.tar.gz (md5, sig) flufl.enum 3.0.1 3,679
last downloaded 43 weeks ago
Total downloads: 3,679