Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.
/ skylark Public archive

No longer maintained. A micro python orm for mysql and sqlite3.

License

BSD-2-Clause, MIT licenses found

Licenses found

BSD-2-Clause
LICENSE-BSD
MIT
LICENSE-PEEWEE
Notifications You must be signed in to change notification settings

hit9/skylark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 15, 2015
5b7a14e · Jun 15, 2015
Jun 15, 2015
May 24, 2014
Jun 9, 2015
May 24, 2014
Jun 8, 2015
May 24, 2014
May 3, 2014
May 16, 2014
Jun 9, 2015
Jun 9, 2015
Jun 15, 2015
Jun 15, 2015
May 16, 2014
Jun 9, 2015
Jun 15, 2015

Repository files navigation

Skylark

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

Latest version: v0.9.1

Development status: 4 - Beta

Testing status: Build Status

Sample Code

>>> from models import User
>>> user = User(name='Tom', email='tom@gmail.com')
>>> user.save()  # insert
1
>>> user.email = 'tom@github.com'
>>> 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='kate@gmail.com')  # another insert
>>> user
{'email': 'kate@gmail.com', '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

Contributors

https://github.com/hit9/skylark/graphs/contributors

About

Many ideas are inspired by peewee, thanks a lot to @coleifer. (#34)

License

Changes

CHANGES](CHANGES)

About

No longer maintained. A micro python orm for mysql and sqlite3.

Resources

License

BSD-2-Clause, MIT licenses found

Licenses found

BSD-2-Clause
LICENSE-BSD
MIT
LICENSE-PEEWEE

Stars

Watchers

Forks

Packages

No packages published