Runtime agent that captures uncaught errors + env snapshot and prints data‑driven CLI hints.
Project description
Corp Error Agent
A lightweight runtime agent that captures uncaught exceptions and environment snapshots.
Install this in your project to capture errors and send them to a backend for further processing and fix suggestions.
Backend URL Configuration
The backend URL defaults to http://127.0.0.1:8000, but you can change it in two ways:
-
Environment Variable (recommended for quick changes):
- Set the environment variable
ERROR_AGENT_URLto your backend URL before running your Python process.- On Windows (cmd):
set ERROR_AGENT_URL=http://your-backend:port - On PowerShell:
$env:ERROR_AGENT_URL="http://your-backend:port" - On Unix/bash:
export ERROR_AGENT_URL=http://your-backend:port
- On Windows (cmd):
- Set the environment variable
-
Persistent CLI Configuration:
- Use the provided CLI helper to set the backend URL once per machine:
python -m corp_error_agent.cli configure --url http://your-backend:port
- This stores the URL in a user config file for persistent use.
- Use the provided CLI helper to set the backend URL once per machine:
Telemetry Server
You can use or further customize the corp_error_agent_server Django REST project as a telemetry server for this package.
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
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 corp_error_agent-0.4.1.tar.gz.
File metadata
- Download URL: corp_error_agent-0.4.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
951498bbfdafb7d57fd1f8843d3ad77056ffb059a49f7340f773453d6fb2968a
|
|
| MD5 |
11983d555c5911f2431a3953209c9e8f
|
|
| BLAKE2b-256 |
5ad1ae3eb111600c9861889e29418e96297a5c175d8cdf3c1ace86b05b82572d
|
File details
Details for the file corp_error_agent-0.4.1-py3-none-any.whl.
File metadata
- Download URL: corp_error_agent-0.4.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db2bcca3fed22c758e9b862b244d1177a328cd34effd71cdae88b493b6471154
|
|
| MD5 |
50bae86c9681c69806868725a875a0d3
|
|
| BLAKE2b-256 |
b829433bbe323c096fdf0276ac22bcb1d344632106a2335a8cdb2d3f951abdf1
|