gRPC client for Aserto Directory service instances
Project description
Aserto Directory gRPC client
This is an automatically generated client for interacting with Aserto's Directory service using the gRPC protocol.
Installation
Using Pip
pip install aserto-directory
Using Poetry
poetry add aserto-directory
Usage
import grpc
from aserto.directory.reader.v2 import ReaderStub, GetObjectTypesRequest
with grpc.secure_channel(
target="directory.prod.aserto.com:8443",
credentials=grpc.ssl_channel_credentials(),
) as channel:
reader = ReaderStub(channel)
# List all object types in the directory
response = reader.GetObjectTypes(
GetObjectTypesRequest(),
metadata=(
("authorization", f"basic {ASERTO_DIRECTORY_API_KEY}"),
("aserto-tenant-id", ASERTO_TENANT_ID),
),
)
for object_type in response.results:
print("Object Type:", object_type.name)
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
aserto_directory-0.31.2.tar.gz
(73.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aserto_directory-0.31.2.tar.gz.
File metadata
- Download URL: aserto_directory-0.31.2.tar.gz
- Upload date:
- Size: 73.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.13 Linux/6.5.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f4c69d88a4e53d33449e372431ba864a903424c6507e9cba0abfa85e9c4092
|
|
| MD5 |
7b3e66dab6797fc0a1e8610c1d6487c8
|
|
| BLAKE2b-256 |
45b1a05580b4a56cdae02ae04155e03f709e6847bb7eb8acfeb97b0757d7723b
|
File details
Details for the file aserto_directory-0.31.2-py3-none-any.whl.
File metadata
- Download URL: aserto_directory-0.31.2-py3-none-any.whl
- Upload date:
- Size: 127.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.13 Linux/6.5.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7496646c073d48e3d4440d213aaf354224a264bdc1ec3fd77852a17aebbeca25
|
|
| MD5 |
67034bf0d919a53b2be4c213f019b06a
|
|
| BLAKE2b-256 |
5f22f9ea11e4587a725bd1ed67275d1d9baaca0aaa6218a6da07ae7fcf6ffcea
|