Bindings to interact with the Berkeley Tree Database Admin API using gRPC.
Project description
btrdb-admin-python
This repo contains a quick and dirty Python3 implementation of the BTRDB administrative API.
Note: At the moment only some of ACL related 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
First, 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()
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.2.tar.gz
(29.8 kB
view hashes)
Built Distribution
btrdb_admin-5.2-py3-none-any.whl
(30.0 kB
view hashes)
Close
Hashes for btrdb_admin-5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3da06b9ecf9d9fe74979fa57fffeffac38027211086426f9ac509954b06660d4 |
|
MD5 | a3ed9dd27b3724c96108d3634a95b7c9 |
|
BLAKE2b-256 | 5b7bcd63bba2d6b9e239651cebaa2ead726f547e2fdc0bfac240b2ebef5f3379 |