Skip to main content

A nice micro orm for python, mysql only.

Project description

A nice micro orm for python, mysql only.

Sample Usage

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

Installation

$ pip install skylark

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skylark-0.7.0.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file skylark-0.7.0.tar.gz.

File metadata

  • Download URL: skylark-0.7.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for skylark-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8f2d83d712ed127c6588c94770c9573a3acbb9843a9ff7b24309d4b1ec0da51b
MD5 8ce91082343acb3dbff2fb704ab8a1bc
BLAKE2b-256 9852d6745f0010690d046d479c7848e7766f1f3dba681435f8bf3f1f33becf40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page