Skip to main content

A package to explain Python tracebacks using OpenAI.

Project description

Traceback Assistant

A Python package that explains tracebacks using OpenAI's API.

Installation

pip install traceback_assistant

Usage

Set Open AI Key in environmental variable

export OPENAI_API_KEY="your_openai_api_key"

Or pass as parameter

from traceback_assistant import TracebackAssistant

assistant = TracebackAssistant(openai_api_key="your_openai_api_key")

from traceback_assistant import TracebackAssistant, explain_errors

@explain_errors def faulty_function(): return 1 / 0

faulty_function()

Build Package:

python setup.py sdist bdist_wheel

Publish to PyPI

twine upload dist/*

Install package

pip install traceback_assistant

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

traceback_assistant-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traceback_assistant-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file traceback_assistant-0.1.0.tar.gz.

File metadata

  • Download URL: traceback_assistant-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.18

File hashes

Hashes for traceback_assistant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c7083cf27ea84786ca8d49c2bd987b4c38e0dc80b709499f455a0d4760e4d7f
MD5 ded11c77bff98776c9e0181e03398661
BLAKE2b-256 f51d613c4c8bb597bec4ffc2552c02978953f78f963eea8e211385f6638aedc8

See more details on using hashes here.

File details

Details for the file traceback_assistant-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for traceback_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6392c6d69453cf2b7cec0690c43103e7595136044e73e9c36b889f40e5199d96
MD5 03462bee0b7e7ca43e65163586fb1fcd
BLAKE2b-256 d8d96cfeb2235a21a4a941fd27315d8a7c7bf388a4cc65d45b7e7e2250b3dfe6

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