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/*
Publish
From repo root:
.\scripts\publish-python.ps1
For TestPyPI:
.\scripts\publish-python.ps1 -TestPyPI
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.0a1.tar.gz
(11.6 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.0a1.tar.gz.
File metadata
- Download URL: loomic_agenauth-1.0.0a1.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c67ef0ab6f3f75a3e71e26b868ff8b377777731c2a92b359b4435ea75f64df9
|
|
| MD5 |
33975cbd305b0f2174e7e9a2f4d21762
|
|
| BLAKE2b-256 |
905d52de4705d2bdac41f82f80f9082ba871010d75861e821c2919f87717115d
|
File details
Details for the file loomic_agenauth-1.0.0a1-py3-none-any.whl.
File metadata
- Download URL: loomic_agenauth-1.0.0a1-py3-none-any.whl
- Upload date:
- Size: 9.3 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 |
97b5d8070f67f5c5be0e280a8af5a7a81bbe992122b169222f2b47e1a6e93428
|
|
| MD5 |
bbcdde59eae933e6bd29a087d289ebfa
|
|
| BLAKE2b-256 |
6c5ea37b2af6f90d567cfd8df482a48520359cd08fe4f0cc7192cc1f3df1d09e
|