Skip to main content

Simple AutoCortext API Client

This is a simple client for the AutoCortext API.

Setup

  1. An .env file with the variable AUTOCORTEXT_API_KEY set to a valid key.
  2. An .env file with the variable AUTOCORTEXT_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()

Release files for autocortext-py 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autocortext-py 0.4.1
File Size Uploaded
autocortext_py-0.4.1.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autocortext-py 0.4.1
File Interpreter ABI Platform
autocortext_py-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / autocortext_py-0.4.1.tar.gz

Download URL autocortext_py-0.4.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
42b09d16c759877561959f5c05972602315b9acae31558bf7c85c70214e1dfb3
BLAKE2b-256 checksum
How to use checksums
afc1852e2a1e9da52f4445cf7e8d82b02e38ed569ac512007405b8e273c7b431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.4

Release files / autocortext_py-0.4.1-py3-none-any.whl

Download URL autocortext_py-0.4.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dea8b0b632d01cdd3c924ba38907432c3f5d026f8a6c4c43a11019a08e610031
BLAKE2b-256 checksum
How to use checksums
2fb3a5c61d50264f230b943b097320842a0e4ed6796bd712f45ca27394841882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page