This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

RethinkDB Object-Document Mapper

Project Description

RethinkDB Object-Document Mapper written in Python

Rethinkengine is currently in development and not ready for production use.

Running unit tests

[![Build Status](https://travis-ci.org/bwind/rethinkengine.png?branch=master)](https://travis-ci.org/bwind/rethinkengine) [![Coverage Status](https://coveralls.io/repos/bwind/rethinkengine/badge.png)](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
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rethinkengine-0.1.0.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Sep 26, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting