wialon / python-wialon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wialon

Wialon is a Python wrapper for Remote Api. (Now with support for Python 3 since v1.0.2)

For async implementation please check o-murphy:py-aiowialon

Installation

pip install python-wialon

Usage

from wialon import Wialon, WialonError

try:
    wialon_api = Wialon()
    # old username and password login is deprecated, use token login
    result = wialon_api.token_login(token='YOUR WIALON USER TOKEN')
    wialon_api.sid = result['eid']

    result = wialon_api.avl_evts()

    wialon_api.core_logout()
except WialonError as e:
    pass

API Documentation

Wialon Remote Api documentation

About

License:MIT License


Languages

Language:Python 100.0%