Skip to content

Native python client for Infinispan, over the Hot Rod wire protocol

Notifications You must be signed in to change notification settings

infinispan/python-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Client

This is a Python protoclient for connecting to an Infinispan server via Hotrod. Focus is easyness to:

  • install
  • use
  • understand
  • extend

Note

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.

Requirements

  • python3
  • pip3

TODO fill in

Generate the client

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

Install the client

sudo pip3 install *.whl

Use the client

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

Uninstall

sudo pip3 uninstall infinispan

About

Native python client for Infinispan, over the Hot Rod wire protocol

Resources

Stars

Watchers

Forks

Packages

No packages published