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.3.tar.gz (82.9 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.3-py2-none-any.whl (259.8 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: smartdiagnostics-sdk-3.13.3.tar.gz
  • Upload date:
  • Size: 82.9 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.3.tar.gz
Algorithm Hash digest
SHA256 7fa47ae9716d8e1348a8ad1701679deebf79c20dcfbe28a74e03c61321974d25
MD5 3953a95aee93b05cdf1404763c12ccc6
BLAKE2b-256 42452d27f5b973d2476a6d72773ce9bdc5308b7c1cde4d1331975d8cc5ad23bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smartdiagnostics_sdk-3.13.3-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.3-py2-none-any.whl
Algorithm Hash digest
SHA256 662ab074c782adc4849fc3dfd8ab4a0f1034e961105980c86815aec7b2fb88dd
MD5 6f1f8105c2dfeae71f020d8cabcf0dd4
BLAKE2b-256 310f2bdc413f027af0621dfe755a597babc8fb5f07d2634a4d2c94eba2715d8a

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