RethinkDB Object-Document Mapper written in Python
Rethinkengine is currently in development and not ready for production use.
Running unit tests
[](https://travis-ci.org/bwind/rethinkengine) [](https://coveralls.io/r/bwind/rethinkengine)
In the root of the repository you’ll find runtests.sh, which will run all the tests and show coverage stats. Requires packages nose and coverage to be installed. Rethinkengine aims to be compatible with Python versions 2.6 and 2.7. Python 3 support will be added later.
Connecting to RethinkDB
from rethinkengine import connect connect(‘dbname’)
If dbname doesn’t exist, it will be created for you.
Defining Documents
from rethinkengine import *
- class User(Document):
name = StringField() colors = ListField()
# Create the table User.table_create()
Storing data
u = User(name=’John’, colors=[‘red’, ‘blue’]) u.save()
u.colors = [] u.save()
Retrieving data
- for u in User.objects.all():
print u.name, u.colors
- for u in User.objects.filter(name=’John’):
print u.name, u.colors
- for u in User.objects.all().order_by(‘name’):
print u.name, u.colors
Metadata
Release files for rethinkengine 0.1.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 | |
|---|---|---|---|---|
| rethinkengine-0.1.0.tar.gz | 6.4 kB | Without provenance | Details |
Release files / rethinkengine-0.1.0.tar.gz
| Download URL | rethinkengine-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
803351d430aa7c3a1d036501d29be2c0ea27ccdcf519a36ecb14002ecbab349a
|
|
BLAKE2b-256 checksum How to use checksums |
9e2fd6f33ca57ccfe0541947252421dc0e311415f9c62ca4edfb6b6b0ab7f5e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rethinkengine 0.1.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.