pg13 – sql orm with built-in mocking¶
To get started with pg13, check out the examples on our github page (https://github.com/abe-winter/pg13-py).
pg13 is still alpha software, and these docs are pretty incomplete. A good starting point is pg13.pg module, where you should read about:
- the Row class (your models should inherit from it)
- how to construct a PgPool that connects to your database
Contents:
pg13 package¶
Submodules¶
pg13.cdiff module¶
pg13.diff module¶
pg13.misc module¶
pg13.pg module¶
pg13.pgmock module¶
pg13.redismodel module¶
pg13.sqex module¶
pg13.sqparse module¶
pg13.stubredis module¶
Don’t worry about this if you’re on unix or osx.
For windows users, this provides something kind of like a redis server.
To use this, install these packages that aren’t referenced by the pg13 installer:
- hiredis (optional, for performance)
- redis (mandatory)