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.jobs
  • client.projects.jobs.runs
  • client.projects.auth_sessions
  • client.projects.auth_sessions.validate
  • client.projects.auth_sessions.create
  • client.projects.auth_sessions.update

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.0.0.tar.gz (13.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.0.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: intuned_client-1.0.0.tar.gz
  • Upload date:
  • Size: 13.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.0.0.tar.gz
Algorithm Hash digest
SHA256 1c592e17762d9d11bd42745446531652e5c254dbd31ccfa61d4205429609ccec
MD5 8649d87446d083fae1460ac53154b69c
BLAKE2b-256 13820b4231cc07ed4a017f3a0a4f3e7cca9838fbfd90f0b6968de99a13659b2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: intuned_client-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b418aec0e70b187d8d5eded6b39baac6ae1e4d2e958c2c67d3a58340e518cf06
MD5 72689ae065558a4d7c8825c98ccc3648
BLAKE2b-256 f6af6a5c7c200d2d01933f066de8b32c630c99f4e26de5b206dfbf53e341bf2f

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