Skip to main content

py-db-migrate

CLI migration tool for python.

Supported Python versions: 3.11, 3.12, 3.13, 3.14

Usage:

$ py-db-migrate [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • create: Create a new sql file.
  • down: Delete the latest migration file by using...
  • init: Create an initial configuration file.
  • start: Create an initial configuration file.
  • up: Run the new migration files.

py-db-migrate create

Create a new sql file.

Usage:

$ py-db-migrate create [OPTIONS] NAME

Arguments:

  • NAME: [required]

Options:

  • --help: Show this message and exit.

py-db-migrate down

Delete the latest migration file by using down file.

Usage:

$ py-db-migrate down [OPTIONS]

Options:

  • --help: Show this message and exit.

py-db-migrate init

Create an initial configuration file.

You need to update this configuration file.

Usage:

$ py-db-migrate init [OPTIONS]

Options:

  • --help: Show this message and exit.

py-db-migrate start

Create an initial configuration file.

You need to update this configuration file.

Usage:

$ py-db-migrate start [OPTIONS]

Options:

  • --help: Show this message and exit.

py-db-migrate up

Run the new migration files.

Usage:

$ py-db-migrate up [OPTIONS]

Options:

  • --help: Show this message and exit.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_db_migrate-0.4.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_db_migrate-0.4.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file py_db_migrate-0.4.0.tar.gz.

File metadata

  • Download URL: py_db_migrate-0.4.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.2 CPython/3.11.16 Linux/6.17.0-1022-azure

File hashes

Hashes for py_db_migrate-0.4.0.tar.gz
Algorithm Hash digest
SHA256 23fe3082ec768f27a5f59efe8d9ee39953f61eb710c0156745d993bf9eb0cdf6
MD5 6edf7586a357063a1387cfca21c16f14
BLAKE2b-256 bc60d579ea6397cf1719f439084984f72d75374868cf4f60564a26c93edfed5d

See more details on using hashes here.

File details

Details for the file py_db_migrate-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: py_db_migrate-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.2 CPython/3.11.16 Linux/6.17.0-1022-azure

File hashes

Hashes for py_db_migrate-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4024c0d9e38903808d66e82e234cf1e6c2cfad132adef7def0e9d9ed38a1ca6f
MD5 3023b174187107766b9536f212739a46
BLAKE2b-256 7d1219dd6a3a8c25ec8b43d17e2395918c36db1685ae02c9ac4fbc4334445ed0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.1

2 files

0.2.0

2 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