$npx skillfedfor your agent

alembic-autogenerate-enums

Alembic hook that allows enums values to be upgraded and downgraded in migrations automatically

SkipPyPI DatabaseReleased Jul 2023155.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — alembic_autogenerate_enums-0.1.2-py3-none-any.whl
v0.1.2 · released 2023-07-19 · Python >=3.7,<4.0

No, not recommended. The package is abandoned with no updates in over a year and has no documented compatibility with current Alembic or PostgreSQL versions. For active projects, the maintenance risk outweighs the convenience of enum autogeneration. Consider manual enum migrations or evaluating whether a maintained alternative exists before adopting this.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires PostgreSQL database and an existing Alembic project; the package assumes you are already using Alembic for schema management.
  • Low install friction with no runtime dependencies.
  • However, the package is abandoned—last release was 1122 days ago with no recent maintenance signal, which raises questions about compatibility with current Alembic and PostgreSQL versions.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.

last release 2023-07-19 (1122 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 155,677 downloads/mo, #10,804 on PyPI

Verify before relying

# In your alembic/env.py, add at the top:
import alembic_autogenerate_enums

# Then run migrations normally:
# alembic revision --autogenerate -m "Add enum values"
# alembic upgrade head
  • Compatibility with current Alembic versions and PostgreSQL enum handling behavior
  • Whether the non-transactional connection workaround still aligns with modern Alembic patterns
  • Test coverage and real-world usage reliability given the abandoned maintenance status
Same gist for agents: .md · .json

What it is and what it does

This package hooks into Alembic's autogenerate mechanism to automatically detect when PostgreSQL enum types have new values added to your models, then generates the corresponding ALTER TYPE .. ADD VALUE SQL statements in your migration files. Without this hook, Alembic's default autogenerate ignores enum value changes, requiring manual migration writing.

The package works by registering itself when imported into your env.py file. It handles a PostgreSQL constraint: ALTER TYPE statements cannot run inside transactions, so each enum sync operation opens its own temporary database connection. This is a thin, specialized tool for teams using Alembic with PostgreSQL enums who want migrations to stay in sync with model changes automatically.

Use it for

  • Automatically generate migrations when adding new values to existing PostgreSQL enum types in your SQLAlchemy models.
  • Avoid manual ALTER TYPE SQL writing by letting Alembic detect enum changes during autogenerate.
  • Ensure enum migrations are tracked in version control alongside other schema changes in a PostgreSQL project.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No, not recommended.

The package is abandoned with no updates in over a year and has no documented compatibility with current Alembic or PostgreSQL versions. For active projects, the maintenance risk outweighs the convenience of enum autogeneration. Consider manual enum migrations or evaluating whether a maintained alternative exists before adopting this.

Install

alembic-autogenerate-enums on PyPI

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last release was 1122 days ago with no recent maintenance signal, which raises questions about compatibility with current Alembic and PostgreSQL versions.

Requires PostgreSQL database and an existing Alembic project; the package assumes you are already using Alembic for schema management.

License in practice

MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.

Quickstart

# In your alembic/env.py, add at the top:
import alembic_autogenerate_enums

# Then run migrations normally:
# alembic revision --autogenerate -m "Add enum values"
# alembic upgrade head

Verify before relying

  • Compatibility with current Alembic versions and PostgreSQL enum handling behavior
  • Whether the non-transactional connection workaround still aligns with modern Alembic patterns
  • Test coverage and real-world usage reliability given the abandoned maintenance status

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7,<4.0
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,122 days since the last release
First released
Downloads155,677 / month, #10,804 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: alembic_autogenerate_enums-0.1.2-py3-none-any.whl

Tags

Capabilities
alembic enum migrationpostgresql enum autogeneratealembic alter type add valueenum schema migrationalembic postgres enum changes
Topics
alembicpostgresqlschema-migration

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “alembic enum migration”

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also alembic-postgresql-enum · alembic_utils · alembic · Flask-Alembic · pytest-alembic · migra · Flask-Migrate · django-pg-zero-downtime-migrations · django-postgres-extra · pglast