Skip to main content

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 to Protocol type for inheritance
  • Poetry for dependency and build management
  • Compat with both psycopg and psycopg3
  • Opinionated code formatting
    • black + isort
    • replaced lambdas
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbsamizdapper-0.0.3a0.tar.gz (31.2 kB view hashes)

Uploaded Source

Built Distribution

dbsamizdapper-0.0.3a0-py3-none-any.whl (35.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page