{ "info": { "author": "Kirill Klenov", "author_email": "horneds@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Natural Language :: Russian", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "Peewee Migrate\n##############\n\n.. _description:\n\nPeewee Migrate -- A simple migration engine for Peewee\n\n.. _badges:\n\n.. image:: http://img.shields.io/travis/klen/peewee_migrate.svg?style=flat-square\n :target: http://travis-ci.org/klen/peewee_migrate\n :alt: Build Status\n\n.. image:: http://img.shields.io/coveralls/klen/peewee_migrate.svg?style=flat-square\n :target: https://coveralls.io/r/klen/pewee_migrate\n :alt: Coverals\n\n.. image:: http://img.shields.io/pypi/v/peewee_migrate.svg?style=flat-square\n :target: https://pypi.python.org/pypi/peewee_migrate\n :alt: Version\n\n.. _contents:\n\n.. contents::\n\n.. _requirements:\n\nRequirements\n=============\n\n- python 2.7,3.5\n- peewee >= 3.3.1\n\nDependency Note\n---------------\n\nFor ``Peewee<3.0`` please use ``Peewee-Migrate==0.14.0``.\n\n.. _installation:\n\nInstallation\n=============\n\n**Peewee Migrate** should be installed using pip: ::\n\n pip install peewee_migrate\n\n.. _usage:\n\nUsage\n=====\n\nDo you want Flask_ integration? Look at Flask-PW_.\n\nFrom shell\n----------\n\nGetting help: ::\n\n $ pw_migrate --help\n\n Usage: pw_migrate [OPTIONS] COMMAND [ARGS]...\n\n Options:\n --help Show this message and exit.\n\n Commands:\n create Create migration.\n migrate Run migrations.\n rollback Rollback migration.\n\nCreate migration: ::\n\n $ pw_migrate create --help\n\n Usage: pw_migrate create [OPTIONS] NAME\n\n Create migration.\n\n Options:\n --auto FLAG Scan sources and create db migrations automatically. Supports autodiscovery.\n --auto-source TEXT Set to python module path for changes autoscan (e.g. 'package.models'). Current directory will be recursively scanned by default.\n --database TEXT Database connection\n --directory TEXT Directory where migrations are stored\n -v, --verbose\n --help Show this message and exit.\n\nRun migrations: ::\n\n $ pw_migrate migrate --help\n\n Usage: pw_migrate migrate [OPTIONS]\n\n Run migrations.\n\n Options:\n --name TEXT Select migration\n --database TEXT Database connection\n --directory TEXT Directory where migrations are stored\n -v, --verbose\n --help Show this message and exit.\n\nFrom python\n-----------\n::\n\n from peewee_migrate import Router\n from peewee import SqliteDatabase\n\n router = Router(SqliteDatabase('test.db'))\n\n # Create migration\n router.create('migration_name')\n\n # Run migration/migrations\n router.run('migration_name')\n\n # Run all unapplied migrations\n router.run()\n\nMigration files\n---------------\n\nBy default, migration files are looked up in ``os.getcwd()/migrations`` directory, but custom directory can be given.\n\nMigration files are sorted and applied in ascending order per their filename.\n\nEach migration file must specify ``migrate()`` function and may specify ``rollback()`` function::\n\n def migrate(migrator, database, fake=False, **kwargs):\n pass\n\n def rollback(migrator, database, fake=False, **kwargs):\n pass\n\n.. _bugtracker:\n\nBug tracker\n===========\n\nIf you have any suggestions, bug reports or\nannoyances please report them to the issue tracker\nat https://github.com/klen/peewee_migrate/issues\n\n.. _contributing:\n\nContributing\n============\n\nDevelopment of starter happens at github: https://github.com/klen/peewee_migrate\n\n\nContributors\n=============\n\nSee `AUTHORS.rst`\n\n\n.. _license:\n\nLicense\n=======\n\nLicensed under a `BSD license`_.\n\n.. _links:\n\n.. _BSD license: http://www.linfo.org/bsdlicense.html\n.. _klen: https://klen.github.io/\n.. _Flask: http://flask.pocoo.org/\n.. _Flask-PW: https://github.com/klen/flask-pw\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/klen/peewee_migrate", "keywords": "django,flask,sqlalchemy,testing,mock,stub,mongoengine,data", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "peewee-migrate-dev", "package_url": "https://pypi.org/project/peewee-migrate-dev/", "platform": "Any", "project_url": "https://pypi.org/project/peewee-migrate-dev/", "project_urls": { "Homepage": "https://github.com/klen/peewee_migrate" }, "release_url": "https://pypi.org/project/peewee-migrate-dev/0.0.1a0/", "requires_dist": [ "cached-property (>=1.4.2)", "click (>=6.7)", "mock (>=2.0.0)", "peewee (>=3.3.3)" ], "requires_python": "", "summary": "Simple migration engine for Peewee", "version": "0.0.1a0" }, "last_serial": 5548577, "releases": { "0.0.1a0": [ { "comment_text": "", "digests": { "md5": "4b07552a1b8ee514178f6f5b3f5897e6", "sha256": "821508109e71b81e6c2129d6d31ab1d16903e461f1f5d6cfb4c97de304e42e15" }, "downloads": -1, "filename": "peewee_migrate_dev-0.0.1a0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b07552a1b8ee514178f6f5b3f5897e6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17944, "upload_time": "2019-07-18T02:15:44", "url": "https://files.pythonhosted.org/packages/10/74/72763d5bab170d3281b3caf047e3a8b21e0fcbf2195136fff69119d129f9/peewee_migrate_dev-0.0.1a0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3504a849011ea51c2b0c6fe5e4fe35c2", "sha256": "c136987f5cfc6455d343cc86173c189427cec5481cc71bbd471baedfcb34a5de" }, "downloads": -1, "filename": "peewee_migrate_dev-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "3504a849011ea51c2b0c6fe5e4fe35c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16250, "upload_time": "2019-07-18T02:15:47", "url": "https://files.pythonhosted.org/packages/fa/95/8678e771779f4eadf67cf548f820d83d0e6c8e17d64965a3ef691a13b450/peewee_migrate_dev-0.0.1a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b07552a1b8ee514178f6f5b3f5897e6", "sha256": "821508109e71b81e6c2129d6d31ab1d16903e461f1f5d6cfb4c97de304e42e15" }, "downloads": -1, "filename": "peewee_migrate_dev-0.0.1a0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4b07552a1b8ee514178f6f5b3f5897e6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17944, "upload_time": "2019-07-18T02:15:44", "url": "https://files.pythonhosted.org/packages/10/74/72763d5bab170d3281b3caf047e3a8b21e0fcbf2195136fff69119d129f9/peewee_migrate_dev-0.0.1a0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3504a849011ea51c2b0c6fe5e4fe35c2", "sha256": "c136987f5cfc6455d343cc86173c189427cec5481cc71bbd471baedfcb34a5de" }, "downloads": -1, "filename": "peewee_migrate_dev-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "3504a849011ea51c2b0c6fe5e4fe35c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16250, "upload_time": "2019-07-18T02:15:47", "url": "https://files.pythonhosted.org/packages/fa/95/8678e771779f4eadf67cf548f820d83d0e6c8e17d64965a3ef691a13b450/peewee_migrate_dev-0.0.1a0.tar.gz" } ] }