{ "info": { "author": "Maksym Stukalo", "author_email": "stukalo.maksym@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# FAQ Alembic Git Migration\n\n> This module created as wrapper for Alembic and the main idea is \n> attaching real git branch, monitoring heads and auto-recommendations \n> for merging when developer creates new migration.\n\n# How to install\n```bash\npip install faq-migrations\n```\n\n# Add CLI to your project\n> As standalone manager\n\n```python\nfrom faq_migrations.cli import migrations\n\n\nif __name__ == '__main__':\n migrations()\n```\n\n> As sub-group of click\n```python\nimport click\nfrom faq_migrations.cli import migrations\n\n\ncli = click.Group()\ncli.add_command(migrations)\n\n\nif __name__ == '__main__':\n cli()\n```\n\n> and run cli\n\n```bash\npython your_manager.py migrations --help\n```\n\n# List of commands:\n```\nUsage: manager.py migrations [OPTIONS] COMMAND [ARGS]...\n\nCreating of new migrations and upgrading database\n\nOptions:\n --help Show this message and exit.\n\nCommands:\n compare_history Compare local and remote history\n create Create new migration for current branch\n current Show current migration revision\n heads Show current heads\n history Show last migration, limit=20, upper=True\n init Initialize new alembic directory\n last_revision Show previous migration\n merge Merge branches or heads\n migrate Upgrade to head\n upgrade_migrations Show not yet applied migrations\n```\n\n# Config settings\n```python\nfrom faq_migrations.settings import config\n\n\n# Path to your directory with alembic.ini\nconfig.config_file_path = 'faq_migrations/migrations/' \n\n# Path to templates directory with alembic.ini and mako files\nconfig.template_path = 'faq_migrations/templates/'\n\n# Default template name\nconfig.template_name = 'git-generic'\n\n# Path to your directory with migrations\nconfig.alembic_dir = 'migrations/'\n\n# You can setup database url in this param or in alembic.ini.\n# This parameter has higher priority\nconfig.database_url = 'driver://username:pass@host:port/db_name'\n```\n> Before initializing new directory with migrations you must setup config \n> params.\n\n\n# Building and Publication\n\n### Build\n```bash\npython setup.py sdist\ntwine upload dist/*\n```\n\n### Publication\n```bash\npip install twine\ntwine upload dist/* \n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "faq-migrations", "package_url": "https://pypi.org/project/faq-migrations/", "platform": "", "project_url": "https://pypi.org/project/faq-migrations/", "project_urls": null, "release_url": "https://pypi.org/project/faq-migrations/1.0.25/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.25" }, "last_serial": 4202641, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "1e60cdb53437cf5057326a7066224616", "sha256": "5a5515e66587e44972b326b2fe9a833f8a9120d30229a0165bf53ed38772ea90" }, "downloads": -1, "filename": "faq_migrations-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1e60cdb53437cf5057326a7066224616", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9058, "upload_time": "2018-07-11T14:58:06", "url": "https://files.pythonhosted.org/packages/fd/eb/8235a3d1ce33e16e4ac5880f83a5a1e3e6f92afbbafab8492484ca3476df/faq_migrations-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "3688e28e6978e89e057dc91c9e3dfffc", "sha256": "479340d9dd69397c12f5585a732ac1c4c016598e2ec104b89e735655ab50e79a" }, "downloads": -1, "filename": "faq_migrations-1.0.2.tar.gz", "has_sig": false, "md5_digest": "3688e28e6978e89e057dc91c9e3dfffc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9170, "upload_time": "2018-07-12T06:42:33", "url": "https://files.pythonhosted.org/packages/fd/32/236ae806dc5fef07a05ae2e767177fe2f6e23ce1fa6d9cf00a4be8a955b6/faq_migrations-1.0.2.tar.gz" } ], "1.0.25": [ { "comment_text": "", "digests": { "md5": "085e76675f665e408edb3f75b40ebd91", "sha256": "b0b4262c6bf99e9fac1b027d2a9e00acd8ebbf3db6d6bb420427a2d1aea2e4ca" }, "downloads": -1, "filename": "faq_migrations-1.0.25.tar.gz", "has_sig": false, "md5_digest": "085e76675f665e408edb3f75b40ebd91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10574, "upload_time": "2018-08-24T06:55:55", "url": "https://files.pythonhosted.org/packages/71/5a/a39d23854ee6be6cdc8c52f07c2d271e4f9aafc3186822db9db9caa5cb13/faq_migrations-1.0.25.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "c6f180eeb92ded0d68d7669648df1995", "sha256": "6957a19fe31393ed56a0350eb6e1fa06d0eb99c87f298abe7846ddd8baca419a" }, "downloads": -1, "filename": "faq_migrations-1.0.3.tar.gz", "has_sig": false, "md5_digest": "c6f180eeb92ded0d68d7669648df1995", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9178, "upload_time": "2018-07-13T07:38:56", "url": "https://files.pythonhosted.org/packages/46/a7/7e246c5fc98e049dc4fe2dfe8babc323b88b42a1e8a244045f2585b9ccff/faq_migrations-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "5f467255019ff2cf46093981ee46eed3", "sha256": "01b764e0194f84cd88bec7c608d0a597369e1147414df3bcbaa7382edf76c707" }, "downloads": -1, "filename": "faq_migrations-1.0.4.tar.gz", "has_sig": false, "md5_digest": "5f467255019ff2cf46093981ee46eed3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9428, "upload_time": "2018-07-13T15:21:51", "url": "https://files.pythonhosted.org/packages/e8/89/96a070b8410a3dd9d54f4fadfdac52381d1e9cbc460597c01676b6760dbe/faq_migrations-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "085e76675f665e408edb3f75b40ebd91", "sha256": "b0b4262c6bf99e9fac1b027d2a9e00acd8ebbf3db6d6bb420427a2d1aea2e4ca" }, "downloads": -1, "filename": "faq_migrations-1.0.25.tar.gz", "has_sig": false, "md5_digest": "085e76675f665e408edb3f75b40ebd91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10574, "upload_time": "2018-08-24T06:55:55", "url": "https://files.pythonhosted.org/packages/71/5a/a39d23854ee6be6cdc8c52f07c2d271e4f9aafc3186822db9db9caa5cb13/faq_migrations-1.0.25.tar.gz" } ] }