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

Uploaded Python 2

File details

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

File metadata

  • Download URL: smartdiagnostics-sdk-1.0.187.tar.gz
  • Upload date:
  • Size: 83.3 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-1.0.187.tar.gz
Algorithm Hash digest
SHA256 d76d85b277d9843d7b1f22609475229b0c2fa550386fc8886ffdbf461b8701d4
MD5 263599bfa64bbac80645d95b4d830f66
BLAKE2b-256 6bd84c9a4682ef5fdbd5f1a99bec0440852205b2849ca5f3cbaf75d89eedec82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: smartdiagnostics_sdk-1.0.187-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-1.0.187-py2-none-any.whl
Algorithm Hash digest
SHA256 af329cdec8064a98e80ef76aa69efd7b540c5a23e46da096271a19003f0bdf09
MD5 70d3696f8a85bbd3fafe0814aa76c774
BLAKE2b-256 7783f51b3410857c50d9914bb42dcf55b3530c6a0f3548d9f13084878b3e2942

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