agnostic


Nameagnostic JSON
Version 1.0.3 PyPI version JSON
download
home_page
SummaryAgnostic Database Migrations
upload_time2023-08-11 01:56:18
maintainer
docs_urlNone
authorMark E. Haase
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Agnostic Database Migrations
============================

[![PyPI](https://img.shields.io/pypi/v/agnostic.svg?style=flat-square)](https://pypi.python.org/pypi/agnostic)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/mehaase/agnostic/test.yml?style=flat-square&label=Integration%20Tests)](https://github.com/mehaase/agnostic/actions/workflows/test.yml)
[![Coverage](https://img.shields.io/codecov/c/github/mehaase/agnostic?style=flat-square)](https://coveralls.io/github/mehaase/agnostic?branch=master)

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:

```shell
~/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](https://agnostic.readthedocs.io/).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "agnostic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Mark E. Haase",
    "author_email": "mehaase@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1a/ce/0c56ef36fa8783038511faf37d901dc3e7855772f0ccafe4e8ff1807f7c9/agnostic-1.0.3.tar.gz",
    "platform": null,
    "description": "Agnostic Database Migrations\n============================\n\n[![PyPI](https://img.shields.io/pypi/v/agnostic.svg?style=flat-square)](https://pypi.python.org/pypi/agnostic)\n[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/mehaase/agnostic/test.yml?style=flat-square&label=Integration%20Tests)](https://github.com/mehaase/agnostic/actions/workflows/test.yml)\n[![Coverage](https://img.shields.io/codecov/c/github/mehaase/agnostic?style=flat-square)](https://coveralls.io/github/mehaase/agnostic?branch=master)\n\nOverview\n--------\n\nAgnostic is a light-weight, easy-to-learn, and flexible database migration tool\nin which migration scripts are written in pure SQL. It is agnostic towards\ndatabase, programming language, and object relational mapper (ORM).\n\nSuper Quick Start\n-----------------\n\nHere is an absurdly brief introduction to Agnostic:\n\n```shell\n~/myapp $ mkdir migrations\n\n~/myapp $ agnostic -t postgres -u myuser -d mydb bootstrap\nMigration table created.\n\n~/myapp $ cat > migrations/add_cell_phone.sql\nALTER TABLE customer ADD cell_phone VARCHAR(255);\n^D\n\n~/myapp $ cat > migrations/add_nickname.sql\nALTER TABLE customer ADD nickname VARCHAR(255);\n^D\n\n~/myapp $ agnostic -t postgres -u myuser -d mydb migrate\nBacking up \"mydb\" to \"/tmp/tmpm8glpgaa\".\nAbout to run 2 migrations in \"mydb\":\n    * Running migration add_cell_phone (1/2)\n    * Running migration add_nickname (2/2)\nMigrations completed successfully.\nRemoving backup \"/tmp/tmpm8glpgaa\".\n```\n\nFor a not-quite-as-quick-but-still-pretty-quick start, please refer to the\n[full documentation](https://agnostic.readthedocs.io/).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Agnostic Database Migrations",
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32fd93a8aa1b4f49c423fab82f0073d29a97a290cce978f0ba8ee89a3a276cb1",
                "md5": "5ea11908e3f656fb1ff9d00f2a742cf6",
                "sha256": "9c18cebea5851bb1b2eb7b14a6b2c33835aed1f7e3662af463e8b7b3b095edeb"
            },
            "downloads": -1,
            "filename": "agnostic-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5ea11908e3f656fb1ff9d00f2a742cf6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 14775,
            "upload_time": "2023-08-11T01:56:17",
            "upload_time_iso_8601": "2023-08-11T01:56:17.240551Z",
            "url": "https://files.pythonhosted.org/packages/32/fd/93a8aa1b4f49c423fab82f0073d29a97a290cce978f0ba8ee89a3a276cb1/agnostic-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ace0c56ef36fa8783038511faf37d901dc3e7855772f0ccafe4e8ff1807f7c9",
                "md5": "d0fce4133f6baab1cc48e5d824b87844",
                "sha256": "d6ae729eacd7f4b3e7b096aa6d41476f19189b2ad93919afe6d6e1f890e29375"
            },
            "downloads": -1,
            "filename": "agnostic-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "d0fce4133f6baab1cc48e5d824b87844",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 12712,
            "upload_time": "2023-08-11T01:56:18",
            "upload_time_iso_8601": "2023-08-11T01:56:18.768480Z",
            "url": "https://files.pythonhosted.org/packages/1a/ce/0c56ef36fa8783038511faf37d901dc3e7855772f0ccafe4e8ff1807f7c9/agnostic-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-11 01:56:18",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "agnostic"
}
        
Elapsed time: 0.12908s