No project description provided
Project description
Dbsamizdapper
The "blissfully naive PostgreSQL database object manager"
This is based on the original dbsamizdat
code from https://git.sr.ht/~nullenenenen/DBSamizdat/ a version of which was previously hosted at https://github.com/catalpainternational/dbsamizdat
Full disclosure: That one (https://git.sr.ht/~nullenenenen/DBSamizdat/ which is also on pypi) is definitely less likely to have bugs, it was written by a better coder than I am, the original author is "nullenenenen nullenenenen@gavagai.eu"
New features
This fork is based on a rewrite which I did to better understand the internals of dbsamizdat
as we use it in a few different projects. The changes include:
- A target pyver of about ~3.10
- Type hints throughout the codebase
- Changed from
ABC
toProtocol
type for inheritance - Poetry for dependency and build management
- Compat with both
psycopg
andpsycopg3
- Opinionated code formatting
- black + isort
- replaced
lambda
s
- some simple
pytest
functions
and probably many more undocumented changes
Running Tests
Spin up a docker container
docker run -p 5435:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:latest
The db url for this container would be:
"postgresql:///postgres@localhost:5435/postgres"
Make this the environment variable DB_URL
, or add it to the .env
file
Original README
Check out the original readme for rationale and how-to documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dbsamizdapper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c832bd6fece7e9af2131f776c7676eeac633635d41d3a631ab4278074e00b788 |
|
MD5 | e0c21ae5f18413c4d454a8afc5b67e55 |
|
BLAKE2b-256 | 787cf045819cb114f505ffbd9fa3b8e3ef93ea7bcd3ea7aff0f52a04dacd3f24 |