Skip to main content

No project description provided

Project description

Muffin-SqlAlchemy – A simple sqlalchemy helper plugin for muffin framework.

Build Status


  • python >= 3.4
  • muffin >= 0.5.5


Muffin-SqlAlchemy should be installed using pip:

pip install muffin-sqlalchemy


Add muffin-sqlalchemy to muffin plugin list:

import muffin

app = muffin.Application(


And use sqlalchemy session in request object:

class Example(muffin.Handler):

    def post(self, request):
        foo = FooModel(name='foo')
        session = request.sqlalchemy_session
        return 'Ok'


SQLALCHEMY_DATABASE_URI URI of database (sqlite:///muffin.db)


The plugin adds some commands to your Muffin application.

Create Databse

Create all tables in database according to you engine:

$ muffin app_module create_databse

to work fine inherit from muffin_sqalchemy.SqlAlchemyDeclarativeBase to create yours sqlalchemy models

Bug tracker

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


Development of Muffin-SqlAlchemy happens at:



Licensed under a 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-sqlalchemy, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size muffin-sqlalchemy-0.0.4.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page