Build status - Master:
Build status - Dev:
RethinkORM is a small wrapper class to help make working with documents in RethinkDB easier, and in a more Pythonic way.
I recently found RethinkDB and was amazed at how easy everything seemed to be, however one thing that I’ve missed is how the data is just a Python List or Dict rather than a full wrapper class. So I figured a good way to learn the general use of the Python RethinkDB driver was to write a general wrapper class that functioned a bit like an ORM, providing some easier to work with data and objects.
Unittests are included, and the code should be PEP8 compliant. The tests are automatically ran each commit, thanks to travis-ci.org and this documentation is kindly hosted and automatically rebuilt by readthedocs.org.
Gittip if you like the work I do and would consider a small donation to help fund me and this project:
This package is kindly hosted on the Python Package Index making it as easy as a simple pip command to install.
pip install RethinkORM
There are currently two main modules to this package, Models and Collections.
The core of RethinkORM, models are the main unit of code you’ll probably be use from this package.
New in v0.2.0 are collections. These are containers for interacting with sets of documents. Collections provide an easy way to gather up just the documents you need, and have them automatically wrapped with the ORM RethinkModel object.
You can read more about collections here.
All code for this can be found online at github. If something is broken, or a feature is missing, please submit a pull request or open an issue. Most things I probably won’t have time to get around to looking at too deeply, so if you want it fixed, a pull request is the way to go. Besides that, I’m releasing this under the GPLv3 License as found in the LICENSE.txt file. Enjoy!