Skip to main content

Tiny Python ORM for MySQL

Project description

Tiny Python ORM for MySQL.

Sample Usage

>>> from models import User
>>> user = User(name='Tom', email='')
>>>  # insert
>>> = ''
>>>  # update
>>> [ for user in]  # select
>>> query = User.where(name='Tom').delete()
>>> query.execute()  # delete
>>> user = User.create(name='Kate', email='')  # another insert
{'email': '', 'name': 'Kate', 'id': 2L}
>>> user.destroy()  # another delete


$ pip install

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, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size (7.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page