Enumeration & state fields

Fields for enum's, enumerations, states and named constants.

Features currently being evaluated

Feature Description
Custom labels Add custom labels to enum values
Queryset lookups Can be used with queryset lookups and filters
Admin integration Usable in admin list filters
Form integration Usable in forms (choices)
PEP435-style enum Uses real Python 3.4+ PEP435-style enum's
Custom class style enum Uses a custom enum base class
ForeignKey backed Uses ForeignKey field as backing store
Finite state machine Supports (simple) finite state machine transitions
Integer backed Uses integer field as backing store
String backed Uses string field as backing store

Filter results

Package django-fsm django-enumfields django-enum-choices django-enumfield django-echoices django-enum3field django-enum-field
Package django-fsm django-enumfields django-enum-choices django-enumfield django-echoices django-enum3field django-enum-field
Description Django friendly finite state
machine support
Real Python Enums for Django Django choice field that
supports Python enumerations
Custom Django field for using
enumerations of named
constants
Django model choices as Enum A Django 1.7+ model field for
use with Python 3 enums.
A Django field for use with
https://github.com/2degrees/python-enumeration.
Category App Other App App Other Other App
# Using This 13 0 0 3 0 0 0
Python 3?
Development Status Production/Stable Unknown Unknown Unknown Production/Stable Unknown Unknown
Last updated Nov. 5, 2021, 2:39 a.m. Feb. 23, 2021, 1:40 a.m. Nov. 25, 2021, 9:34 a.m. Sept. 3, 2020, 3:24 a.m. Aug. 18, 2021, 1:30 p.m. March 15, 2015, 9:28 a.m. April 11, 2017, 11:16 a.m.
Version 2.7.1 2.1.1 2.1.3 2.0.2 2.8.0 0.1.1 0.2
Repo GitHub GitHub GitHub GitHub GitHub GitHub GitHub
Commits
Stars 1909 145 70 184 3 n/a 1
Repo Forks 260 55 12 45 n/a 1 n/a
Participants kmmbvnr
knaperek
frague59
ticosax
kaharlichenko
blueyed
DariaKnyazeva
llybin
scotta
seddonym
more...
akx
matthewwithanm
mturilin
johnthagen
EvaSDK
talebbits
gsakkis
ehaivala
Tim-Erwin
samh
more...
slavov-v
RadoRado
wencakisa
SaturnFromTitan
wiedi
yukikaoru
alexa984
dependabot[bot]
Swamii
hannseman
andreif
lundberg
kjagiello
fcurella
thedrow
nicolasgrasset
lamby
piotrpawlaczek
more...
mbourqui
vdboor
JoshData franciscoruiz
gnarea
Documentation N/A N/A N/A N/A N/A N/A
Custom labels depends on enum
Queryset lookups
Admin integration partial, extended via django-fsm-admin with boilerplate
Form integration
PEP435-style enum future
Custom class style enum extend enum Extends Enum
ForeignKey backed
Finite state machine main use-case simple
Integer backed
String backed
Search Weight Package Description Last PyPI release: Repo Forks Stars
{{ item.weight / max_weight * 100 | number:0 }}% {{ item.title }} Grid: {{ item.description }} {{ item.last_released | date: 'mediumDate' }} N/A {{ item.repo_forks }} N/A {{ item.repo_watchers }} N/A