Skip to main content

‘cwtimer’ does one simple thing, track the timing of a ‘with’ statement block and report to AWS Cloudwatch.

Install

$ pip install cwtimer

Example

from cwtimer import cwtimer
import time

with cwtimer(namespace='MyNameSpace', metric_name='MyMetric',
             dimensions={'MyDimension':'Value'}):
    time.sleep(1)
    # 1.0s reported to cloudwatch metric

Metadata

Release files for cwtimer 0.0.2

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

Source distribution (sdist)

Source distribution for cwtimer 0.0.2
File Size Uploaded
cwtimer-0.0.2.tar.gz 1.7 kB Details

Release files / cwtimer-0.0.2.tar.gz

Download URL cwtimer-0.0.2.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
04571fc3daf7de746b9e2efa680a7814ffc16139f602634359d69d8378ffe8a4
BLAKE2b-256 checksum
How to use checksums
a9304dae1471bc29c6c0f015ff0c7a18cf0a93183655dcf1465ed9c71c32dd86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

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