Skip to main content

Python client for Axon Server

Project description

Python Client for Axon Server

This package provides a Python client for Axon Server.


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.

Getting started

Start an Axon Server.

$ docker run -d --name my-axon-server -p 8024:8024 -p 8124:8124 axoniq/axonserver axonserver

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.


After cloning the axonclient repository, set up a virtual environment and install dependencies by running the following command in the root folder.

$ make install

The make install command uses the build tool Poetry to create a dedicated Python virtual environment for this project, and installs popular development dependencies such as Black, isort and pytest.

Add tests in ./tests. Add code in ./axonclient.

Run tests.

$ make test

Check the formatting of the code.

$ make lint

Reformat the code.

$ make fmt

Add dependencies in pyproject.toml and then update installed packages.

$ make update-packages

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axonclient-0.1.2.tar.gz (34.3 kB view hashes)

Uploaded source

Built Distribution

axonclient-0.1.2-py3-none-any.whl (39.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page