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.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file result_reporter-0.2.0.tar.gz
.
File metadata
- Download URL: result_reporter-0.2.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a75df5e5ef8e2bf88524639dea4fd23dd84df46abb15d1324a50a5456e72c840 |
|
MD5 | 7cb3a334f28919b79c9ecac6cf2e5b09 |
|
BLAKE2b-256 | e7c76886ee91e1dd64255f650525c59d4aec7b3cc9b5d89b496bc3fc25a83a39 |
File details
Details for the file result_reporter-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: result_reporter-0.2.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df12c82c08d153839bf63145db2558764c8c532ed6c9e94345fd7240e09ca7a |
|
MD5 | 7f7e11df129a5a591fba4ebe72160738 |
|
BLAKE2b-256 | e14789e0f18a3ef8d8a6e688980961db858a54b652b2141c41790d7f75137d6f |