Skip to main content

InoDrive API library

Project description

Installation

pip install CK-InoDrive-API

Usage

Import

# Import InoDrive API library
import CkInoDriveAPI

Create InoDrive 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)
# Connect to the drive
drive.connect()
# Read variable with name 'VariableName'
drive.read_var('VariableName')
# Write variable with name 'VariableName' and value equal to 1
drive.write_var('VariableName', 1)
# Disconnect from the drive
drive.disconnect()
# Drive object cleanup
drive.destroy()

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

CK-InoDrive-API-0.2.6.tar.gz (17.0 kB view hashes)

Uploaded Source

Built Distribution

CK_InoDrive_API-0.2.6-py3-none-any.whl (19.8 kB view hashes)

Uploaded Python 3

Supported by

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