This is a third-party Rust engine for Piccolo ORM.
Under the hood, this engine uses PSQLPy, which is Rust-based and blazingly fast 🔥.
You can install package with pip or poetry.
poetry:
$ poetry add psqlpy-piccolopip:
$ pip install psqlpy-piccoloUsage is as easy as possible. PSQLPy based engine has the same interface as other engines from piccolo.
from psqlpy_piccolo import PSQLPyEngine
DB = PSQLPyEngine(
config={
"host": os.environ.get("PG_HOST", "127.0.0.1"),
"port": os.environ.get("PG_PORT", 5432),
"user": os.environ.get("PG_USER", "postgres"),
"password": os.environ.get("PG_PASSWORD", "postgres"),
"database": os.environ.get("PG_DATABASE", "piccolo"),
},
)