Skip to main content

A broadway extension wrapping Flask-SQLAlchemy

Project description

A broadway extension wrapping Flask-SQLAlchemy.

For more information check the Documentation.

Example

# __init__.py
import broadway

from broadway_sqlalchemy import extension as db

factory = broadway.factory()

factory.add_extension([
    'broadway_sqlalchemy'
])

class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(80), unique=True)
    email = db.Column(db.String(120), unique=True)

    def __init__(self, username, email):
        self.username = username
        self.email = email

    def __repr__(self):
        return '<User %r>' % self.username

application = factory(__name__)

if __name__ == '__main__':
  application.run()

Install

To install broadway-sqlalchemy via pip:

pip install broadway-sqlalchemy

Source

To install from source:

git clone git://github.com/artisanofcode/python-broadway-sqlalchemy.git
cd python-broadway
python setup.py develop

History

See CHANGES

Licence

This project is licensed under the MIT licence.

Meta

This project uses Semantic Versioning.

Download files

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

Files for Broadway-SQLAlchemy, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size Broadway_SQLAlchemy-0.0.1-py2.py3-none-any.whl (4.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size Broadway-SQLAlchemy-0.0.1.tar.gz (3.0 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