CK-InoDrive-API-0.2.6
توضیحات
InoDrive API library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows |
| نام فایل | CK-InoDrive-API-0.2.6 |
| نام | CK-InoDrive-API |
| نسخه کتابخانه | 0.2.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cardinal Kinetic |
| ایمیل نویسنده | support@cardinalkinetic.com |
| آدرس صفحه اصلی | https://cardinalkinetic.com |
| آدرس اینترنتی | https://pypi.org/project/CK-InoDrive-API/ |
| مجوز | https://www.cardinalkinetic.com/terms-of-service |
#### **Installation**
```
pip install CK-InoDrive-API
```
#### **Usage**
Import
```python
# Import InoDrive API library
import CkInoDriveAPI
```
Create InoDrive using WebSocket
```python
# 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)
```
```python
# 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()
```
نیازمندی
| مقدار | نام |
|---|---|
| - | websocket-client |
| - | ifaddr |
| - | msgpack |
نحوه نصب
نصب پکیج whl CK-InoDrive-API-0.2.6:
pip install CK-InoDrive-API-0.2.6.whl
نصب پکیج tar.gz CK-InoDrive-API-0.2.6:
pip install CK-InoDrive-API-0.2.6.tar.gz