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.1.tar.gz (21.3 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.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: intuned_client-1.1.1.tar.gz
  • Upload date:
  • Size: 21.3 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.1.tar.gz
Algorithm Hash digest
SHA256 3a57607d6f65218644c06c1a7133e6012b8ce73851cfe2a06c3b8967bedafca3
MD5 674ba5be5bcde40b44a3fc8ff1264d0a
BLAKE2b-256 18a713fab99d6d59c76eed7573eeca44f6aeebeb3b8b178c527d682099a9c6c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: intuned_client-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bda05bb2da9b83dd0077b914250e21e5c651fbb715b6c60c1f83c72c85305351
MD5 bb57426de438faf63585946eae19e125
BLAKE2b-256 f1f3768727e317f30a167b5a1ff9d99bc10e09e422c75e32059e7e9c689c0da1

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