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.3a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fce14f3addac266699ec5a0f064f8712614cddb6612d11b90195e31db56c7f |
|
MD5 | c6762a015545750c1e365251bbd72fb0 |
|
BLAKE2b-256 | 8e8af4092be0cf78905b034b1a774dbf2cc005ad98f7ef99d344f3a9e50978f5 |