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()
Release files for anji-orm 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| anji_orm-0.8.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / anji_orm-0.8.2-py2.py3-none-any.whl
| Download URL | anji_orm-0.8.2-py2.py3-none-any.whl |
|---|---|
| Size | 94.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
477e2f4aee4f2c0d1d26bf0b286623a9ed79d488c9fde3dd1055603a648a35a6
|
|
BLAKE2b-256 checksum How to use checksums |
1c213d45091a6776483a24a2f00049b432333900cb790660f55dc5b0b0b3e7c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|