Skip to main content

skylark

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

Metadata

Release files for skylark 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skylark 0.9.1
File Size Uploaded
skylark-0.9.1.tar.gz 8.7 kB Details

Release files / skylark-0.9.1.tar.gz

Download URL skylark-0.9.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2ffeddd0751d736fced84568569468370349a95a566ca455b056f05b92a0a2d3
BLAKE2b-256 checksum
How to use checksums
ecbd41f5ab8f159a34c777ae00ddfd684cd62279b3d7f753247aee89980c053b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.1 This release

1 release file

0.9.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page