Amundsen RDS

raw JSON →
0.0.8 verified Mon Apr 27 auth: no python

Amundsen RDS provides database models and ORM support for Amundsen, a data discovery and metadata platform. Current version 0.0.8, updated with table/column lineage models. Requires Python >=3.6. Release cadence is sporadic.

pip install amundsen-rds
error ModuleNotFoundError: No module named 'amundsenrds'
cause Using PyPI package name (with hyphen) as import name (should be underscore).
fix
Use import amundsen_rds (underscore).
error ImportError: cannot import name 'AmundsenRds' from 'amundsen_rds'
cause Incorrect import path; the class is directly in the package.
fix
Use from amundsen_rds import AmundsenRds
breaking Sqlalchemy upper bound removed in 0.0.7: if you use sqlalchemy 2.0, expect breaking changes due to removal of legacy features.
fix Pin sqlalchemy to <2.0 if you need stability: pip install sqlalchemy<2.0
gotcha Package name on PyPI is amundsen-rds, but import uses underscore: amundsen_rds.
fix Use `pip install amundsen-rds` and `import amundsen_rds`
deprecated Models for table/column lineage were added in 0.0.8; older versions lack them. Ensure version >=0.0.8 if you need lineage.
fix Upgrade to 0.0.8 or later: pip install amundsen-rds>=0.0.8

Initialize AmundsenRds with a database URI and query tables.

from amundsen_rds import AmundsenRds
from amundsen_rds.models import Table

# Initialize RDS with database URI
db_uri = os.environ.get('DB_URI', 'sqlite:///test.db')
rds = AmundsenRds(db_uri)

# Create tables
rds.init_db()

# Example: query all tables
tables = rds.session.query(Table).all()
for t in tables:
    print(t.name, t.schema)