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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d309e7b5780fbc1b6e3c6464da8f4968b01698a02d5089e6744704d5252116
|
|
| MD5 |
8edc9fe92b47f7e3499dd75221c8bae0
|
|
| BLAKE2b-256 |
ab21af6ce2c133fa2c4c30252fda4aad01c1c0e7fe0f06f108ffc32a803b7ce7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
194f6d5cd0b777189e25871120a835a6cfb420d397d0430e456cb72492aabbd0
|
|
| MD5 |
6b3686d110a4dafb7249a121e620c80c
|
|
| BLAKE2b-256 |
9d7f46555909b2ba89bd80b1b9dc83bf876b6d54cece87f8f8c32bf3a432fb59
|