DB Kit
A wrapper for database packages which bakes in common database functionality.
Pre-requisites
- Ensure that you have Python version 3.12.0 setup locally, you can set this up using pyenv if you have multiple versions of Python on your local development environment.
- Poetry is used for managing dependencies, ensure you have that setup locally.
- Virtualenv Not a hard requirement as poetry should setup a virtual environment for you, but can be used as well to setup a virtual environment.
Setup
-
After cloning the project, install the dependencies required with:
poetry installWhen using poetry
Or
make installWhen using GNU Make, this is a wrapper around the top commend
Installation
poetry add sanctumlabs_dbkit
Features
on_commithooks for a when a transaction is committed.- A DAO pattern for common methods such as
find,find_or_raise,all... - A
BaseModelwith baked in mixins fortimestamps,soft deletions,auditable& more... - Utility functions for working with models and schema.
Metadata
Release files for sanctumlabs-dbkit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sanctumlabs_dbkit-1.0.0.tar.gz | 8.8 kB | Without provenance | Details for sanctumlabs_dbkit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sanctumlabs_dbkit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sanctumlabs_dbkit-1.0.0-py3-none-any.whl |
Total release size: 20.5 kB
Release files / sanctumlabs_dbkit-1.0.0.tar.gz
| Download URL | sanctumlabs_dbkit-1.0.0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b23667071efc1c00f56cce1c5333eaf9489452cec3ea07f45d1d303c5e3c4ab
|
|
BLAKE2b-256 checksum How to use checksums |
4e9896cdf28a41bd56db67668a359eecdf0dd7e05ed033c39f759667519cb4a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Release files / sanctumlabs_dbkit-1.0.0-py3-none-any.whl
| Download URL | sanctumlabs_dbkit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4242ecdc70cb348668d738603341e13fe1c4b854c17e5857722db704d43370bf
|
|
BLAKE2b-256 checksum How to use checksums |
9869dd67a3a9601109ca2b2d1d877af1a71ab85e85a470073e4a0959a4be0a3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Security for sanctumlabs-dbkit 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.