Simple client for AutoCortext API
Project description
Simple AutoCortext API Client
This is a simple client for the AutoCortext API.
Setup
- An
.env
file with the variableAUTOCORTEXT_API_KEY
set to a valid key. - An
.env
file with the variableAUTOCORTEXT_ORG_ID
set to a valid organization ID.
Example
Install the AutoCortext clinet using pip
.
pip install autocortext-py
Use the client in your source code.
import os
from autocortext_py import AutoCortext
from dotenv import load_dotenv
load_dotenv()
client = AutoCortext(
org_id=os.getenv("AUTOCORTEXT_ORG_ID"),
api_key=os.getenv("AUTOCORTEXT_API_KEY"),
)
client.config(
verbosity="concise",
machine="Conveyor System",
system="Electrical",
response_type="Technician",
env="prod",
)
res = client.troubleshoot("The 24 volt system in the conveyor is not powering on.")
print(res)
client.set_verbosity("verbose")
res = client.troubleshoot("OK how do I fix it?")
print(res)
client.save()
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
autocortext_py-0.4.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for autocortext_py-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dea8b0b632d01cdd3c924ba38907432c3f5d026f8a6c4c43a11019a08e610031 |
|
MD5 | 680fdb59ff0c58cb2131f5c2c4d9ff9e |
|
BLAKE2b-256 | 2fb3a5c61d50264f230b943b097320842a0e4ed6796bd712f45ca27394841882 |