anji-orm-0.9.2
توضیحات
RethinkDB based ORM
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | anji-orm-0.9.2 |
| نام | anji-orm |
| نسخه کتابخانه | 0.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bogdan Gladyshev |
| ایمیل نویسنده | siredvin.dark@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/AnjiProject/anji-orm |
| آدرس اینترنتی | https://pypi.org/project/anji-orm/ |
| مجوز | MIT license |
===================
RethinkDB-based ORM
===================
.. image:: https://img.shields.io/pypi/v/anji-orm.svg
:target: https://pypi.python.org/pypi/anji-orm
.. image:: https://img.shields.io/pypi/l/anji-orm.svg
:target: https://pypi.python.org/pypi/anji-orm
.. image:: https://gitlab.com/AnjiProject/anji-orm/badges/master/build.svg
:target: https://gitlab.com/AnjiProject/anji-orm
:code:`anji_orm` simple ORM for RethinkDB
Installation
------------
:code:`anji_orm` is available as a python library on Pypi. Installation is very simple using pip :
.. code:: bash
$ pip install anji_orm
This will install :code:`anji_orm` as well as external dependency.
Basic usage
-----------
ORM registry should be initiated before usage:
.. code:: python
# 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
.. code:: python
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()
نیازمندی
| مقدار | نام |
|---|---|
| ~=0.5.1 | humanize |
| ~=1.3 | lazy |
| >=2.6.0 | jsonschema |
| ~=2.1.2 | aenum |
| ~=0.9.0 | toolz |
| >=0.4.0 | funcsubs |
| >=1.0.0 | repool-forked |
| >=1.0.0 | async-repool |
| <4,>=3.2.1 | aiohttp |
| <=2.21.0 | requests |
| ~=1.7 | sseclient-py |
| ~=0.7.1 | unqlite |
| ~=0.4.0 | aiofiles |
| >=5.0.7 | minio |
| <4,>=3.2.1 | aiohttp |
| <=2.21.0 | requests |
| ~=1.7 | sseclient-py |
| ~=0.4.0 | aiofiles |
| >=5.0.7 | minio |
| <4,>=3.2.1 | aiohttp |
| >=5.0.7 | minio |
| >=1.0.0 | async-repool |
| >=1.0.0 | repool-forked |
| ~=0.7.1 | unqlite |
نحوه نصب
نصب پکیج whl anji-orm-0.9.2:
pip install anji-orm-0.9.2.whl
نصب پکیج tar.gz anji-orm-0.9.2:
pip install anji-orm-0.9.2.tar.gz