Skip to main content

Peewee integration to Muffin framework

Project description

Muffin Peewee Async

.. _description:

Muffin Peewee Async -- Peewee integration to Muffin framework using peewee-async.

Based on with an ability to execute asynchronous queries.


**Muffin Peewee Async** should be installed using pip: ::

pip install muffin-peewee-async


Add `muffin_peewee_async` to `PLUGINS` in your Muffin Application configuration.

Or install it manually like this: ::

db = muffin_peewee_async.Plugin(**{'options': 'here'})

app = muffin.Application('test')


`PEEWEE_ASYNC_CONNECTION` -- connection string to your database (postgres://postgres:postgres@

`PEEWEE_ASYNC_CONNECTION_PARAMS` -- Additional params for connection ({})

`PEEWEE_ASYNC_MIGRATIONS_PATH` -- path to migration folder (migrations)


import peewee_async
class Test(peewee.Model):
data = peewee.CharField()

async def view(request):
tests = await
return [ for t in tests]


Create migrations: ::

$ muffin example:app pw_create [NAME] [--auto]

Run migrations: ::

$ muffin example:app pw_migrate [NAME] [--fake]

Rollback migrations: ::

$ muffin example:app pw_rollback NAME

Load/Dump data to CSV

Dump table `test` to CSV file: ::

$ muffin example:app pw_dump test

Load data from CSV file to table `test`: ::

$ muffin example:app pw_load test

.. _bugtracker:

Bug tracker

If you have any suggestions, bug reports or
annoyances please report them to the issue tracker

.. _contributing:


Development of Muffin Peewee Async happens at:


* serathius (Marek Siarkowicz)

.. _license:


Licensed under a `MIT license`_.

.. _links:

.. _MIT license:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for muffin-peewee-async, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size muffin-peewee-async-0.1.1.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page