Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Wialon Remote API for Python

Project description

wialon-python

wialon-python is a Wialon Remote API Wrapper for python language.

Installation

Use the package manager pip to install wialon-python.

pip3 install wialon

Usage

from wialon.sdk import WialonError, WialonSdk

is_development = True
scheme = 'https'
host = 'hst-api.wialon.com'
port = 0
session_id = ''
extra_params = {}

# Initialize Wialon instance
wialon = WialonSdk(is_development=is_development, scheme=scheme, host=host, port=port, session_id=session_id, extra_params=extra_params)

try:
  # Login with API Token
  response = wialon.login('YourTokenHere')
  print(response)
  
  # Logout
  wialon.logout()
except WialonError as e:
  # Wialon error handler
  print(e)
except Exception as e:
  print("Other errors related to code - {e}".format(e=e))

Contributing

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wialon, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size wialon-1.0.2.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page