Conduktor Proxy API Client
Project description
cdk-proxy-api-client
API Client library to interact with Conduktor Proxy
Current version: v1beta1
Getting started
First, create a Proxy Client
from cdk_proxy_api_client.proxy_api import ApiClient, ProxyClient
api = ApiClient("localhost", port=8888, username="superUser", password="superUser")
proxy_client = ProxyClient(api)
Features
Note: we assume you are re-using the proxy_client
as shown above.
- Create new Token for a tenant
from cdk_proxy_api_client.admin_auth import AdminAuth
admin = AdminAuth(proxy_client)
admin.create_tenant_credentials("a_tenant_name")
- List all topic mappings for a tenant
from cdk_proxy_api_client.proxy_api import Multitenancy
tenants_mgmt = Multitenancy(proxy_client)
tenants = tenants_mgmt.list_tenants(as_list=True)
- Create a new mapping for a tenant
- Delete a tenant - topic mapping
- Delete all topic mappings for a tenant
from cdk_proxy_api_client.tenant_mappings import TenantMappings
tenant_mappings_mgmt = TenantMappings(proxy_client)
tenant_mappings_mgmt.create_tenant_topic_mapping(
"tenant_name", "logical_name", "real_name"
)
tenant_mappings_mgmt.delete_tenant_topic_mapping("tenant_name", "logical_name")
Testing
The testing is for now very manual. See e2e_testing.py
Pytest will be added later on
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk_proxy_api_client-0.1.1.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for cdk_proxy_api_client-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4ba4cf5c3578c97c4c526cf6aca4d4e8d0dc68029eac56c13fd3f84e3c67dde |
|
MD5 | 95f0ae6497941b2a260eb0ab3221e5a3 |
|
BLAKE2b-256 | 721dae02bccca8c60541201cb1f8b023295c35142f2952f55837e91aad7fc7af |
Close
Hashes for cdk_proxy_api_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3e4d580c7949387c76e116e511c3e017463d75d959c4271ae9e01579281b5e3 |
|
MD5 | fc7aa11c55f9f01b972dd4efe7fb36da |
|
BLAKE2b-256 | e84a91a8913bf29f0c74521907a07eec3ee4f161028fe014084ed91848a5cf89 |