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/*

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.0a2.tar.gz (11.5 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.0a2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for loomic_agenauth-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 1f33341c8d5a6cb08f80bbfe0d7307f9cf1d5cce7d307e2675963cdb84f2a872
MD5 2863973606ead0ce2fe7db3e52612642
BLAKE2b-256 581e006dd96474823052a0473671322538f91e5267d947c69c9b7425488dc66a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for loomic_agenauth-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 3232625ae538419ab4136a221241932de3262afd515fea6b206d1784b751dbd0
MD5 8e4bd5f8faf1ce4553f8dcaf54838b4b
BLAKE2b-256 772379c7f2f5eb66900b23c4cd5cad9fa369160d2428d566e662cca7b2f2be6c

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