Skip to main content

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

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=True, 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.

Source Distribution

wialon-1.0.0.tar.gz (1.6 kB view hashes)

Uploaded Source

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