Wialon Remote API SDK for Python
Project description
Wialon SDK for Python
Installation
Use the package manager pip to install wialon-python.
pip3 install wialon
Usage
"""
WialonSDK example usage
"""
from wialon.sdk import WialonSdk, WialonError, SdkException
# Initialize Wialon instance
sdk = WialonSdk(
is_development=True,
scheme='https',
host='hst-api.wialon.com',
port=0,
session_id='',
extra_params={}
)
try:
token = '' # If you haven't a token, you should use our token generator
# https://goldenm.com/#/Resources/token-generator
response = sdk.login(token)
print(response)
parameters = {
'spec':{
'itemsType': str,
'propName': str,
'propValueMask': str,
'sortType': str,
'propType': str,
'or_logic':bool
},
'force': int,
'flags': int,
'from': int,
'to': int
}
units = sdk.core_search_items(parameters)
sdk.logout()
except SdkException as e:
print(f'Sdk related error: {e}')
except WialonError as e:
print(f'Wialon related error: {e}')
except Exception as e:
print(f'Python error: {e}')
Methods available
For more information, please go to Wialon Remote API documentation
Work with us!
Golden M is a software/hardware development company what is working on a new, innovative and disruptive technologies. Fore more information, contact us at sales@goldenm.com
Contributing
Merge requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wialon-1.1.3.tar.gz
(8.0 kB
view details)
Built Distribution
File details
Details for the file wialon-1.1.3.tar.gz
.
File metadata
- Download URL: wialon-1.1.3.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71c41f6c6b81e2868bd549231dc22ca0aff27457e13d9c23e635e7228518cad7 |
|
MD5 | e31b5a3ceef8b57999e2ff52a6eacb37 |
|
BLAKE2b-256 | d5e76d50d2985c910606613dc8710ee9d385a5418af09ef453d72cf42eb4fda1 |
File details
Details for the file wialon-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: wialon-1.1.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235a46db3b0999cd5d5e56ca178cefded85c0bb92358cbd988d2f87ac8fa62e4 |
|
MD5 | 73e8de4fae66c742b84f68923e78ec43 |
|
BLAKE2b-256 | 191d176dbce7002b54a4d5269fc51857a7735e41f209187e60a410171ef4903d |