Skip to main content

Installation

Install and Update package via pip

pip install CK-InoDrive-API

Usage

Importing Library

# Import InoDrive API library
import CkInoDriveAPI

Create InoDrive Object using WebSocket

# Create instance to InoDrive module object
# Connect by Name
Drive = CkInoDriveAPI.InoDrive(target='Name')

# Connect by Serial Number
Drive = CkInoDriveAPI.InoDrive(target='SN')

# Connect by IP Address
Drive = CkInoDriveAPI.InoDrive(target='IPv4 Address')

# Auto connect
Drive = CkInoDriveAPI.InoDrive(target='IPv4 Address', autoConnect=True)

Read and Write Variable's

# Connect to the drive
Drive.connect()

# Read variable with name 'VariableName'
Drive.UserApp.read_var('VariableName')

# Write variable with name 'VariableName' and value equal to 1
Drive.UserApp.write_var('VariableName', 1)

# Disconnect from the drive
Drive.disconnect()

# Drive object cleanup
Drive.dispose()

Get and Set Output's

# Connect to the drive
Drive.connect()

# Read Output 2
state = Drive.IO.get_output(2)

# Take control of InoDrive module to override output state
Drive.SysControl.take_control(True)

# Set Output 2 to On state
Drive.IO.set_output(2, True)
state = Drive.IO.get_output(2)

# Disable module override
Drive.SysControl.take_control(False)

# Disconnect from the drive
Drive.disconnect()

# Drive object cleanup
Drive.dispose()

Change Module Name (Power cycle InoDrive for changes to take effect)

# Connect to the drive
Drive.connect()

# Read module configuration file
config_file = Drive.File.read_module_config()

# Set new module name
config_file['name'] = "NewName"

# Write configuration changes out
Drive.File.write_module_config(config_file)

# Disconnect from the drive
Drive.disconnect()

# Drive object cleanup
Drive.dispose()

Metadata

Release files for CK-InoDrive-API 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CK-InoDrive-API 1.0.3
File Size Uploaded Provenance Actions
ck_inodrive_api-1.0.3.tar.gz 50.3 kB Without provenance Details for ck_inodrive_api-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CK-InoDrive-API 1.0.3
File Interpreter ABI Platform Actions
ck_inodrive_api-1.0.3-py3-none-any.whl Python 3 none any Details for ck_inodrive_api-1.0.3-py3-none-any.whl

Total release size: 104.3 kB

Release files / ck_inodrive_api-1.0.3.tar.gz

Download URL ck_inodrive_api-1.0.3.tar.gz
Size 50.3 kB
Tags Source
SHA-256 checksum
How to use checksums
22a9f8710e0ffc9e956d9b13bcc75a08e8f996672e75f9ce56ce5614b414eb32
BLAKE2b-256 checksum
How to use checksums
f99c7de4fabe122a580cb02155e93d28bcfeae0472b4289dfd79a4034bd19197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Release files / ck_inodrive_api-1.0.3-py3-none-any.whl

Download URL ck_inodrive_api-1.0.3-py3-none-any.whl
Size 54.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e56c7df3b2f2e5210f0cb5431c722bf315a530efd19ccd7fad4cef5f9a81d23d
BLAKE2b-256 checksum
How to use checksums
22144a339207e1134fc9ea30c25fb2f1a6208d5ce78a7932e8f5e615b84a4509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.2

Security for CK-InoDrive-API 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page