Skip to main content

Python Client for Axon Server

This package provides a Python client for Axon Server.

Installation

Use pip to install the stable distribution from the Python Package Index.

$ pip install axonserver

Please note, it is recommended to install Python packages into a Python virtual environment.

Construct the AxonClient class with a uri that includes the host and port of your Axon Server.

from axonclient.client import AxonClient

axon_client = AxonClient(uri='localhost:8024')

Call client methods to append and list events in Axon Server.

See the Python eventsourcing extension project for Axon Server for an example of use.

Developers

Clone the GitHub repo and the use the following make commands.

Install Poetry.

$ make install-poetry

Install packages.

$ make install-packages

Start Axon Server for aggregates.

$ make start-axon-server-aggregates

Run clients tests for aggregates.

$ make test-axon-client-aggregates

Stop Axon Server for aggregates.

$ make stop-axon-server-aggregates

Start Axon Server for DCB.

$ make start-axon-server-dcb

Run clients tests for DCB.

$ make test-axon-client-dcb

Stop Axon Server for DCB.

$ make stop-axon-server-dcb

Check the formatting of the code.

$ make lint

Reformat the code.

$ make fmt

Tests belong in ./tests. Code-under-test belongs in ./axonclient.

Edit package dependencies in pyproject.toml. Update installed packages (and the poetry.lock file) using the following command.

$ make update-packages

Release files for axonclient 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axonclient 0.2
File Size Uploaded
axonclient-0.2.tar.gz 41.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for axonclient 0.2
File Interpreter ABI Platform
axonclient-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 92.8 kB

Release files / axonclient-0.2.tar.gz

Download URL axonclient-0.2.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9ce3c9270336139939b0cf373116f69dc70bff766b56f1ddd68515f30bc77b9e
BLAKE2b-256 checksum
How to use checksums
1b8da06da776b4dd161dc9972605ec9f2093281df10ce0f8a8c9540eba6db7e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

Release files / axonclient-0.2-py3-none-any.whl

Download URL axonclient-0.2-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8193a2440fb0a6eebdbc5e29abf64019f8753aa06a7d8e7836a04860e1137189
BLAKE2b-256 checksum
How to use checksums
f8b8c77cd2bbe319ed0501f407a62ec733b92641d3b2204383c6955437dc2945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page