Last updated:
0 purchases
anjiorm 0.11.7
anji_orm simple ORM for RethinkDB
Installation
anji_orm is available as a python library on Pypi. Installation is very simple using pip :
$ pip install anji_orm
This will install anji_orm as well as external dependency.
Basic usage
ORM registry should be initiated before usage:
# For sync usage
register.init(dict(db='test'))
register.load()
# Or for async usage
register.init(dict(db='test'), async_mode=True)
await register.async_load()
That, create some model
class T1(Model):
_table = 't2'
a1 = StringField()
a2 = StringField()
t2 = T1(a1='b', a1='c')
t2.send()
# or for async usage
await t2.async_send()
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.