{ "info": { "author": "Sergey Glazyrin", "author_email": "sergey.glazyrin.dev@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Database" ], "description": "**************************************\nAscetic Migrations\n**************************************\n\n.. image:: https://api.travis-ci.org/sergeyglazyrindev/amigrations.svg\n :target: https://travis-ci.org/sergeyglazyrindev/amigrations\n :alt: Travis CI status\n\n.. image:: https://coveralls.io/repos/github/sergeyglazyrindev/amigrations/badge.svg?branch=master\n :target: https://coveralls.io/github/sergeyglazyrindev/amigrations?branch=master\n :alt: Coveralls status\n\nFor my personal projects I'd like to use raw sql migrations. Django for example generates ugly\nkey names: something like: key_number\n\n**************************************\nInstallation\n**************************************\n\nSimply run in your bash:\n\n.. code-block:: bash\n \n pip install amigrations\n\n**************************************\nUsage\n**************************************\n\n.. code-block:: python\n \n from amigratons import AMigrations\n\n amigrations = AMigrations('mysql://root:123456@localhost:3306/amigrations_test', path_to_folder_with_migrations)\n files_created = amigrations.create(migraiton_message)\n # files_created is a dictionary with two keys: up and down. If you want immediately update migration content, please\n # do following\n with files_created['up'].open('w') as fpu, files_created['down'].open('w') as fpd:\n fpu.write('CREATE TABLE test (id int(11) not null AUTO_INCREMENT, PRIMARY KEY(id))')\n fpd.write('drop table test')\n # run db upgrade\n amigrations.upgrade()\n # please pass migration id you want to downgrade to, including\n amigrations.downgrade_to(downgrade_to_id)\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/sergeyglazyrindev/amigrations/tarball/0.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sergeyglazyrindev/amigrations", "keywords": "database,migration", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "amigrations", "package_url": "https://pypi.org/project/amigrations/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/amigrations/", "project_urls": { "Download": "https://github.com/sergeyglazyrindev/amigrations/tarball/0.5", "Homepage": "https://github.com/sergeyglazyrindev/amigrations" }, "release_url": "https://pypi.org/project/amigrations/0.5/", "requires_dist": null, "requires_python": null, "summary": "Ascetic database migrations. The most ease way to power your python app with raw database migrations", "version": "0.5" }, "last_serial": 2115719, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "dd513936daf5d6244a8c7729d5a41af6", "sha256": "41424fad2ea1d713f43b8c7b985f630e7ceb4890d1f4ba283dc3d307898c6da6" }, "downloads": -1, "filename": "amigrations-0.3.tar.gz", "has_sig": false, "md5_digest": "dd513936daf5d6244a8c7729d5a41af6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3887, "upload_time": "2016-05-08T14:25:21", "url": "https://files.pythonhosted.org/packages/b2/e2/eea12277768637bc8dbaf34302bbf2107082bb26e6447edeacc86028376f/amigrations-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "b6309c721bcdd66de4e4ceae81385a85", "sha256": "7e5196cb4a1f0384c8466782e4d7f25e4e7d3897663c2c914fa59f82f02dc66e" }, "downloads": -1, "filename": "amigrations-0.4.tar.gz", "has_sig": false, "md5_digest": "b6309c721bcdd66de4e4ceae81385a85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6431, "upload_time": "2016-05-09T15:04:28", "url": "https://files.pythonhosted.org/packages/31/81/cb976deecce78056e1e120969ba8de88dcfb0889e5dbf7978e43a8390ac8/amigrations-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "d31490fda7d0536812a6c521c5d794db", "sha256": "a0c9506bc74df029cb9d7cd0136dd7b165f256c8fa673a743deeeeecedb81959" }, "downloads": -1, "filename": "amigrations-0.5.tar.gz", "has_sig": false, "md5_digest": "d31490fda7d0536812a6c521c5d794db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6392, "upload_time": "2016-05-14T17:33:25", "url": "https://files.pythonhosted.org/packages/0a/a0/0900a33c38402e82d0aad1462e9a7ce09ddabe70b6889ac3aea4497509ca/amigrations-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d31490fda7d0536812a6c521c5d794db", "sha256": "a0c9506bc74df029cb9d7cd0136dd7b165f256c8fa673a743deeeeecedb81959" }, "downloads": -1, "filename": "amigrations-0.5.tar.gz", "has_sig": false, "md5_digest": "d31490fda7d0536812a6c521c5d794db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6392, "upload_time": "2016-05-14T17:33:25", "url": "https://files.pythonhosted.org/packages/0a/a0/0900a33c38402e82d0aad1462e9a7ce09ddabe70b6889ac3aea4497509ca/amigrations-0.5.tar.gz" } ] }