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.
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.
Developers
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
Built Distribution
File details
Details for the file axonclient-0.1.2.tar.gz
.
File metadata
- Download URL: axonclient-0.1.2.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ed1eaacc6867333c2ace9d640780697535012fa8c1c76e6224dc02486398286 |
|
MD5 | 47024903df5e1b3129461f54d8e10240 |
|
BLAKE2b-256 | ce85d8da731d1c0d6274485b1449c1851910e8f0ce674858369fb21d68353261 |
File details
Details for the file axonclient-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: axonclient-0.1.2-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0eaa15fa7ff349b94cd75ad303a62ebd4ebf81149c67e3a3fe7169907eab768 |
|
MD5 | 4593d54771791797315f2f0a3a351a9d |
|
BLAKE2b-256 | ddd7a743fea66e5e6b11131733187d969d629ff92575843fb392fd4489c8f9ed |