Skip to main content

Easy ORM for Flask and Django Based on SqlAlchemy.ORM

Project description

pyco-sqlalchemy

Easy ORM for Flask and Django Based on SqlAlchemy.ORM

Tips:

Samples

  • flask
from pyco_sqlalchemy._flask import BaseModel, db

class User(db.Model, BaseModel):
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    name = db.Column(db.String(32))
    email = db.Column(db.String(64), unique=True)
     

form = dict(name="dev")
u1 = User.insert(form, email="dev@pypi.com")
u3 = User.upsert_one(form, email="dev@oncode.cc")
assert u1.id == u3.id

Todos

  • SQLALchemy-ORM
  • django-ORM

Change Logs

v1.0

  • support flask-sqlalchemy

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 pyco-sqlalchemy, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pyco_sqlalchemy-1.0.4.tar.gz (4.5 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