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.4.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

dbsamizdapper-0.0.4-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file dbsamizdapper-0.0.4.tar.gz.

File metadata

  • Download URL: dbsamizdapper-0.0.4.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.7 Linux/5.19.0-43-generic

File hashes

Hashes for dbsamizdapper-0.0.4.tar.gz
Algorithm Hash digest
SHA256 48c658106c46f9c681c37f2d4b8fdafcb3f32a5a59d9b27a4d805ba18744b19d
MD5 f64a05fc5f7e59f27edcc3e5572a0523
BLAKE2b-256 3c13ae77b778face7d0ecd26f2202fbf550943a986a92b0468a771097411f608

See more details on using hashes here.

File details

Details for the file dbsamizdapper-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: dbsamizdapper-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.10.7 Linux/5.19.0-43-generic

File hashes

Hashes for dbsamizdapper-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 feec752490f881ef0a4aaf0cfd6e6f69f7a40647203bd1fcc411fdb31cca036b
MD5 974542d2df860df0f1527d72262687aa
BLAKE2b-256 000a08e39903a7d572649df67bdb62f5ad0f501bb5ccdb5999af5ddb7d98fd92

See more details on using hashes here.

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