SQAlchemy Enum List
Store list of enum member as unicode string. it works list of python on python-side & stored unicode text in database. To store scalar values like integer, float read about ScalarListType in SQLAlchemy-Utils
Getting started
import enum
from sqlalchemy.schma import Column
from sqlalchemy_enum_list import EnumListType
class Genre(enum.Enum):
pop = 1
soul = 2
jazz = 3
class Song(Base):
genre = Column(EnumListType(Genre, int))
song = Song(genre=[Genre.soul, Genre.jazz])
Changelogs
0.1.1
Added sqlalchemy_enum_list.EnumSetType
Metadata
Release files for SQLAlchemy-Enum-List 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| SQLAlchemy-Enum-List-0.1.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / SQLAlchemy-Enum-List-0.1.1.tar.gz
| Download URL | SQLAlchemy-Enum-List-0.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c7fd688f5ed951a9715df7d40494cf6747f559fb48e970a334f6e64a5355bc1
|
|
BLAKE2b-256 checksum How to use checksums |
4166e918afc1c2aa85374a48fb925ccc22d91c924f65c332c6dde64e598d58b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl
| Download URL | SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3309732c633ccebdb4a858ae70a3433bc8ba3af14ac075b1105eb96335e48858
|
|
BLAKE2b-256 checksum How to use checksums |
4fa91cae13b956570e67c5b752986ac306127d3590affa3171cb35f4c05d2ae6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |