The most pythonic ORM (for SQLite and PostgreSQL). Seriously, try it out!
Due to psycopg2
was removed from sqllex dependencies now you have to install it manually for postures support (or you can use any similar engine). After this just add one new parameter ("engine") into PostgreSQLx constructor:
import psycopg2
db = sx.PostgreSQLx(
engine=psycopg2, # Postgres engine
...
)
Read PostgreSQLx docs for more details.
Many developers who use sqllex only to work with SQLite have complained about problems installing the package due to the psycopg2 dependency. I also had these difficulties. One and only decision was to install this dependency manually from binaries. Therefore, it was decided to rid the library of a problematic dependency, but leave the ability to connect it back as needed.
db = SQLite3x(path=..., ..., check_same_thread=False)