Skip to main content

GridGain 9 DB API Driver

Project description

pygridgain-dbapi

GridGain 9 DB API Driver.

Prerequisites

  • Python 3.9 or above (3.9, 3.10, 3.11, 3.12 and 3.13 are tested),
  • Access to GridGain 9 node, local or remote.

Installation

From repository

This is a recommended way for users. If you only want to use the pygridgain-dbapi module in your project, do:

$ pip install pygridgain-dbapi

From sources

This way is more suitable for developers, or if you install the client from zip archive.

  1. Download and/or unzip GridGain 9 DB API Driver sources to pygridgain_dbapi_path
  2. Go to pygridgain_dbapi_path folder
  3. Execute pip install -e .
$ cd <pygridgain_dbapi_path>
$ pip install -e .

This will install the repository version of pygridgain-dbapi 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.

C extension

The core of the package is a C++ extension. It shares the code with the GridGain C++ Client. The package is pre-built for the most common platforms, but you may need to build it if your platform is not included.

Linux building requirements:

  • GCC (and G++);
  • CMake version >=3.18;
  • unixODBC (dev version of the package);
  • OpenSSL (dev version of the package);
  • Docker to build wheels;
  • Supported versions of Python (3.9, 3.10, 3.11, 3.12 and 3.13). You can disable some of these versions, but you'd need to edit the script for that.

For building universal wheels (binary packages) for Linux, just invoke script ./scripts/create_distr.sh.

Windows building requirements:

  • MSVC 14.x, and it should be in path;
  • CMake version >=3.18;
  • OpenSSL (headers are required for the build);
  • Supported versions of Python (3.9, 3.10, 3.11, 3.12 and 3.13). You can disable some of these versions, but you'd need to edit the script for that.

For building wheels for Windows, invoke script .\scripts\BuildWheels.ps1 using PowerShell. Make sure that your execution policy allows execution of scripts in your environment. The script only works with Python distributions installed in a standard path, which is LOCALAPPDATA\Programs\Python.

Ready wheels will be located in distr directory.

Updating from older version

To upgrade an existing package, use the following command:

pip install --upgrade pygridgain-dbapi

To install the latest version of a package:

pip install pygridgain-dbapi

To install a specific version:

pip install pygridgain_dbapi==9.0.15

Testing

NB! It is recommended installing pygridgain_dbapi in development mode. Refer to this section for instructions.

Remember to install test requirements:

$ pip install -r requirements/install.txt -r requirements/tests.txt

Run basic tests

Running tests themselves:

$ pytest

Documentation

Install documentation requirements:

$ pip install -r requirements/docs.txt

Generate documentation:

$ cd docs
$ make html

The resulting documentation can be found in docs/_build/html. If you want to open the documentation locally, you can open the index of the documentation docs/_build/html/index.html using any modern browser.

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

pygridgain_dbapi-9.0.15.1.tar.gz (444.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pygridgain_dbapi-9.0.15.1-cp313-cp313-win_amd64.whl (330.2 kB view details)

Uploaded CPython 3.13Windows x86-64

pygridgain_dbapi-9.0.15.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pygridgain_dbapi-9.0.15.1-cp312-cp312-win_amd64.whl (330.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pygridgain_dbapi-9.0.15.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pygridgain_dbapi-9.0.15.1-cp311-cp311-win_amd64.whl (330.0 kB view details)

Uploaded CPython 3.11Windows x86-64

pygridgain_dbapi-9.0.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pygridgain_dbapi-9.0.15.1-cp310-cp310-win_amd64.whl (330.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pygridgain_dbapi-9.0.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pygridgain_dbapi-9.0.15.1-cp39-cp39-win_amd64.whl (330.0 kB view details)

Uploaded CPython 3.9Windows x86-64

pygridgain_dbapi-9.0.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file pygridgain_dbapi-9.0.15.1.tar.gz.

File metadata

  • Download URL: pygridgain_dbapi-9.0.15.1.tar.gz
  • Upload date:
  • Size: 444.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for pygridgain_dbapi-9.0.15.1.tar.gz
Algorithm Hash digest
SHA256 05a5ec9dcf45414bb111838580cfe757fe5098bb8742e5d240e3dcac728c3201
MD5 9d1101cf5ce58ee7df90236eb935f827
BLAKE2b-256 0d71343cd98290e67e89bbd89668ebb341c346e9564f65f8c985d9a7d5ee86aa

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6133b01a6d9ce77fa4d1e024da288f59ef41cfba36bd4c87a5b7b0c633ab2e1e
MD5 27586c8a7c83ada525670ef59eb9e25e
BLAKE2b-256 0a5e4518dd91513f8c692103e2388be2b9322c955ff3a8d10d2663ffd194b0ed

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1296c88009449f30420985cd8af35b86454eda333a638fb6a838a27e6b0beeee
MD5 c505473d20f0a475cc415c9db219830d
BLAKE2b-256 5baa0781f903cdcf133a29dccdba3ec122bada421176bccecb76878df2528db4

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4075cd3ceb7816d7bb08d77652a4beaa696b5ab742d6650da977ce460b70bb8c
MD5 0149171e9e6a760a67d14f81bc1543b5
BLAKE2b-256 89ac4fa369282504e54bb77c09f41d87b48d94625cd1b879516c33cbce2a725b

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3bdba571ed8c7cfba1a369cf51929f10ae1262b4fda6e3672c2da40b8da3d1c5
MD5 c47713526f879c5875cf3fe667178592
BLAKE2b-256 2961a2f2fc208f6d7c516b522bb0cb8ae87d940d6aadd9570c8cef127afbca61

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1903095204b6436f7143b01d6dc9c8782c9f922506bd0d1a0725df79d0fffc9b
MD5 1112cfaad32e40ef147f6255e5b85dd4
BLAKE2b-256 d6289d91e8f33631fe62a7d9347167b6d553fe03db3e7f3f7075bff5088c0103

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09b4c064d5d17cef6f2b7599ea681e6e541a9be1d3578e5ca89788f4c900c8e0
MD5 a08ad96cff8d555b2a1f1146ae650db8
BLAKE2b-256 811319fb69f27aed1388786468687b093447ef3a3c207a7d297fef06af9b3f91

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a02961326afcd9b76c3a36a9714bf06b04a3a742b531154297f055dd2787a4e5
MD5 8bdf9c9c61391337e89f612a131b847f
BLAKE2b-256 fd93017903c4d03687085957c74c94409d027442165b7d15312670ae3326d7e6

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad92f708179370f5f32a8ec8481be190a44a5521b8283424fa770fc6fd119c2b
MD5 774ea8067bd6f3800799f2d67ea059c2
BLAKE2b-256 38180be3c1b8c678fe30048d8b0e51c926d86dc4c3f1186fd2cdd5381ce9ec5b

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6dcc9ba87dda7e7c8159c69e743cad46d33875dd8526b38c50bade154167f9c2
MD5 7fdab53f312c7a49ad5a8cd9a5930e66
BLAKE2b-256 e024c5d34ca51aae15717c9d706fbcbf1893ec0fe88c38e4e23002af79cfe98d

See more details on using hashes here.

File details

Details for the file pygridgain_dbapi-9.0.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pygridgain_dbapi-9.0.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8b540b51be23806a6638d6bd516e327fbab9281bf2bbf830fc5020bdf49f801f
MD5 f87ac195ffddbe6f0cd9f4ad46ef55b5
BLAKE2b-256 b32dedb19ba3e341762a446951f5566001ba3bff9baa913b61821aa97690c84c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page