Skip to main content

asiri-sdk

Official Python SDK for the Asiri API.

Install

pip install asiri-sdk

Quickstart

from asiri import AsiriClient, AsiriError

asiri = AsiriClient(
    api_key="sk_live_...",
)

try:
    overview = asiri.get("/v1/reports/overview")
except AsiriError as exc:
    print(exc.code, exc.status, exc.request_id)
else:
    print(overview)

Mutating requests

Pass an idempotency key on POST, PUT, PATCH, and DELETE requests so retries are safe:

asiri.post(
    "/v1/reports/build",
    json_body={"type": "audit_summary", "format": "json"},
    idempotency_key="retry-safe-key",
)

AsiriClient defaults to https://api.asiri.ng, sends Accept: application/json, and adds User-Agent: asiri-sdk/<version> unless you override those headers.

Development

PYTHONPATH=packages/sdk-python/src python3 -m unittest discover packages/sdk-python/tests
python3 -m pip wheel packages/sdk-python --no-deps --wheel-dir /tmp/asiri-sdk-wheel

Metadata

Release files for asiri-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asiri-sdk 0.1.0
File Size Uploaded Provenance
asiri_sdk-0.1.0.tar.gz 5.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for asiri-sdk 0.1.0
File Interpreter ABI Platform
asiri_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / asiri_sdk-0.1.0.tar.gz

Download URL asiri_sdk-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
092ba10f33f8d2aa73736d1a9047bd2ff4293512391cddcb68bc824fc6cb833b
BLAKE2b-256 checksum
How to use checksums
a609fdcbbe31ba01e30ef475b30d76d8fa0297931ba4747ed6b04c4ce448cc71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2026.

Transparency log

Release files / asiri_sdk-0.1.0-py3-none-any.whl

Download URL asiri_sdk-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
418501dedf5e3f3c58c4908bdaed895f5016d4b9b8b1b78a269bd52a6ed56a52
BLAKE2b-256 checksum
How to use checksums
c97ab02072213ca972b9e347cc13600085e333c00bf2e0f888460fc228b16efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2026.

Transparency log

Security for asiri-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for asiri_sdk-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page