Skip to main content

Tiny Python ORM for MySQL.

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 CURD.py

Download files

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

Source Distribution

CURD.py-0.6.0.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file CURD.py-0.6.0.tar.gz.

File metadata

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

File hashes

Hashes for CURD.py-0.6.0.tar.gz
Algorithm Hash digest
SHA256 bff475007536c0791ee07d5c3f35c53b4ac0d2e9927fb19121efbced65fe1bd5
MD5 0627c9491a6a97f45e568a6e71bd1c82
BLAKE2b-256 e013a89b215b0494f942175035a3789348b02dd89b88010c6376633fd2dca90e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

1 file

0.5.0

1 file

0.4.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page