Skip to main content

Store list of enum member.

Project description

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

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

SQLAlchemy-Enum-List-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file SQLAlchemy-Enum-List-0.1.1.tar.gz.

File metadata

File hashes

Hashes for SQLAlchemy-Enum-List-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4c7fd688f5ed951a9715df7d40494cf6747f559fb48e970a334f6e64a5355bc1
MD5 0a465387f53ec691c2fa36ef50b2f83f
BLAKE2b-256 4166e918afc1c2aa85374a48fb925ccc22d91c924f65c332c6dde64e598d58b3

See more details on using hashes here.

File details

Details for the file SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for SQLAlchemy_Enum_List-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3309732c633ccebdb4a858ae70a3433bc8ba3af14ac075b1105eb96335e48858
MD5 0d3f1db736eaf922116938df5e81e053
BLAKE2b-256 4fa91cae13b956570e67c5b752986ac306127d3590affa3171cb35f4c05d2ae6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page