Skip to main content

Bindings to interact with the Berkeley Tree Database Admin API using gRPC.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

btrdb_admin-5.11.1.tar.gz (55.7 kB view details)

Uploaded Source

Built Distribution

btrdb_admin-5.11.1-py3-none-any.whl (58.3 kB view details)

Uploaded Python 3

File details

Details for the file btrdb_admin-5.11.1.tar.gz.

File metadata

  • Download URL: btrdb_admin-5.11.1.tar.gz
  • Upload date:
  • Size: 55.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for btrdb_admin-5.11.1.tar.gz
Algorithm Hash digest
SHA256 e7e06d087ebeb200c72d42f0bd3a197b40d4b9d73872dc932756688142ac58fa
MD5 0ccc7d39b2b725c9d4f055c25e392701
BLAKE2b-256 539b46423cddded99e9b207b09d40f19d089398423ecf4cc91fb4643db34d053

See more details on using hashes here.

File details

Details for the file btrdb_admin-5.11.1-py3-none-any.whl.

File metadata

  • Download URL: btrdb_admin-5.11.1-py3-none-any.whl
  • Upload date:
  • Size: 58.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for btrdb_admin-5.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f35a1de5886b8c72faf0f35b06d9c929dde3b4c941f157fcdb50f878aaf68b4
MD5 057f1b0ded0beafe6cfe2d0d603d582b
BLAKE2b-256 fa6bbd93a965a259e676947fb84cc9a580ea3aa4005e9876aa52a53866864160

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page