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, the version in main should be bumped to the next release.

Release files for tortoise-data-migration 0.1.13

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 0.1.13
File Size Uploaded
tortoise-data-migration-0.1.13.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / tortoise-data-migration-0.1.13.tar.gz

Download URL tortoise-data-migration-0.1.13.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7d9ece56d9dd501826e39cae83a9c930f615314685d80ff396b23adba195c0f4
BLAKE2b-256 checksum
How to use checksums
58e74a1b60ae583641b42dac5e1a72917cb6ff49da06ab7dd5f054e0517641c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

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

Download URL tortoise_data_migration-0.1.13-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b822dc544acb57d934ad59e631e849ecf05382b455a63424bc5c584b23e04344
BLAKE2b-256 checksum
How to use checksums
7eec9f9e55deef702e0adbc94ff9c2724fce3f048318cc8ebbba63d223ad9b1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

1.0.1

2 release files

1.0.0

2 release files

0.1.16

2 release files

0.1.15

2 release files

This release

0.1.13 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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