Skip to main content

Python SDK for executing the SMARTdiagnostics API

Project description

SMARTdiagnostics SDK

Python SDK to enable users to more easily integrate with the SMARTdiagnostics API.

Code Sample

from smartdiagnostics_sdk import SmartDiagnosticsApi, models
import configparser

# Get configuration
configuration = configparser.ConfigParser()
configuration.read("settings.ini")

# Prod base_url example: https://sd.kcftech.com
base_url = configuration["SDAPI"]["base_url"]
bearer_token = configuration["SDAPI"]["token"]

# instantiate client and add token for requests
sd_client = SmartDiagnosticsApi(base_url=base_url)
sd_client.config.headers["Authorization"] = "bearer " + bearer_token

assets_response = sd_client.get_assets()

# print details for each asset
for asset in assets_response.result:
    details = sd_client.get_asset_details(asset.id)
    print(details)

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

smartdiagnostics-sdk-3.13.4.tar.gz (82.8 kB view details)

Uploaded Source

Built Distribution

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

smartdiagnostics_sdk-3.13.4-py2-none-any.whl (259.8 kB view details)

Uploaded Python 2

File details

Details for the file smartdiagnostics-sdk-3.13.4.tar.gz.

File metadata

  • Download URL: smartdiagnostics-sdk-3.13.4.tar.gz
  • Upload date:
  • Size: 82.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/2.7.17

File hashes

Hashes for smartdiagnostics-sdk-3.13.4.tar.gz
Algorithm Hash digest
SHA256 56d309e7b5780fbc1b6e3c6464da8f4968b01698a02d5089e6744704d5252116
MD5 8edc9fe92b47f7e3499dd75221c8bae0
BLAKE2b-256 ab21af6ce2c133fa2c4c30252fda4aad01c1c0e7fe0f06f108ffc32a803b7ce7

See more details on using hashes here.

File details

Details for the file smartdiagnostics_sdk-3.13.4-py2-none-any.whl.

File metadata

  • Download URL: smartdiagnostics_sdk-3.13.4-py2-none-any.whl
  • Upload date:
  • Size: 259.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/2.7.17

File hashes

Hashes for smartdiagnostics_sdk-3.13.4-py2-none-any.whl
Algorithm Hash digest
SHA256 194f6d5cd0b777189e25871120a835a6cfb420d397d0430e456cb72492aabbd0
MD5 6b3686d110a4dafb7249a121e620c80c
BLAKE2b-256 9d7f46555909b2ba89bd80b1b9dc83bf876b6d54cece87f8f8c32bf3a432fb59

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