python-incidentio-client

raw JSON →
0.56.4 verified Fri May 01 auth: no python

Python client for Incident.io, a platform for incident management. Version 0.56.4 supports Python <4, >=3.8.1. The client is auto-generated from the Incident.io OpenAPI spec and receives regular updates. Release cadence is approximately monthly but varies.

pip install incidentio-client
error ModuleNotFoundError: No module named 'incidentio_client'
cause Installed wrong package name: `pip install python-incidentio-client` (the GitHub repo name) but PyPI package is `incidentio-client`.
fix
Install the correct package: pip install incidentio-client
error AttributeError: module 'incidentio_client' has no attribute 'Client'
cause Importing from wrong module. `Client` is not at the package root in newer versions.
fix
Use from incidentio_client.client import IncidentClient
error incidentio_client.exceptions.ApiException: (401) Reason: Unauthorized
cause Invalid or missing API key.
fix
Ensure you pass a valid API key to IncidentClient(api_key='...'). Get one from your Incident.io dashboard.
breaking The client is auto-generated; method names and signatures can change between minor versions. Pin your dependency to avoid unexpected breakage.
fix Pin version: `incidentio-client==0.56.4` in requirements.txt
deprecated Older versions (pre-0.35) used `from incidentio import Client` which is removed. Update imports to new pattern.
fix Use `from incidentio_client.client import IncidentClient` and initialize with `IncidentClient(api_key=...)`.
gotcha The client expects the API key passed directly, not via a config file. Many users mistakenly try to set it via environment variable but the client does not auto-read it.
fix Explicitly pass `api_key` to `IncidentClient` or read from env var manually.

Initialize the client with an API key and list incidents. Replace with actual API key or set environment variable INCIDENTIO_API_KEY.

import os
from incidentio_client.client import IncidentClient
api_key = os.environ.get('INCIDENTIO_API_KEY', '')
client = IncidentClient(api_key=api_key)
# Example: list incidents
incidents = client.incidents.v1.list_incidents()
print(incidents)