{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Operating System :: POSIX", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development" ], "description": "=========\nMigranite\n=========\n\nTool for manage migrations in your project.\n\n-------\nInstall\n-------\n\n.. code-block ::\n\n pip install migranite\n\nIf you want to use MongoDB as database for migrations:\n\n.. code-block ::\n\n pip install 'migranite[mongo]'\n\n------------\nHow to start\n------------\n\nTo initialize the migranite in your project run:\n\n.. code-block ::\n\n migranite init --migrations migrations_dir --templates templates_dir\n\nThis command creates the config file (``.migranite``) and two directories (``migrations_dir`` and ``templates_dir``).\n\nCreate the first migration:\n\n.. code-block ::\n\n migranite create my-first-migration\n\nThis is create the file ``migrations_dir/001-my-first-migration.py`` with an empty migration.\nYou need to write a module docstring and implement function ``run()`` with your migration logic.\n\nShow the available migrations with statuses:\n\n.. code-block ::\n\n migranite list\n\nRun all migrations that haven't been started earlier:\n\n.. code-block ::\n\n migranite run\n\nRun only specified migrations:\n\n.. code-block ::\n\n migranite run my-first-migration\n\nRun the migrations that were started earlier:\n\n.. code-block ::\n\n migranite run --force my-first-migration\n\n\n-----------\nConfig file\n-----------\n\nA config file is a simple ini-file with three sections.\n\n[migrations]\n------------\n\nMigrations settings.\n\n:path: Path to directory with migrations.\n:digits: Number of digits in migration number. Default ``3``.\n\n[templates]\n-----------\n\nTemplates settings.\n\n:path: Path to directory with templates.\n:default: Default template file name.\n\n[database]\n----------\n\nDatabase settings. Currently only JSON file and MongoDB is supported.\n\n:backend: Type of database backend (``json`` or ``mongo``).\n\nOther settings are backend-specified.\n\n**json**\n\n:path: path to json file.\n\n**mongo**\n\n:host: Hostname or ip address. Default ``localhost``.\n:port: Default ``27017``.\n:name: Name of database. Required.\n:collection: Name of collection. Default ``migrations``.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zzzsochi/migranite", "keywords": "migrations,development", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "migranite", "package_url": "https://pypi.org/project/migranite/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/migranite/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/zzzsochi/migranite" }, "release_url": "https://pypi.org/project/migranite/0.4.0/", "requires_dist": null, "requires_python": null, "summary": "Migranite -- manage migtations tool", "version": "0.4.0" }, "last_serial": 1889921, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "0507e72f0f662c543865822b81d0ff51", "sha256": "668e38d9d6f52ffe982291b9fe3bb2a99ef4fb6aa92ea254e2143bdab02cfde5" }, "downloads": -1, "filename": "migranite-0.3.0.tar.bz2", "has_sig": false, "md5_digest": "0507e72f0f662c543865822b81d0ff51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6739, "upload_time": "2016-01-05T14:32:06", "url": "https://files.pythonhosted.org/packages/e7/0f/73e35752de8383d286cc253edfa725cacdef2bb28e4d0ab9b0c00f68f95c/migranite-0.3.0.tar.bz2" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "f9ae3fe1be07c8e143ad22cf39688f17", "sha256": "3297b4324e802e5fd5b2a51b065cfdd679689008bf2cf1e3a61869f48cd80cea" }, "downloads": -1, "filename": "migranite-0.3.1.tar.bz2", "has_sig": false, "md5_digest": "f9ae3fe1be07c8e143ad22cf39688f17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6737, "upload_time": "2016-01-05T14:42:41", "url": "https://files.pythonhosted.org/packages/7d/61/2846f3836e636d00bdbded76b262e97d3ce302baea277037258ecf17aa0c/migranite-0.3.1.tar.bz2" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "5271553a194f6b1a222239442793e055", "sha256": "abf91dc6dc786068e72f645c3baf7c7172ec157330e3a91e2cf9bff63e786b14" }, "downloads": -1, "filename": "migranite-0.4.0.tar.bz2", "has_sig": false, "md5_digest": "5271553a194f6b1a222239442793e055", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6959, "upload_time": "2016-01-05T18:59:48", "url": "https://files.pythonhosted.org/packages/94/5f/c1e411ea8f0f4549d9b0a1498e4de55f9dac8c1423f010b3f3c4de25e1eb/migranite-0.4.0.tar.bz2" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5271553a194f6b1a222239442793e055", "sha256": "abf91dc6dc786068e72f645c3baf7c7172ec157330e3a91e2cf9bff63e786b14" }, "downloads": -1, "filename": "migranite-0.4.0.tar.bz2", "has_sig": false, "md5_digest": "5271553a194f6b1a222239442793e055", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6959, "upload_time": "2016-01-05T18:59:48", "url": "https://files.pythonhosted.org/packages/94/5f/c1e411ea8f0f4549d9b0a1498e4de55f9dac8c1423f010b3f3c4de25e1eb/migranite-0.4.0.tar.bz2" } ] }