Skip to main content

Python SDK for Trailwatch by Kicksaw

Project description

Installation

pip install trailwatch

Getting Started

from trailwatch import configure, watch

configure(
  project="my-project",
  trailwatch_url="https://<random>.execute-api.us-west-2.amazonaws.com",
)

@watch()
def handler(event, context):
  # Do your thing
  return

Partial Success

Raise a PartialSuccess exception to indicate that the execution was partially successful. This exception is handled by Trailwatch to set execution status to partial and will not be propagated to the caller.

from trailwatch import configure, watch
from trailwatch.exceptions import PartialSuccessError

configure(
  project="my-project",
  trailwatch_url="https://<random>.execute-api.us-west-2.amazonaws.com",
)

@watch()
def handler(event, context):
  # Do your thing
  # You find out that only a subset of the work was successful
  # Log information about the failure normally using the logger
  raise PartialSuccessError

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

trailwatch-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

trailwatch-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trailwatch-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.16 Linux/5.15.0-1034-azure

File hashes

Hashes for trailwatch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 589a4a55e9198b5989fc3961cfc86730e27d0f33d4065348c1f8c8f3c201ac74
MD5 421276cc369a208c007a40dcf8552805
BLAKE2b-256 618b40a01a66cb7ca73c68db7fc5ad1602e65ad6f6ea5c66427ba7e94340d788

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trailwatch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.9.16 Linux/5.15.0-1034-azure

File hashes

Hashes for trailwatch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1ec34f9b3a8d91bbf2ae3e7ccc03aa3663538afaa28280b76a75566d4b46fc
MD5 ae64480849cbee9d6c46ad9630139ad1
BLAKE2b-256 ee63f5222ef780db27625361091e99c855ac6edbce9b20ae705fca8beca47b60

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