Skip to main content

A context manager to report results to and endpoint.

Project description

Result Reporter Client

This client will report results of a function execution to an endpoint. This can be especially useful for determining how many students in a class are successfully completing an exercise.

Usage

import rr

# Define endpoint to send results to.
rr.set_global_endpoint('https://result-reporter.com/ingest')
# User-Assignment identification token. This is provided by Result-Reporter.com
rr.set_global_token('f0c3f-1234-abcd-1234-740e2cf8daf8')


def fibonacci(n: int) -> int:
    # Left for your students to implement.
    pass


# Tests provided for your students.
with rr.Wrap(fibonacci) as f:
    assert f(0) == 0
    assert f(1) == 1
    assert f(2) == 1
    assert f(3) == 2
    assert f(4) == 3
    assert f(5) == 5
    assert f(6) == 8

Results will then be available for visualization via the result server.

Installation

$ pip install result-reporter

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

result_reporter-0.2.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

result_reporter-0.2.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file result_reporter-0.2.1.tar.gz.

File metadata

  • Download URL: result_reporter-0.2.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for result_reporter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2533731b0d1460dd1d28b4819f51d861530fbe8ae64eb5c0968f205f83f43d57
MD5 4c45683bbf4e13eecd7cc90c30079c72
BLAKE2b-256 6055079828f399351a516305d554cb0322898c806102027352212f24c5c8556b

See more details on using hashes here.

File details

Details for the file result_reporter-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: result_reporter-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.0 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for result_reporter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7328acaa46c0d69b65e8a2b94fc71b18bfa7865db3cf66c33d288818a690e8e
MD5 7c4720c5ba3a5ab57764ca60eb47164c
BLAKE2b-256 4425669bccd9865557f2482e28ede0a54ccad34f7b2d5ffbb4938bdc7f228d00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page