pygidata
This repository provides one Python package, pygidata, for Gantner Instruments data access.
Inside pygidata, the ginsutility module is included for expert/local Highspeedport access via GInsUtility.dll.
The logic remains separated by module scope (gi_data for API access, ginsutility for local DLL workflows).
Choose the right package
- Use
pygidata/gi_datafor standard backend/API integrations and GI.cloud workflows. - Use
ginsutilityonly for local expert scenarios that require the Highspeedport DLL. - Do not use
ginsutilityas GI.cloud-only integration path.
Usage
Install pygidata from PyPI
pip install pygidata
Install with local expert module dependencies
Use this only if you need local Highspeedport access.
Required for
ginsutilityexamplesAll examples in
src/ginsutility/examplesrequire:
pygidatainstalled with extras:pip install "pygidata[ginsutility]"- local access to
GInsUtility.dllor on LinuxlibGInsUtility.so(typically installed with GI.bench / Q.core).
pip install "pygidata[ginsutility]"
Editable install from this repository:
pip install -e .[ginsutility]
Quick check after installation:
python -c "import ginsutility; print('ginsutility import OK')"
If this import fails, run the examples only after fixing the ginsutility installation and DLL availability.
Import module in python script and call functions.
A detailed description of pygidata can be found
under docs or in the
Gantner Documentation.
from gi_data.dataclient import GIDataClient
import os
PROFILES = {
"qstation": {
"base": os.getenv("GI_QSTATION_BASE", "http://10.1.50.36:8090"),
"auth": {"username": os.getenv("GI_QSTATION_USER", "admin"),
"password": os.getenv("GI_QSTATION_PASS", "admin")},
},
"cloud": {
"base": os.getenv("GI_CLOUD_BASE", "https://demo.gi-cloud.io"),
"auth": {"access_token": os.getenv("GI_CLOUD_TOKEN", "")},
},
}
ACTIVE_PROFILE = os.getenv("GI_PROFILE", "qstation")
def get_client(profile: str = ACTIVE_PROFILE) -> GIDataClient:
cfg = PROFILES[profile]
if cfg["auth"].get("access_token"):
return GIDataClient(cfg["base"], access_token=cfg["auth"]["access_token"])
return GIDataClient(cfg["base"],
username=cfg["auth"].get("username"),
password=cfg["auth"].get("password"))
client = get_client()
Development
Used as submodule in
- gi-sphinx
- gi-jupyterlab
- gi-analytics-examples
Information on how to manually distribute this package can be found here
https://packaging.python.org/en/latest/tutorials/packaging-projects/
Hint: If you are debugging the source code with a jupyter notebook, run this code in the first cell to enable autoreloading source code changes.
%load_ext autoreload
%autoreload 2
Distribute with CI / CD
Edit pyproject.toml version number and create a release. -> Creating a release will trigger the workflow to push the package to PyPi
Tests
run tests locally:
pipenv run test -v
or
pytest
Generate loose requirements
Do this in a bash shell using the lowest version you want to support!
Install uv to easily install all needed python versions (coss-platform)
pip install uv
python -m pip install -U pip tox
python -m pip install pip-tools
python -m pip install pipreqs
To ensure we support multiple python versions we don't want to pin every dependency. Instead, we pin everything on the lowest version (that we support) and make it loose for every version above.
from root package dir (/gimodules-python)
./gen-requirements.sh
Ensure python-package version compatibility
uv python install 3.10 3.11 3.12 3.13 3.14
Now run for all envs
tox
of for a specific version only -> look what you defined in pyproject.toml
tox -e py310
NOTE: Remove the old gimodules version from requirements.txt before pushing (dependency conflict).
Documentation
Build docs from repository root.
nbsphinx requires a local Pandoc installation.
Install Pandoc
Windows (winget):
winget install --id JohnMacFarlane.Pandoc -e
Linux (Debian/Ubuntu):
sudo apt update
sudo apt install -y pandoc
Windows (PowerShell)
python -m pip install -r .\docs\requirements.txt
Set-Location .\docs
.\make.bat html
HTML output is written to docs\_build\html.
Linux/macOS
python -m pip install -r ./docs/requirements.txt
make -C docs html
HTML output is written to docs/_build/html.
Linting / Type hints
This project follows the codestyle PEP8 and uses the linter flake8 (with line length = 100).
You can format and check the code using lint.sh:
./lint.sh [directory/]
Type hints are highly recommended. Type hints in Python specify the expected data types of variables, function arguments, and return values, improving code readability, catching errors early, and aiding in IDE autocompletion.
To include type hints in the check:
mpypy=true ./lint.sh [directory])
Metadata
Release files for pygidata 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygidata-0.5.3.tar.gz | 63.4 kB | With provenance | Details for pygidata-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygidata-0.5.3-py3-none-any.whl | Python 3 | none | any | Details for pygidata-0.5.3-py3-none-any.whl |
Total release size: 144.8 kB
Release files / pygidata-0.5.3.tar.gz
| Download URL | pygidata-0.5.3.tar.gz |
|---|---|
| Size | 63.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2f4c651ec0acf8edb0026c181c142ad16670d7c431e8dcc1ce0efe5355f2caa
|
|
BLAKE2b-256 checksum How to use checksums |
793ce825eafcb87c9f21be64639e24fa71023c103b4eedb0965511e9dcb22e22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency logRelease files / pygidata-0.5.3-py3-none-any.whl
| Download URL | pygidata-0.5.3-py3-none-any.whl |
|---|---|
| Size | 81.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97c54bfeac07a874cd2e1c2f1f5f1b7d77d4422b0c60d07d6cc89a0e2b2c8c20
|
|
BLAKE2b-256 checksum How to use checksums |
b956967d28231699a56bcbc830acf8ce452c7c703bc5ef9fd8a86acc57b7c363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency logSecurity for pygidata 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pygidata-0.5.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.