Skip to main content

Owned Python SDK for the Intuned public APIs

Project description

intuned-client

Python SDK for the Intuned public APIs.

Install

pip install intuned-client

Quickstart

from intuned_client import IntunedClient
from intuned_client import models

with IntunedClient(
    api_key="your-intuned-api-key",
    workspace_id="123e4567-e89b-12d3-a456-426614174000",
) as client:
    response = client.projects.runs.start(
        project_name="my-project",
        body=models.RunStartRequestBody(
            api="my-awesome-api",
            parameters={"hello": "world"},
        ),
    )
    print(response.run_id)

Authentication

Pass your Intuned API key when creating the client:

from intuned_client import IntunedClient

client = IntunedClient(
    api_key="your-intuned-api-key",
    workspace_id="123e4567-e89b-12d3-a456-426614174000",
)

API shape

The client follows the API tag hierarchy:

  • client.projects.runs
  • client.projects.runs.start
  • client.projects.runs.result
  • client.projects.jobs
  • client.projects.jobs.runs
  • client.projects.auth_sessions
  • client.projects.auth_sessions.validate
  • client.projects.auth_sessions.create
  • client.projects.auth_sessions.update
  • client.web_tasks.start
  • client.web_tasks.result
  • client.web_tasks.run — convenience: starts a Web Task and polls result until terminal (status completed or canceled).

Example:

job_runs = client.projects.jobs.runs.list(
    project_name="my-project",
    job_id="job-123",
)

Async usage

from intuned_client import AsyncIntunedClient

async def main() -> None:
    async with AsyncIntunedClient(
        api_key="your-intuned-api-key",
        workspace_id="123e4567-e89b-12d3-a456-426614174000",
    ) as client:
        result = await client.projects.runs.result(
            project_name="my-project",
            run_id="run-123",
        )
        print(result)

Error handling

The SDK raises typed exceptions from intuned_client.exceptions, including:

  • AuthenticationError
  • NotFoundError
  • ValidationError
  • ServerError
  • ApiError

Notes

  • The SDK uses httpx for transport.
  • Request and response models are built with pydantic.
  • Both sync and async clients support custom httpx client injection.

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

intuned_client-1.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

intuned_client-1.1.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file intuned_client-1.1.0.tar.gz.

File metadata

  • Download URL: intuned_client-1.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for intuned_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 575e8e5e8b8eea778805e647fa451e54c9eabfa1adf301308d7c6877a12c90a6
MD5 cdedc5a113d6225cab872f3f0a5da090
BLAKE2b-256 70afb2419e0b3e87216780f8bf4d3dedfab466d7b0667b3563897d37973180f8

See more details on using hashes here.

File details

Details for the file intuned_client-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: intuned_client-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for intuned_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cc5ea69cddf7bd6cc004e7f61167dcb9e558b10fff4737cd2cc3a8300032522
MD5 e77b66e684665ecc15417349951f7825
BLAKE2b-256 c91f418f1be0bb2cfbfe4236dbfcad493aec46664b10935facff9e8b1ddc1468

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