patera-migrate
SQL migrations for Patera databases, based on pyway. Part of Patera, a modular async-first Python web framework.
Installation
pip install patera-migrate
# or, with uv
uv add "patera[migrate]"
Requires Python 3.13 or newer and patera>=0.121.
Usage
patera-migrate adds SQL migrations based on pyway. Add the
Migrate mixin to the database class:
from patera.migrate import Migrate
class MainDb(SqlDatabase, Migrate):
__db_name__ = "main"
See the Migrations section of the Patera documentation for the full guide.
License
MIT. See LICENSE.
Metadata
Release files for patera-migrate 0.11.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 | |
|---|---|---|---|
| patera_migrate-0.11.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| patera_migrate-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / patera_migrate-0.11.0.tar.gz
| Download URL | patera_migrate-0.11.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54e23e02c661a15763963e49d76de29f45e713e0f91ddfdadd3c0301463e29cf
|
|
BLAKE2b-256 checksum How to use checksums |
1b0cb5d791694b5d305a520e1ada92ef13ef0cbd1a9137c941ce00c9b63e9ab0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / patera_migrate-0.11.0-py3-none-any.whl
| Download URL | patera_migrate-0.11.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01d1504b8c8a3fac110067e016f79c9b8437b49de812150b69fbb930283907ca
|
|
BLAKE2b-256 checksum How to use checksums |
321c39fdf2c7ef8d2906e3c603a697c461a6cec097ab94a6a68de05730381559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|