flufl.enum is yet another Python enumeration package, but with a slightly different take on syntax and semantics than earlier such packages.
The goals of flufl.enum are to produce simple, specific, concise semantics in an easy to read and write syntax. flufl.enum has just enough of the features needed to make enumerations useful, but without a lot of extra baggage to weigh them down. This work grew out of the Mailman 3.0 project and it is the enum package used there. Until version 3.0, this package was called munepy.
A simple guide to using the library is available within this package, in the form of doctests. The manual is also available online in the Cheeseshop at:
What's New in This Release: [ read full changelog ]
· 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)