Skip to main content

Wialon Remote API SDK for Python

Project description

Wialon SDK for Python

pypi version

Introduction

Wialon SDK for Python is a library that provides an easy way to interact with the Wialon Remote API. It allows developers to integrate Wialon functionalities into their Python applications seamlessly. Uses python property __getattr__ to dynamically call Wialon Remote API methods, converting snake_case method names to svc format (e.g., core_login -> core/login).

Token generation

The library does not generate Wialon tokens. To generate a token, you can use our Wialon Token Generator.

Disclaimer

This library is not an official Wialon product, it's developed by Golden M, Inc as a third-party SDK to interact with Wialon Remote API. For direct support of the responses of the Remote API, please contact Gurtam support.

Usage

from wialon.sdk import WialonSdk, WialonError, SdkException, AsyncWialonSdk

# Initialize Wialon instance
sdk = WialonSdk()
# Or for async usage
sdk = AsyncWialonSdk()

try:
  token = os.getenv('WIALON_TOKEN')
  response = sdk.login(token)
  # Or async usage
  response = await 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)
  # Or async usage
  units = await sdk.core_search_items(parameters)

  sdk.logout()
  # Or async usage
  await 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

Who are you?

Golden M is a software/hardware development company what is working on a new, innovative and disruptive technologies. Experts on integrating Wialon products since 2016 with custom hardware and software solutions. To work with us, 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


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.2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wialon-1.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file wialon-1.2.0.tar.gz.

File metadata

  • Download URL: wialon-1.2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for wialon-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fb33613d0574daa925dec4cd9b8e6328d0029b629c2fab27f94ee497f509e0e6
MD5 5806409251bcf53bf3ca77b179103363
BLAKE2b-256 e545aa0b1fd6911f65c7c99a7101211a3f4a902e1ddee13dd75d8f35ccfa12af

See more details on using hashes here.

File details

Details for the file wialon-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: wialon-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for wialon-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5654df77417304bdea4ab788c3714e9ce266f8aee42e27994239c3b363a43ed7
MD5 3b058b0cfc02615abb8e5f66314e1654
BLAKE2b-256 682e614c7e43ce3ff8c7b71fb2076f6e0be2a6e49f37d0357bae913406cf9244

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page