Aserto Directory gRPC client
This is an automatically generated client for interacting with Aserto's Directory service using the gRPC protocol.
The code was generated from https://buf.build/aserto-dev/directory.
Installation
Using Pip
pip install aserto-directory
Using Poetry
poetry add aserto-directory
Usage
import grpc
from aserto.directory.reader.v3 import ReaderStub, GetObjectRequest
with grpc.secure_channel(
target="directory.prod.aserto.com:8443",
credentials=grpc.ssl_channel_credentials(),
) as channel:
reader = ReaderStub(channel)
# Read an object from the directory.
response = reader.GetObject(
GetObjectRequest(object_type="user", object_id="rick@the-citadel.com"),
metadata=(
("authorization", f"basic {ASERTO_DIRECTORY_API_KEY}"),
("aserto-tenant-id", ASERTO_TENANT_ID),
),
)
print("Object:", object_type.result)
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.33.8.tar.gz
(53.2 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.33.8.tar.gz.
File metadata
- Download URL: aserto_directory-0.33.8.tar.gz
- Upload date:
- Size: 53.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c297cf528313100263f6bda047d5fbd21aa2d80fde0f0239dd1fbb7314f3cd
|
|
| MD5 |
11402330b6a186ca21aebd63203bbdf3
|
|
| BLAKE2b-256 |
7fedb11b1b099e6f5e30474de1fa4b311469032011635ec41faf8c75059c28a7
|
File details
Details for the file aserto_directory-0.33.8-py3-none-any.whl.
File metadata
- Download URL: aserto_directory-0.33.8-py3-none-any.whl
- Upload date:
- Size: 91.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db252ffbdd24ddf8ebed3755f649796d2497aee489a4c2d3396516d2a6c1785b
|
|
| MD5 |
f719f5317cdbb9767344bdcae57a39d6
|
|
| BLAKE2b-256 |
4795a565491cb2b0570422c9a95e768a37a3eab08c5a65031adc17fa69b76ca6
|