cbcmgr-1.2.0
توضیحات
Couchbase connection manager
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cbcmgr-1.2.0 |
| نام | cbcmgr |
| نسخه کتابخانه | 1.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michael Minichino |
| ایمیل نویسنده | info@unix.us.com |
| آدرس صفحه اصلی | https://github.com/mminichino/cb-util |
| آدرس اینترنتی | https://pypi.org/project/cbcmgr/ |
| مجوز | MIT License |
Couchbase Connection Manager
============================
Couchbase connection manager. Simplifies connecting to a Couchbase cluster and performing data and management operations.
Installing
==========
```
$ pip install cbcmgr
```
Usage
=====
```
>>> from cbcmgr.cb_connect import CBConnect
>>> from cbcmgr.cb_management import CBManager
>>> bucket = scope = collection = "test"
>>> dbm = CBManager("127.0.0.1", "Administrator", "password", ssl=False).connect()
>>> dbm.create_bucket(bucket)
>>> dbm.create_scope(scope)
>>> dbm.create_collection(collection)
>>> dbc = CBConnect("127.0.0.1", "Administrator", "password", ssl=False).connect(bucket, scope, collection)
>>> result = dbc.cb_upsert("test::1", {"data": 1})
>>> result = dbc.cb_get("test::1")
>>> print(result)
{'data': 1}
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl cbcmgr-1.2.0:
pip install cbcmgr-1.2.0.whl
نصب پکیج tar.gz cbcmgr-1.2.0:
pip install cbcmgr-1.2.0.tar.gz