Skip to main content

Setup, control and acquire data from the Genesis Highspeed systems via python.

Project description

GEN DAQ API - Python Driver

Setup, control and acquire data from the Genesis Highspeed systems via python.

Build Status

The GEN DAQ API can be used to control the HBM GEN Series tethered mainframes.

Requirements

Python 3.10+

Installation

Use the package manager pip to install GEN DAQ API - Python Driver package.

pip install ghs-gendaqapi-py

Usage

Refer examples for detailed use cases. Refer documentation for detailed API documentation

from ghsapi import ghsapi

# create Gen Daq API's object
gen = ghsapi.GHS()

# connect to mainframe
gen.ghs_connect(IP_ADDRESS, PORT_NO)

# disconnect from mainframe
gen.ghs_disconnect()

Development environment setup

Below are the steps to follow to setup devlopement enviroment for system integration and testing.

Requirements

  • Python 3.10+
  • Anaconda/Miniconda

Clone repo

git clone https://github.com/hbk-world/ghs-gendaqapi-python.git

Virtual Environment

conda create --name <env> --file spec-file.txt

Install dependencies

pip install -r requirements.txt

Run example files

Edit files in examples to enter mainframe IP and Port number

python examples\FILENAME

Testing

Edit files in functionaltest to enter mainframe IP and Port number

Unit test

python unittest\FILENAME

Functional test

python functionaltest\FILENAME

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

ghs-gendaqapi-py-1.0.3.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

ghs_gendaqapi_py-1.0.3-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file ghs-gendaqapi-py-1.0.3.tar.gz.

File metadata

  • Download URL: ghs-gendaqapi-py-1.0.3.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ghs-gendaqapi-py-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8385d202c9962af393b4159c6ac883abe69a0e26a96359a915d92e96f840fdca
MD5 b450f9f15c50d05893b3adbe8faa78d9
BLAKE2b-256 f6d688479d3581d88fba264a0d45825b233a04c2df9d2394fdb2e258c8b5e554

See more details on using hashes here.

File details

Details for the file ghs_gendaqapi_py-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ghs_gendaqapi_py-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for ghs_gendaqapi_py-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7841917066a4aa3b0cc0f76428b7215eade07352f22927b5e986c5f6bd995832
MD5 89cf8d5ed5a210b81c456f59fb7c5799
BLAKE2b-256 069ac009ef804ec1702f5e526a88b7795992bf9e5ab2f373e3232b3c9cb4c92e

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