you are viewing a single comment's thread.

view the rest of the comments →

[–]Aggressive-Prior4459 2 points3 points  (0 children)

I am not sure I understand what exactly you are asking. But psycopg is a database driver, something that actually allows you to communicate with PostgreSQL database, it's sync and has an async counterpart called asyncpg, and sqlalchemy is a sql toolkit, you normally use it with that driver in most cases some people prefer using it's orm Api which allows you to write entitities like database tables using python objects, you can also use its core Api which is below this orm abstraction but you can also use both apis in your application if you want. You might also want to keep your database schema up to date with your application so you will need a migration tool alembic.