Skip to main content

Agnostic Database Migrations

PyPI GitHub Workflow Status (with event) Coverage

Overview

Agnostic is a light-weight, easy-to-learn, and flexible database migration tool in which migration scripts are written in pure SQL. It is agnostic towards database, programming language, and object relational mapper (ORM).

Super Quick Start

Here is an absurdly brief introduction to Agnostic:

~/myapp $ mkdir migrations

~/myapp $ agnostic -t postgres -u myuser -d mydb bootstrap
Migration table created.

~/myapp $ cat > migrations/add_cell_phone.sql
ALTER TABLE customer ADD cell_phone VARCHAR(255);
^D

~/myapp $ cat > migrations/add_nickname.sql
ALTER TABLE customer ADD nickname VARCHAR(255);
^D

~/myapp $ agnostic -t postgres -u myuser -d mydb migrate
Backing up "mydb" to "/tmp/tmpm8glpgaa".
About to run 2 migrations in "mydb":
    * Running migration add_cell_phone (1/2)
    * Running migration add_nickname (2/2)
Migrations completed successfully.
Removing backup "/tmp/tmpm8glpgaa".

For a not-quite-as-quick-but-still-pretty-quick start, please refer to the full documentation.

Metadata

Release files for agnostic 1.0.3

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

Source distribution (sdist)

Source distribution for agnostic 1.0.3
File Size Uploaded Provenance
agnostic-1.0.3.tar.gz 12.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agnostic 1.0.3
File Interpreter ABI Platform
agnostic-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / agnostic-1.0.3.tar.gz

Download URL agnostic-1.0.3.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d6ae729eacd7f4b3e7b096aa6d41476f19189b2ad93919afe6d6e1f890e29375
BLAKE2b-256 checksum
How to use checksums
1ace0c56ef36fa8783038511faf37d901dc3e7855772f0ccafe4e8ff1807f7c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-78-generic

Release files / agnostic-1.0.3-py3-none-any.whl

Download URL agnostic-1.0.3-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c18cebea5851bb1b2eb7b14a6b2c33835aed1f7e3662af463e8b7b3b095edeb
BLAKE2b-256 checksum
How to use checksums
32fd93a8aa1b4f49c423fab82f0073d29a97a290cce978f0ba8ee89a3a276cb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-78-generic

Security for agnostic 1.0.3

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.

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