Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loomic_agenauth-1.0.0a1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

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

Hashes for loomic_agenauth-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 2c67ef0ab6f3f75a3e71e26b868ff8b377777731c2a92b359b4435ea75f64df9
MD5 33975cbd305b0f2174e7e9a2f4d21762
BLAKE2b-256 905d52de4705d2bdac41f82f80f9082ba871010d75861e821c2919f87717115d

See more details on using hashes here.

File details

Details for the file loomic_agenauth-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for loomic_agenauth-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 97b5d8070f67f5c5be0e280a8af5a7a81bbe992122b169222f2b47e1a6e93428
MD5 bbcdde59eae933e6bd29a087d289ebfa
BLAKE2b-256 6c5ea37b2af6f90d567cfd8df482a48520359cd08fe4f0cc7192cc1f3df1d09e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page