Apache Ignite binary client Python API
Project description
ignite-python-client
Apache Ignite thin (binary protocol) client, written in Python 3.
Prerequisites
- Python 3.4 or above (3.6, 3.7 and 3.8 are tested),
- Access to Apache Ignite node, local or remote. The current thin client version was tested on Apache Ignite 2.7.0 (binary client protocol 1.2.0).
Installation
for end user
If you only want to use the pyignite
module in your project, do:
$ pip install pyignite
for developer
If you want to run tests, examples or build documentation, clone the whole repository:
$ git clone git@github.com:apache/ignite-python-thin-client.git
$ pip install -e .
This will install the repository version of pyignite
into your environment
in so-called “develop” or “editable” mode. You may read more about
editable installs
in the pip
manual.
Then run through the contents of requirements
folder to install
the additional requirements into your working Python environment using
$ pip install -r requirements/<your task>.txt
You may also want to consult the setuptools
manual about using setup.py
.
optional C extension
There is an optional C extension to speedup some computational intensive tasks. If it's compilation fails
(missing compiler or CPython headers), pyignite
will be installed without this module.
-
On Linux or MacOS X only C compiler is required (
gcc
orclang
). It compiles during standard setup process. -
For building universal
wheels
(binary packages) for Linux, just invoke script./scripts/create_distr.sh
.NB! Docker is required.
-
On Windows MSVC 14.x required, and it should be in path, also python versions 3.6, 3.7, 3.8 and 3.9 both for x86 and x86-64 should be installed. You can disable some of these versions but you'd need to edit script for that.
-
For building
wheels
for Windows, invoke script.\scripts\BuildWheels.ps1
using PowerShell. Just make sure that your execution policy allows execution of scripts in your environment.Ready wheels for
x86
andx86-64
for different python versions (3.6, 3.7, 3.8 and 3.9) will be located indistr
directory.
Updating from older version
To upgrade an existing package, use the following command:
pip install --upgrade pyignite
To install the latest version of a package:
pip install pyignite
To install a specific version:
pip install pyignite==0.4.0
Documentation
The package documentation is available at RTD for your convenience.
If you want to build the documentation from source, do the developer installation as described above, then run the following commands from the client's root directory:
$ pip install -r requirements/docs.txt
$ cd docs
$ make html
Then open docs/generated/html/index.html
in your browser.
Examples
Some examples of using pyignite are provided in examples
folder. They are
extensively commented in the
“Examples of usage”
section of the documentation.
This code implies that it is run in the environment with pyignite
package
installed, and Apache Ignite node is running on localhost:10800.
Testing
NB! It is recommended installing pyignite
in development mode.
Refer to this section for instructions.
Do not forget to install test requirements:
$ pip install -r requirements/install.txt -r requirements/tests.txt
Also, you'll need to have a binary release of Ignite with log4j2
enabled and to set
IGNITE_HOME
environment variable:
$ cd <ignite_binary_release>
$ export IGNITE_HOME=$(pwd)
$ cp -r $IGNITE_HOME/libs/optional/ignite-log4j2 $IGNITE_HOME/libs/
Run basic tests
$ pytest
Run with examples
$ pytest --examples
If you need to change the connection parameters, see the documentation on testing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyignite-0.4.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25ed4d4a251c0c3af2601c9ff9c102885c94ded75ae129272039e164471fc35b |
|
MD5 | 49e2be34dc79df66d0b7ad7aa7b1c410 |
|
BLAKE2b-256 | 5ddd231667d7763b454ddbca0e2378dabe239294a6dfbc5efca8db1dde825ef2 |
Hashes for pyignite-0.4.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20b8c545d91546596a8a202a0c9d997b596d50d14f01e1e6ad3cd395dcea186 |
|
MD5 | fd27e6bdf8f21d90360ffd9f16af12a9 |
|
BLAKE2b-256 | d1ef628579985372682e8d0ece709dbe0b34c9a04a2ff142aba61391df252348 |
Hashes for pyignite-0.4.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e30ffb146da1f8aa6cd655d8183c1d1f2734bb3d771e8420f6efbc8e048365 |
|
MD5 | 146a6f4defc6a539baa1033cd873e856 |
|
BLAKE2b-256 | cdf54e2c652ec5a7a36cca8df149a3c4d7742af8e2a937713e55e7e95e06c1f4 |
Hashes for pyignite-0.4.0-cp39-cp39-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3512b7aee4450994a2983988b2baca5e054f490b52d8f5e7bc6a940895118a89 |
|
MD5 | b4df7e094bed314503ea36601ade9942 |
|
BLAKE2b-256 | 6a3c99e0d9dd5c110111ea766585416198ad8030cad5ae7af2def2073781faba |
Hashes for pyignite-0.4.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855f92030def025bdbf023ec1bb92e83cbd7fef4550d64f7d006b2ec73957372 |
|
MD5 | 3585aa43770c7a0df1a56f486b901585 |
|
BLAKE2b-256 | cd4be036985e5ec6e6235477a50a379112d5b3f1fa3dc4d8787fd276f9415c3c |
Hashes for pyignite-0.4.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409dfe6bedf46a4af5fbf875cc061c37fd7e7f8d2254bfcde9b1ef343a34155b |
|
MD5 | 5c21e74f2483cf635c5809963fe04cef |
|
BLAKE2b-256 | 391e47f33d891e78fbabe12a644e1bd9781271007909f5632ae2056bdad54b7c |
Hashes for pyignite-0.4.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c10a16b0ae5bb22dbcd87fd7f80a051422591be40255ac1db25c01f0132bf6 |
|
MD5 | 03093bfc96b59aa67c22a4ac4176ae16 |
|
BLAKE2b-256 | 5aed852cb9ff339f2828fc53b8af7a7752cef12e72a97f4d5b94f71f4e683036 |
Hashes for pyignite-0.4.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b348246e1a6ec895fcda9f1d047a5ed829d8298c00b488657e9745fbcd906ef2 |
|
MD5 | 11577248f98938dd227b06b8cc111d51 |
|
BLAKE2b-256 | 7d6a30e490b51e42c5f1b7aaffd2e5f0b7efd8522de7b54abbbc6b215107202f |
Hashes for pyignite-0.4.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a87759f3433917955e304917ca2141ff2f8c7d5b1456713454343d594dcf2058 |
|
MD5 | 7ce1657fbb21ac1ad31f0b4fa7725ec4 |
|
BLAKE2b-256 | 189f114bdf8e2c4f7e002c98b70ef78a6bf01c820be70baffae7b7f61a5a701e |
Hashes for pyignite-0.4.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 836ecbefc7bc72470ba404cec8fcfc7c4f4df4be8ec0b57b3f2bcbd77edf778e |
|
MD5 | 04368013474785c8cbae78268cb4da70 |
|
BLAKE2b-256 | dab232e4707bf3e828bba080b3df5fa51cc70fdb837a90b01dcae30120a15119 |
Hashes for pyignite-0.4.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a272bfcb4b23c099393f85efb9a01bda12c7fe4949aa5ccd725480ea075cd185 |
|
MD5 | 5a88033e371d174bc8a0f4f56b053306 |
|
BLAKE2b-256 | 00bbafeb094c3709ebb4585d82d5db516cf32317972f30f759bb3ba0ec2161bf |
Hashes for pyignite-0.4.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d45419a686c8272fc12825a99b0967c1dfa556fa72d5f4ea5cb15299bd2a3bb9 |
|
MD5 | d52bf621e61cab5665485a29f9d2b28d |
|
BLAKE2b-256 | ab999984d6046a6a9bdd4b9c7ef1ce4d62c286b6be4b68e8de41b396adce7dc4 |
Hashes for pyignite-0.4.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8cfd62cb2a102fd953e350b824a253ff5038c08697554bcace5929426505f36 |
|
MD5 | 1c37fda91e3d849fc1a1ad576c3bac63 |
|
BLAKE2b-256 | 8fe39ebe7a52b518d0f2380671bb4e7e9e1edaf4e18263af9398215da6c5f7d5 |
Hashes for pyignite-0.4.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b50f9a0ae314a615cfc4ca231f7cc9cfb18aa3e40128099f0d061391216f277 |
|
MD5 | 5ee0f01dea5e8252ff28f9e58737a14c |
|
BLAKE2b-256 | 9c51368809e9d143bb929c53750893d2b5d2abf6f8e2013b790c17177553042e |
Hashes for pyignite-0.4.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e0e5f8c885bb9c5fb25ca2730630b0d6f1467fc683e190f2c8e83304c4bd590 |
|
MD5 | 12e7c3c022c059de9b6f97fe9116883e |
|
BLAKE2b-256 | 0ceb554488e172dcf65eb086d2b707ca025f3e979de07894896de6de8466ccfc |
Hashes for pyignite-0.4.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90cb257de4d0422a4a0727fdd8bce88410ef48c0ffdb62223727a5a300dbda2b |
|
MD5 | f0f71e4af35a6f2c97dfe8e837acc850 |
|
BLAKE2b-256 | 8dcd39100dcb592fcf15ea8808ff008893650da997d82f17fd538d518cc50e13 |