aio_crud_store-0.0.2
توضیحات
A small subset of dbs capabilities to write dbs-independent asyncio libs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aio_crud_store-0.0.2 |
| نام | aio_crud_store |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Imbolc |
| ایمیل نویسنده | imbolc@imbolc.name |
| آدرس صفحه اصلی | https://github.com/imbolc/aio_crud_store |
| آدرس اینترنتی | https://pypi.org/project/aio_crud_store/ |
| مجوز | ISC |
AsyncIO CRUD Store
==================
A very simple subset of databases capabilities intended to use most of dbs
the same way. You can use it to write database independent asyncio
libraries.
It currently supports mongodb (through motor_) and postrgresql
(through aiopg_), please feel free to add other dbs implementations.
Install
-------
::
pip install aio_crud_store
Usage
-----
The api is very simple and obvious (I hope).
The working examples are in *examples* directory.
.. code:: python
# create
id = await store.create({'foo': 'bar'})
# read
doc = await store.read(foo='bar')
# update
await store.update(id, {'foo': 'baz', 'spam': 1})
# delete
await store.delete(id)
.. _motor: https://motor.readthedocs.org/
.. _aiopg: https://aiopg.readthedocs.org/
نحوه نصب
نصب پکیج whl aio_crud_store-0.0.2:
pip install aio_crud_store-0.0.2.whl
نصب پکیج tar.gz aio_crud_store-0.0.2:
pip install aio_crud_store-0.0.2.tar.gz