sqlalchemy.util OrderedDict Example Code

OrderedDict is a class within the sqlalchemy.util module of the SQLAlchemy project.

OrderedSet, set_creation_order, symbol, and topological are several other callables with code examples from the same sqlalchemy.util package.

Example 1 from alembic

Alembic (project documentation and PyPI page) is a data migrations tool used with SQLAlchemy to make database schema changes. The Alembic project is open sourced under the MIT license.

alembic / alembic / operations / batch.py

Example 2 from sqlacodegen

sqlacodegen (PyPI package information) is a tool for reading from an existing relational database to generate code to create SQLAlchemy models based on that database. The project is primarily written and maintained by Alex Grönholm (agronholm) and it is open sourced under the MIT license.

sqlacodegen / sqlacodegen / codegen.py