This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Not ready for use
our-db
Database connectivity, configuration, and migration brick. Part of the ourochronos ecosystem.
Installation
pip install our-db
# With async support
pip install our-db[async]
Usage
from our_db import get_cursor, get_config
# Database access
with get_cursor() as cur:
cur.execute("SELECT * FROM my_table")
rows = cur.fetchall()
# Configuration
config = get_config()
print(config.db_host, config.db_port)
Async
from our_db import async_cursor
async with async_cursor() as conn:
rows = await conn.fetch("SELECT * FROM my_table")
Migrations
from our_db import MigrationRunner
runner = MigrationRunner(migrations_dir="./migrations")
runner.up() # Apply pending
runner.status() # Check status
Development
make dev # Install with dev dependencies
make test # Run tests
make lint # Run linters
Metadata
Release files for our-db 0.1.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 | |
|---|---|---|---|---|
| our_db-0.1.0.tar.gz | 19.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| our_db-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / our_db-0.1.0.tar.gz
| Download URL | our_db-0.1.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0839720712c2695662a75584b9cce099939e3ca17904b17bba7a0b4ccdd7d532
|
|
BLAKE2b-256 checksum How to use checksums |
46b854253ff82afaafe4ca629d28d14c8db5a7c903e149ce7daf7ede5efd96ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / our_db-0.1.0-py3-none-any.whl
| Download URL | our_db-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
392e9c1e26be7db284f174c4f7d22f83742b8555a5daa04e4c2df5b4e43a27d9
|
|
BLAKE2b-256 checksum How to use checksums |
004c32728b6a9fe351a419db5ad8d758ba9641dc1903a3cf6165993fc79bf571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for our-db 0.1.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.