{ "info": { "author": "Gabriela Suria", "author_email": "gabsurita@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "Kinto Migrations\n################\n\nCLI tool to perform high level migrations using the HTTP API on a Kinto Server.\n\nInstallation\n============\n\nWith pip::\n\n $ pip install kinto-migrations\n\nGetting stated\n==============\n\nLet's imagine we want to create initialize our Kinto server with some stuff:\n\n\n.. code-block:: yaml\n\n $buckets:\n\n private_data:\n description: Data that is mine and I may share with frieds.\n\n $groups:\n frieds:\n members:\n - portier:myfriend@gmail.com\n\n $collections:\n expenses:\n description: Money stuff.\n\n pictures:\n $permissions:\n read:\n - \"/buckets/private_data/friends\"\n\n public_data:\n description: My public data.\n\n $permissions:\n read:\n - \"system.Everyone\"\n\n $collections:\n blog_posts:\n url: \"me.github.io\"\n\n $records:\n hello_world: {}\n\n\nLet's save this to a YAML file and run::\n\n $ kinto-migrate --file models.yml --server https://kinto.dev.mozaws.net/v1/ --auth admin:pass\n\nYou should specify the server and an authentication token. By default the\nmigrate tool will prompt for a ``models.yml`` file on the current directory or\nyou can specify a file using `--file`` or ``-f``.\n\n\nThis will crete if not exist all the listed endpoints on the Kinto API.\n\n\nSchema reference\n================\n\nResources and other reserved words start with a dollar-sign ($). This package\nsupports the basic structure of the Kinto HTTP API.\n\n.. code-block:: yaml\n\n $buckets:\n (...)\n $groups:\n (...)\n $collections:\n (...)\n $records:\n (...)\n\n\nAny resource data can be included inline under the resource attributes. By default,\nif no collection schema is provided, any attribute is accepted as in the Kinto API.\n\n.. code-block:: yaml\n\n $buckets:\n my_bucket:\n name: My Bucket\n tags:\n - Mine\n - Not yours\n\n\nPermissions can be setted under any resource using the ``$permissions`` attribute.\n\n.. code-block:: yaml\n\n $buckets:\n my_public_bucket:\n $permissions:\n read:\n - system.Everyone\n\n\nChangelog\n=========\n\n0.1.0 (2017-03-12)\n------------------\n\n* First release with basic functionalities.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gabisurita/kinto-migrations", "keywords": "kinto", "license": "Apache License (2.0)", "maintainer": "", "maintainer_email": "", "name": "kinto-migrations", "package_url": "https://pypi.org/project/kinto-migrations/", "platform": "", "project_url": "https://pypi.org/project/kinto-migrations/", "project_urls": { "Homepage": "https://github.com/gabisurita/kinto-migrations" }, "release_url": "https://pypi.org/project/kinto-migrations/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Run Kinto HTTP migrations.", "version": "0.1.0" }, "last_serial": 2701189, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cc1a94a791ea4bf41155c477cc45ed6f", "sha256": "7cc821237a54dc06d787ad46882b96dff5cea50ac9353b5efeee93ab72f79f61" }, "downloads": -1, "filename": "kinto-migrations-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cc1a94a791ea4bf41155c477cc45ed6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8477, "upload_time": "2017-03-12T22:10:47", "url": "https://files.pythonhosted.org/packages/fb/7d/320a211dd9e2417e22342fcded61acb66e48284ef03ab5443483ed8f5836/kinto-migrations-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc1a94a791ea4bf41155c477cc45ed6f", "sha256": "7cc821237a54dc06d787ad46882b96dff5cea50ac9353b5efeee93ab72f79f61" }, "downloads": -1, "filename": "kinto-migrations-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cc1a94a791ea4bf41155c477cc45ed6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8477, "upload_time": "2017-03-12T22:10:47", "url": "https://files.pythonhosted.org/packages/fb/7d/320a211dd9e2417e22342fcded61acb66e48284ef03ab5443483ed8f5836/kinto-migrations-0.1.0.tar.gz" } ] }