Skip to main content

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


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

anji_orm-0.8.2-py2.py3-none-any.whl (94.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file anji_orm-0.8.2-py2.py3-none-any.whl.

File metadata

  • Download URL: anji_orm-0.8.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 94.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for anji_orm-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 477e2f4aee4f2c0d1d26bf0b286623a9ed79d488c9fde3dd1055603a648a35a6
MD5 d906dd869121631bf7e581e806c254ba
BLAKE2b-256 1c213d45091a6776483a24a2f00049b432333900cb790660f55dc5b0b0b3e7c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page