Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Changing package name

The goblinfish.metrics.process_timing Package

Provides context-manager classes to name, track and report elapsed-time and other metrics for top-level process entry-points (like AWS Lambda Function handlers) and sub-processes within them.

Quick Start

Install in your project:

# Install with pip
pip install goblinfish-metrics-process_timing
# Install with pipenv
pipenv install goblinfish-metrics-process_timing

Import in your code:

from goblinfish.metrics.process_timing import ProcessTimer

Create the timing-tracker instance:

tracker = ProcessTimer()

Decorate your top-level/entry-point function:

@tracker.track
def some_function():
    ...

Add any sub-process timers:

@tracker.track
def some_function():
    ...

    with tracker.timer('some_process_name'):
        # Do stuff here
        ...

When this code is executed, after the context created by the @tracker.track decorator is complete, it will print something that looks like this:

{"some_process_name": 0.0, "some_function": 0.0}

More detailed examples can be found in the examples directory in the repository.

Contribution guidelines

At this point, contributions are not accepted — I need to finish configuring the repository, deciding on whether I want to set up automated builds for pull-requests, and probably several other items.

Who do I talk to?

The current maintainer(s) will always be listed in the [maintainers] section of the pyproject.toml file in the repository.

Release files for goblinfish-metrics-process-timing 0.0.3

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

Source distribution (sdist)

Source distribution for goblinfish-metrics-process-timing 0.0.3
File Size Uploaded
goblinfish_metrics_process_timing-0.0.3.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for goblinfish-metrics-process-timing 0.0.3
File Interpreter ABI Platform
goblinfish_metrics_process_timing-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / goblinfish_metrics_process_timing-0.0.3.tar.gz

Download URL goblinfish_metrics_process_timing-0.0.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1fef0454059e3a55399424d0f4e9010ccb7118e8e2b3d8649daf40e0fe849cfd
BLAKE2b-256 checksum
How to use checksums
e82d3e47de6a77cd9784db136c64be7565f2c6ee7f6cecc20ac70804967d0197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / goblinfish_metrics_process_timing-0.0.3-py3-none-any.whl

Download URL goblinfish_metrics_process_timing-0.0.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a5230f9194f22cd2612044297a402a1b3584bc3f93826f764a7c09cd1a82953
BLAKE2b-256 checksum
How to use checksums
63a5affec76eececd79115020212002fe98d8db873c27aec2d78e64f59ee42db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

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