Need help with skylark?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

hit9
187 Stars 49 Forks Other 745 Commits 10 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 30,114
Python
documen...
zh-cn
HTML
692 commits
# 262,599
HTML
Redis
C
Shell
3 commits
# 108,522
C++
C
1 commit

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='[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
{'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

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)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.