Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

RethinkDB based ORM

Project description

https://img.shields.io/pypi/v/anji-orm.svg https://img.shields.io/pypi/l/anji-orm.svg https://gitlab.com/AnjiProject/anji-orm/badges/master/build.svg

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()

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
anji_orm-0.11.5-py2.py3-none-any.whl (115.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page