btrdb-admin-5.8
توضیحات
Bindings to interact with the Berkeley Tree Database Admin API using gRPC.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | btrdb-admin-5.8 |
| نام | btrdb-admin |
| نسخه کتابخانه | 5.8 |
| نگهدارنده | ['Allen Leis'] |
| ایمیل نگهدارنده | ['allen@pingthings.io'] |
| نویسنده | Allen Leis |
| ایمیل نویسنده | allen@pingthings.io |
| آدرس صفحه اصلی | http://btrdb.io/ |
| آدرس اینترنتی | https://pypi.org/project/btrdb-admin/ |
| مجوز | BSD-3-Clause |
# btrdb-admin-python
This package contains a quick and dirty Python3 implementation of the BTRDB administrative API.
**Note: At the moment only the ACL and Core API calls are available**
**Note: due to the quick/informal nature of this codebase, the tests ONLY include integration tests that expect to connect to a REAL btrdb server. A dotenv file or ENV config is required to run the tests**
## Usage
Install the API bindings with `pip` (using Python 3.6 or later):
$ pip install btrdb-admin
Then, obtain a connection to the database using a valid username and password that is able to use the admin API. Then you can execute admin methods directly off of the object.
from btrdb_admin import connect
db = connect("brtrdb.example.net:4411", username="marmaduke", password="usiB6iUsRLyn")
users = db.get_all_users()
## JupyterHub Integration
The `btrdb_admin` library provides support for JupyterHub authentication using the BTrDB IDP. To use with JupyterHub, simply `pip install -U btrdb-admin` then in your `jupyterhub_config.py` add the following line:
c.JupyterHub.authenticator_class = 'btrdb'
Note that you should see a comment above the default position of this configuration that `btrdb` is one of the installed authenticators for use.
نیازمندی
| مقدار | نام |
|---|---|
| ==5.1.2 | PyYAML |
| >=1.19.0 | grpcio |
| >=1.19.0 | grpcio-tools |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6, <4 | Python |
نحوه نصب
نصب پکیج whl btrdb-admin-5.8:
pip install btrdb-admin-5.8.whl
نصب پکیج tar.gz btrdb-admin-5.8:
pip install btrdb-admin-5.8.tar.gz