CURD.py
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
Links
NOTICE: CURD.py may not be stable before version 1.0
Metadata
Release files for CURD.py 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CURD.py-0.6.0.tar.gz | 7.3 kB | Without provenance | Details for CURD.py-0.6.0.tar.gz |
Release files / CURD.py-0.6.0.tar.gz
| Download URL | CURD.py-0.6.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bff475007536c0791ee07d5c3f35c53b4ac0d2e9927fb19121efbced65fe1bd5
|
|
BLAKE2b-256 checksum How to use checksums |
e013a89b215b0494f942175035a3789348b02dd89b88010c6376633fd2dca90e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for CURD.py 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.