Skip to main content

Database component

Database-specific documentation:

Installation

Install all dependencies and extras with uv sync --all-extras.

Creating migrations

Manual

Manual migrations have to be made for example when creating new roles or schemas. To generate autogenerated migration, run the following command with the suitable path to alembic.ini file:

uv run alembic -c src/pinta_db_migrations/<job|primary>/alembic.ini revision -m "Migration description" --rev-id="migration_id"

Then modify this migration file to include all necessary changes.

Autogenerated

To create migrations modify database models first. Make sure to have the models imported in env.py by adding them into models.all module.

After models for the target database have been modified, run the following command with the suitable path to alembic.ini file:

uv run alembic -c src/pinta_db_migrations/<job|primary>/alembic.ini revision --autogenerate -m "Migration description" --rev-id="migration_id"

This command will generate a new migration file for the target database based on the changes made to the models.

Check the created migration file and make sure it is correct and remove Alembic autogenerated comments from the top and bottom of the functions. Remember to commit it in the repository.

Running migrations

To run migrations and sync users in development, in the root of the project run:

make db-migrate-all

or just run migrations in this directory:

uv run alembic -c src/pinta_db_migrations/<job|primary>/alembic.ini upgrade head

Metadata

Release files for pinta-db 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pinta-db 0.2.0
File Size Uploaded Provenance Actions
pinta_db-0.2.0.tar.gz 38.8 kB Without provenance Details for pinta_db-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pinta-db 0.2.0
File Interpreter ABI Platform Actions
pinta_db-0.2.0-py3-none-any.whl Python 3 none any Details for pinta_db-0.2.0-py3-none-any.whl

Total release size: 113.7 kB

Release files / pinta_db-0.2.0.tar.gz

Download URL pinta_db-0.2.0.tar.gz
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
636bb350deaf30fd2eba85090b03df76fd7af9898fd461ad479355c080ad9e64
BLAKE2b-256 checksum
How to use checksums
46a347731a1facf7492644a5a7aea8784c005edd11a1c355435c8479824d772a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pinta_db-0.2.0-py3-none-any.whl

Download URL pinta_db-0.2.0-py3-none-any.whl
Size 74.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72dca0d0f90892b6a4440c5676ca137cb0de3dba2324e18b1b45c8e4e839cbaa
BLAKE2b-256 checksum
How to use checksums
912c3ca3badc3a2c9b1e43e769996b63f7ff9fbda3b3dd0a9460a39fa6187619
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pinta-db 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page