Official Python SDK for AgentAuth.
Project description
AgentAuth Python SDK
Official Python SDK for Loomic Dev AgentAuth.
Package
loomic-agenauth
Install
pip install loomic-agenauth
Quickstart
from agentauth import AgentAuthClient, AgentAuthClientConfig
from agentauth.types.consent import ConsentOptions
client = AgentAuthClient(
AgentAuthClientConfig(
client_id="ca_xxx",
api_key="sk_xxx",
environment="production",
)
)
consent = client.request_consent(ConsentOptions(scopes=["github:read"], duration="1h"))
result = client.wait_for_approval(consent.consent_id)
Local development
python -m pip install --upgrade pip
python -m pip install -e .[dev]
pytest
python -m build --sdist --wheel
python -m twine check dist/*
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
loomic_agenauth-1.0.0a2.tar.gz
(11.5 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 loomic_agenauth-1.0.0a2.tar.gz.
File metadata
- Download URL: loomic_agenauth-1.0.0a2.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f33341c8d5a6cb08f80bbfe0d7307f9cf1d5cce7d307e2675963cdb84f2a872
|
|
| MD5 |
2863973606ead0ce2fe7db3e52612642
|
|
| BLAKE2b-256 |
581e006dd96474823052a0473671322538f91e5267d947c69c9b7425488dc66a
|
File details
Details for the file loomic_agenauth-1.0.0a2-py3-none-any.whl.
File metadata
- Download URL: loomic_agenauth-1.0.0a2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3232625ae538419ab4136a221241932de3262afd515fea6b206d1784b751dbd0
|
|
| MD5 |
8e4bd5f8faf1ce4553f8dcaf54838b4b
|
|
| BLAKE2b-256 |
772379c7f2f5eb66900b23c4cd5cad9fa369160d2428d566e662cca7b2f2be6c
|