Retack SDK for Django
Project description
Retack SDK for Django
The Retack SDK for Django allows you to easily report errors to the Retack AI service from your Django applications.
Installation
You can install the Retack SDK using pip:
pip install retackAI-sdk-django
Usage
from retackAI_sdk import retack_client
# Initialize RetackConfig and RetackClient
retack_config = retack_client.RetackConfig(api_key="V-oJTkB3fF2Hdnqz40jDOtEn")
retack_client_instance = retack_client.RetackClient(retack_config)
try:
# use your code
pass
except Exception as e:
# Create an ErrorReportRequest
error_report = retack_client.ErrorReportRequest(
error=f"Member retrieval failed: {str(e)}",
stack_trace=e.__traceback__,
user_context=retack_client.UserContext(username="user", extras={"key": "value"})
)
# Report the error
retack_client_instance.report_error(error_report)
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
File details
Details for the file retackAI-sdk-django-1.0.2.tar.gz
.
File metadata
- Download URL: retackAI-sdk-django-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a688eab529e8fc23826fd5258a71550a3ee98d137ebd1539e88a30a37883ea2 |
|
MD5 | 9dd3ebec2990a0687d059026335d0f60 |
|
BLAKE2b-256 | 076179f5a29bb7c9eb48688d17a205653124646a9bf34c84fc0d00dfb1690523 |
File details
Details for the file retackAI_sdk_django-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: retackAI_sdk_django-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a81566aa4632dbbc7134202a403858c8326a66c489566ffd52ae79846ebe05 |
|
MD5 | 9190b650e979cc4e6cc84d71744e3f61 |
|
BLAKE2b-256 | 0de511cde1e19c89087298959bcc7de3aa8e32a7e7403142a80d8d4cb10786dd |