Mario Munoz on Nostr: I've been working on a Typer CLI app with a database backend. Each time I need to set ...
I've been working on a Typer CLI app with a database backend. Each time I need to set up Alembic (for migrations), I need to go back to the docs and learn all the things (again)...
I wanted to see if I could incorporate alembic commands into my own CLI app. At the least, it would let me inject some custom logic and/or command names.
Wasn't quite sure where to start, but eventually I got there...
So I decided to write about it.
https://pythonbynight.com/blog/alembic-migrations-existing-typer-cli
#Python #Alembic #ORM
I wanted to see if I could incorporate alembic commands into my own CLI app. At the least, it would let me inject some custom logic and/or command names.
Wasn't quite sure where to start, but eventually I got there...
So I decided to write about it.
https://pythonbynight.com/blog/alembic-migrations-existing-typer-cli
#Python #Alembic #ORM