{ "info": { "author": "Marek Siarkowicz", "author_email": "serathius@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "Muffin Peewee Async\n#############\n\n.. _description:\n\nMuffin Peewee Async -- Peewee integration to Muffin framework using peewee-async.\n\nBased on https://github.com/klen/muffin-peewee with an ability to execute asynchronous queries.\n\n\nInstallation\n=============\n\n**Muffin Peewee Async** should be installed using pip: ::\n\n pip install muffin-peewee-async\n\n\nUsage\n=====\n\nAdd `muffin_peewee_async` to `PLUGINS` in your Muffin Application configuration.\n\nOr install it manually like this: ::\n\n db = muffin_peewee_async.Plugin(**{'options': 'here'})\n\n app = muffin.Application('test')\n app.install(db)\n\n\nOptions\n-------\n\n`PEEWEE_ASYNC_CONNECTION` -- connection string to your database (postgres://postgres:postgres@127.0.0.1)\n\n`PEEWEE_ASYNC_CONNECTION_PARAMS` -- Additional params for connection ({})\n\n`PEEWEE_ASYNC_MIGRATIONS_PATH` -- path to migration folder (migrations)\n\nQueries\n-------\n\n::\n import peewee_async\n\n @app.ps.peewee_async.register\n class Test(peewee.Model):\n data = peewee.CharField()\n\n\n @app.register\n async def view(request):\n tests = await peewee_async.select(Test.select())\n return [t.data for t in tests]\n\n\nMigrations\n----------\n\nCreate migrations: ::\n\n $ muffin example:app pw_create [NAME] [--auto]\n\n\nRun migrations: ::\n\n $ muffin example:app pw_migrate [NAME] [--fake]\n\n\nRollback migrations: ::\n\n $ muffin example:app pw_rollback NAME\n\n\nLoad/Dump data to CSV\n---------------------\n\nDump table `test` to CSV file: ::\n\n $ muffin example:app pw_dump test\n\n\nLoad data from CSV file to table `test`: ::\n\n $ muffin example:app pw_load test\n\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/serathius/muffin-peewee-async/issues\n\n.. _contributing:\n\nContributing\n============\n\nDevelopment of Muffin Peewee Async happens at: https://github.com/serathius/muffin-peewee-async\n\n\nContributors\n=============\n\n* serathius (Marek Siarkowicz)\n\n.. _license:\n\nLicense\n=======\n\nLicensed under a `MIT license`_.\n\n.. _links:\n\n.. _MIT license: http://opensource.org/licenses/MIT\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/serathius/muffin-peewee-async", "keywords": "muffin", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "muffin-peewee-async", "package_url": "https://pypi.org/project/muffin-peewee-async/", "platform": "Any", "project_url": "https://pypi.org/project/muffin-peewee-async/", "project_urls": { "Homepage": "https://github.com/serathius/muffin-peewee-async" }, "release_url": "https://pypi.org/project/muffin-peewee-async/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Peewee integration to Muffin framework", "version": "0.1.1" }, "last_serial": 3083805, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "99bce75c011bb9208c5eac12bdc376e2", "sha256": "20f13ff904d3a91b8cc1c7ede6ab6af64d961812e3b02c5e40f430b7f957fe14" }, "downloads": -1, "filename": "muffin-peewee-async-0.1.0.tar.gz", "has_sig": false, "md5_digest": "99bce75c011bb9208c5eac12bdc376e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4839, "upload_time": "2017-08-02T11:18:01", "url": "https://files.pythonhosted.org/packages/38/e4/85a19e7283bdd9375f34e24830d2c1094c9509f9bf219fb470144d61b571/muffin-peewee-async-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3eec5cce7cb8487b7935738bb68210c4", "sha256": "424bd090c07e36ac2740b22f278337646cc2709166f20193a449106adae6da12" }, "downloads": -1, "filename": "muffin-peewee-async-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3eec5cce7cb8487b7935738bb68210c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4753, "upload_time": "2017-08-09T11:59:09", "url": "https://files.pythonhosted.org/packages/57/0f/ce54ca6106200d8f5d97030861d04319412f2189d6d056d12a903597a758/muffin-peewee-async-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3eec5cce7cb8487b7935738bb68210c4", "sha256": "424bd090c07e36ac2740b22f278337646cc2709166f20193a449106adae6da12" }, "downloads": -1, "filename": "muffin-peewee-async-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3eec5cce7cb8487b7935738bb68210c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4753, "upload_time": "2017-08-09T11:59:09", "url": "https://files.pythonhosted.org/packages/57/0f/ce54ca6106200d8f5d97030861d04319412f2189d6d056d12a903597a758/muffin-peewee-async-0.1.1.tar.gz" } ] }