This repository provides unofficial Python bindings for Aeron and Aeron archive client. Providing minimalistic, pythonic interface for sending and receiving messages through Aeron.
For installation use pipenv:
$ pipenv install aeronpy
or pip:
$ pip install aeronpy
To build, following prerequisites are necessary:
- Linux, OSX or Windows host
- Python 3.x with headers and development libraries
- Modern C++ 14 compatible compiler - clang 3.9+/gcc 7+/vcpp 2017+
- CMake 3.7 or newer
- make or ninja / visual studio
- Modern version of boost
- JDK 8+
-
Clone this repository into a local directory:
$ git clone
-
Create a build directory.
-
From the build directory invoke project configuration:
$ cmake <path to cloned repository>
-
Invoke a build for all compilation targets:
$ cmake --build . --target all
-
Invoke unit tests with ctest:
$ ctest --verbose
-
To build source package:
$ cmake --build . --target build-package
-
To build a wheel:
$ cmake --build . --target build-wheel
It is possible to build and install this repository as a source package using setuptools:
Clone this repository into a local directory:
$ git clone ...
Run pip against newly cloned repository
$ python3 -m pip install <path to cloned repository>
In this way setup tools will automatically trigger cmake configuration, compilation and installation.
-
CnC file not created:
when creatingContext
This indicates that Aeron driver is not currently running in your system. You can either checkout Aeron from it's official github repository and build is by yourself or use appropriate pre-built package available here.
Once downloaded and unpacked run:
$ <unpack_directory>/bin/aeron-driver
-
macOS Mojave & Anaconda
It appears that there are some problems with this sort of setup at this moment. An attempt to load shared object module linked against Anaconda 5.3 results with following exception being thrown:
Fatal Python error: PyThreadState_Get: no current thread
during a call to
PyModule_Create
.This is resolve this issue use non-Anaconda, standard python distribution from python.org.
Copyright 2018 Fairtide Pte. Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.