Skip to main content

tortoise-data-migration

tests codecov black poetry-managed PyPI - Python Version PyPI - Wheel PyPI

tortoise-data-migration is a very simple project meant to perform migrations of data, similar to regular structural migrations.

The main use case is when your system has some "default data" that needs to exist for the system to work. Some examples:

  • The default username/password of a system
  • The default configuration values (if you store the config in the DB)

These values could be set in the system as part of the installation process, but then when writing tests that use those, you would have to somehow get those values to the DB. So you create a test fixture, and very probably you will be introducing duplication (the bringup/installation process has these values, and the fixture too).

tortoise-data-migrations are meant to be executed by the software (either during test execution of production) after the database structure is up-to-date (in production software after running aerich migrations for example or during tests after the DB setup is done), but before the actual software starts executing. That's why tortoise-data-migration is a library and not a command line tool.

Installation

Pip

pip install tortoise-data-migration

Pipenv

pipenv install tortoise-data-migration

Poetry

poetry add tortoise-data-migration

PDM

pdm add tortoise-data-migration

Notes for maintainers

Release

To create a new release, create a github release and a github action will take care of building and publishing. After that, there will be a PR automatically created to bump the version in main.

Metadata

Release files for tortoise-data-migration 1.0.1

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

Source distribution (sdist)

Source distribution for tortoise-data-migration 1.0.1
File Size Uploaded Provenance Actions
tortoise_data_migration-1.0.1.tar.gz 4.3 kB Without provenance Details for tortoise_data_migration-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tortoise-data-migration 1.0.1
File Interpreter ABI Platform Actions
tortoise_data_migration-1.0.1-py3-none-any.whl Python 3 none any Details for tortoise_data_migration-1.0.1-py3-none-any.whl

Total release size: 9.1 kB

Release files / tortoise_data_migration-1.0.1.tar.gz

Download URL tortoise_data_migration-1.0.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
962f2ce4df0a2daa1f4f7e079dc3b4987cc61532f6e3866a6a995b0d8ec42413
BLAKE2b-256 checksum
How to use checksums
c6de04be584865a98adceacba795da008f14f6519850885722485ea82bead3cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / tortoise_data_migration-1.0.1-py3-none-any.whl

Download URL tortoise_data_migration-1.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2be2ef2c2dbdfe9cedbc1a6652bac8511b9c07da3fffd67939c1e174001483b
BLAKE2b-256 checksum
How to use checksums
74fdb77f38414de1b000bdf1ffa4f4ad634d9c843ca99b7f64dfde77804cebbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for tortoise-data-migration 1.0.1

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.

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