This is a Python protoclient for connecting to an Infinispan server via Hotrod. Focus is easyness to:
- install
- use
- understand
- extend
Feel free to use and extend this project, but be aware that is maintained with limitated resources at the moment. Notably we can give no guarantee about:
- fast response in providing support for new features;
- run CI tests against new Infinispan server releases.
- python3
- pip3
TODO fill in
It should be as easy as type:
pip3 wheel .
or (if you need to point your OPENSSL root dir)
OPENSSL_ROOT_DIR=/usr/local/opt/openssl
sudo pip3 install *.whl
An example of client usage is in the test.py script. Run it to check if everything went fine. You need an up and running local Infinispan server and a cache named 'default' or you'll have errors.
python3 test.py
python3 testSasl.py (if you want SASL authentication)
The C++ native libraries are placed by the installation script in /usr/local/lib
directory (or in $HOME/.local/lib
if installed
with --user), so you probably need to help the runtime loader.
LD_LIBRARY_PATH=/usr/local/lib python3 test.py
sudo pip3 uninstall infinispan