axiom-py is the official Python SDK for interacting with the Axiom API, allowing users to ingest, query, and manage observability data at scale. It provides both synchronous and asynchronous clients. The current version is 0.10.0 and it maintains an active release cadence with ongoing development.
pip install axiom-pyVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the Axiom client using environment variables for security, ingest sample events, and then query them. It uses the asynchronous client for better performance.
Review your aggregation queries and update them to use the new method for specifying aggregation operations, likely string-based or a different object structure. Refer to the official documentation for updated aggregation syntax.
Ensure you generate and use an API token (xaat- prefixed) for edge ingestion and explicitly set the `edge` or `edge_url` parameter when initializing the `Client` or `AsyncClient`.
Set the `AXIOM_TOKEN` and `AXIOM_ORG_ID` environment variables, or pass `token` and `org_id` arguments explicitly to the `axiom_py.Client()` or `axiom_py.AsyncClient()` constructor. For example: `client = axiom_py.Client(token='YOUR_TOKEN', org_id='YOUR_ORG_ID')`.
Install the package using pip: 'pip install axiom-py'.
Use the correct import statement: 'from axiom_py import Client'.
Ensure the package is installed and up-to-date: 'pip install --upgrade axiom-py'.
Initialize the 'Client' with valid API credentials: 'client = Client("<api token>", "<org id>")'.Verify the dataset name and ensure it exists in your Axiom account.
No dependency data recorded yet.