Skip to content
/ skylark Public
forked from hit9/skylark

🐍 A micro python orm for mysql and sqlite3. ( Development status: 4 - Beta)

License

Notifications You must be signed in to change notification settings

yc850k/skylark

 
 

Repository files navigation

A micro python orm for mysql and sqlite3. (Original named CURD.py).

Latest version: v0.9.0

Development status: 4 - Beta

Testing status: Build Status

Sample Code

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

More examples: sample/, snippets

Requirements

Install

$ pip install skylark

Documentation

Documentation: http://skylark.readthedocs.org/

Strongly recommend that you read Quick Start at first.

NOTE: skylark is not currently threading safe.

Sample App

Tests

License

LICENSE-BSD

Changes

CHANGES

About

🐍 A micro python orm for mysql and sqlite3. ( Development status: 4 - Beta)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.0%
  • CSS 2.1%
  • HTML 1.9%