skylark 0.9.1
pip install skylark
Latest version
Released:
A micro python orm for mysql and sqlite.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: hit9
- Tags orm, mysql, sqlite, tiny, micro, database
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
A micro python orm for mysql and sqlite.
Sample Usage
>>> 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
Installation
$ pip install skylark
Links
NOTICE: skylark may not be stable before version 1.0
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD)
- Author: hit9
- Tags orm, mysql, sqlite, tiny, micro, database
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file skylark-0.9.1.tar.gz
.
File metadata
- Download URL: skylark-0.9.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ffeddd0751d736fced84568569468370349a95a566ca455b056f05b92a0a2d3 |
|
MD5 | 7d6aa30966466d58e1caa8daa277d07c |
|
BLAKE2b-256 | ecbd41f5ab8f159a34c777ae00ddfd684cd62279b3d7f753247aee89980c053b |