sqlalchemy.types Enum Example Code

Enum is a class within the sqlalchemy.types module of the SQLAlchemy project.

BOOLEAN, Boolean, DATE, DATETIME, Date, DateTime, FLOAT, Float, INTEGER, Integer, Interval, NULLTYPE, NullType, String, TEXT, TIME, Text, Time, TypeEngine, UserDefinedType, and to_instance are several other callables with code examples from the same sqlalchemy.types package.

Example 1 from graphene-sqlalchemy

graphene-sqlalchemy (project documentation and PyPI package information) is a SQLAlchemy integration for Graphene, which makes it easier to build GraphQL-based APIs into Python web applications. The package allows you to subclass SQLAlchemy classes and build queries around them with custom code to match the backend queries with the GraphQL-based request queries. The project is provided as open source under the MIT license.

graphene-sqlalchemy / graphene_sqlalchemy / enums.py