GithubHelp home page GithubHelp logo

jander / sqlalchemy-wrapper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jpsca/sqla-wrapper

2.0 2.0 0.0 2.24 MB

A friendly wrapper for SQLAlchemy

Home Page: http://sqlawrapper.lucuma.co

License: Other

Makefile 1.30% Python 98.70%

sqlalchemy-wrapper's Introduction

SQLAlchemy-Wrapper Build Status

A friendly wrapper for SQLAlchemy.

python

from sqlalchemy_wrapper import SQLAlchemy

db = SQLAlchemy('sqlite:///:memory:')

class ToDo(db.Model):

id = db.Column(db.Integer, primary_key=True) ...

db.create_all() todos = db.query(ToDo).all()

Read the complete documentation here: http://sqlawrapper.lucuma.co

SQLAlchemy-Wrapper was born as a framework-independent fork of Flask-SQLAlchemy. Read about the goals of the project in the About SQLAlchemy-Wrapper section of the documentation.

Works with Python 2.7, 3.3+ and pypy.

Contributing

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Fork the SQLAlchemy-Wrapper repository on Github to start making your changes.
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.

Run the tests

We use some external dependencies, listed in requirements_tests.txt:

$  pip install -r requirements-tests.txt
$  python setup.py install

To run the tests in your current Python version do:

$  make test

To run them in every supported Python version do:

$  tox

It's also neccesary to run the coverage report to make sure all lines of code are touch by the tests:

$  make coverage

Our test suite runs continuously on Travis CI with every update.

copyright

2012-2015 by Juan-Pablo Scaletti.

license

BSD, see LICENSE for more details.

Some of the code was extracted and adapted from Flask-SQLAlchemy

copyright

2010-2014 by Armin Ronacher.

license

BSD, see LICENSE for more details.

sqlalchemy-wrapper's People

Contributors

curiousdima avatar glogiotatidis avatar imran2140 avatar jander avatar jcn avatar jpsca avatar ondoheer avatar sloria avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.