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.runsclient.projects.runs.startclient.projects.runs.resultclient.projects.jobsclient.projects.jobs.runsclient.projects.auth_sessionsclient.projects.auth_sessions.validateclient.projects.auth_sessions.createclient.projects.auth_sessions.updateclient.web_tasks.startclient.web_tasks.resultclient.web_tasks.run— convenience: starts a Web Task and pollsresultuntil terminal (statuscompletedorcanceled).
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:
AuthenticationErrorNotFoundErrorValidationErrorServerErrorApiError
Notes
- The SDK uses
httpxfor transport. - Request and response models are built with
pydantic. - Both sync and async clients support custom
httpxclient injection.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
575e8e5e8b8eea778805e647fa451e54c9eabfa1adf301308d7c6877a12c90a6
|
|
| MD5 |
cdedc5a113d6225cab872f3f0a5da090
|
|
| BLAKE2b-256 |
70afb2419e0b3e87216780f8bf4d3dedfab466d7b0667b3563897d37973180f8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cc5ea69cddf7bd6cc004e7f61167dcb9e558b10fff4737cd2cc3a8300032522
|
|
| MD5 |
e77b66e684665ecc15417349951f7825
|
|
| BLAKE2b-256 |
c91f418f1be0bb2cfbfe4236dbfcad493aec46664b10935facff9e8b1ddc1468
|