A broadway extension wrapping Flask-SQLAlchemy
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
scripts
.dockerignore
.gitignore
.pylintrc
.pyup.yml
.travis.yml
CHANGES
Dockerfile
LICENSE
Makefile
README.rst
broadway_sqlalchemy.py
docker-compose.yml
release.pip
requirements.pip
setup.cfg
setup.py
tests.py
tox.ini

README.rst

Broadway-SQLAlchemy

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-sqlalchemy
python setup.py develop

History

See CHANGES

Licence

This project is licensed under the MIT licence.

Meta

This project uses Semantic Versioning.