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.1
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.1.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| patera_migrate-0.11.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / patera_migrate-0.11.1.tar.gz
| Download URL | patera_migrate-0.11.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da4d011cae1b058efa0b97e0f3f5185d4e735a937fd54ea6773e7b30530eabd9
|
|
BLAKE2b-256 checksum How to use checksums |
3467ed3982386f7fcc3c8e55ac71883323cb0732b55f14a92c425d153511eb38
|
| 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.1-py3-none-any.whl
| Download URL | patera_migrate-0.11.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2350848a29dc7efe9fd56451ca991aa281414987005232df51ffd9cf19c5e7ba
|
|
BLAKE2b-256 checksum How to use checksums |
a542fff637590d95043fcd6a12d0c49a0a034de50336f3c479a328e019791022
|
| 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}
|