https://github.com/axiomhq/axiom-py
Official Python bindings for the Axiom API
https://github.com/axiomhq/axiom-py
api axiom client hacktoberfest logger python
Last synced: about 1 year ago
JSON representation
Official Python bindings for the Axiom API
- Host: GitHub
- URL: https://github.com/axiomhq/axiom-py
- Owner: axiomhq
- License: mit
- Created: 2021-03-22T08:47:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-02T08:43:05.000Z (about 1 year ago)
- Last Synced: 2025-05-02T09:45:57.817Z (about 1 year ago)
- Topics: api, axiom, client, hacktoberfest, logger, python
- Language: Python
- Homepage: https://axiom.co
- Size: 476 KB
- Stars: 29
- Watchers: 2
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!WARNING]
> Version [v0.9.0](https://github.com/axiomhq/axiom-py/releases/tag/v0.9.0) removes the aggregation operation enum, see [#158](https://github.com/axiomhq/axiom-py/pull/158).
# axiom-py [![CI][ci_badge]][ci] [![PyPI version][pypi_badge]][pypi] [![Python version][version_badge]][pypi]
```py
import axiom_py
client = axiom_py.Client()
client.ingest_events(dataset="DATASET_NAME", events=[{"foo": "bar"}, {"bar": "baz"}])
client.query(r"['DATASET_NAME'] | where foo == 'bar' | limit 100")
```
## Install
```sh
pip install axiom-py
```
## Documentation
Read documentation on [axiom.co/docs/guides/python](https://axiom.co/docs/guides/python).
## License
[MIT](./LICENSE)
[ci]: https://github.com/axiomhq/axiom-py/actions/workflows/ci.yml
[ci_badge]: https://img.shields.io/github/actions/workflow/status/axiomhq/axiom-py/ci.yml?branch=main&ghcache=unused
[pypi]: https://pypi.org/project/axiom-py/
[pypi_badge]: https://img.shields.io/pypi/v/axiom-py.svg
[version_badge]: https://img.shields.io/pypi/pyversions/axiom-py.svg