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.

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

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.2.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axonclient-0.2-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file axonclient-0.2.tar.gz.

File metadata

  • Download URL: axonclient-0.2.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

File hashes

Hashes for axonclient-0.2.tar.gz
Algorithm Hash digest
SHA256 9ce3c9270336139939b0cf373116f69dc70bff766b56f1ddd68515f30bc77b9e
MD5 fbf272cdc84d88de8d4fcfb42fc6e860
BLAKE2b-256 1b8da06da776b4dd161dc9972605ec9f2093281df10ce0f8a8c9540eba6db7e4

See more details on using hashes here.

File details

Details for the file axonclient-0.2-py3-none-any.whl.

File metadata

  • Download URL: axonclient-0.2-py3-none-any.whl
  • Upload date:
  • Size: 51.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

File hashes

Hashes for axonclient-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8193a2440fb0a6eebdbc5e29abf64019f8753aa06a7d8e7836a04860e1137189
MD5 232dd73c295efc3ec8a8a91134d078a3
BLAKE2b-256 f8b8c77cd2bbe319ed0501f407a62ec733b92641d3b2204383c6955437dc2945

See more details on using hashes here.

Supported by

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