⚠️ This repo has outdated tokens in its travisci config To make new releases for this project it needs to be moved to circleci
sheetwhat
sheetwhat enables you to write Submission Correctness Tests (SCTs) for interactive Spreadsheet exercises on DataCamp.
- If you are new to teaching on DataCamp, check out https://instructor-support.datacamp.com.
- If you want to learn what SCTs are and how they work, visit this article specifically.
- For a complete overview of all functionality inside
sheetwhatand articles about what to use when, consult https://sheetwhat.readthedocs.io.
Installing
pip install sheetwhat
Demo
Sheetwhat is typically used in a web application, but you can also experiment with its functions on your local machine.
SCT functions that fail will throw a TestFail error.
# Setup: make all checking functions available
from sheetwhat.sct_syntax import SCT_CTX
globals().update(SCT_CTX)
# Setup: set up state with student data, solution data and SCT range
from sheetwhat.State import State
from protowhat.Reporter import Reporter
Ex.root_state = State(
{'values': [["a", "a"]], "formulas": [["=B1"]]},
{'values': [["b", "b"]], "formulas": [["=B1"]]},
"A1",
Reporter()
)
# Experiment interactively with SCTs
# Passes, as formulas at A1 match
Ex().has_equal_formula()
# Fails, as values at A1 do not match
Ex().has_equal_value()
Testing
pip install -r requirements.txt
pip install -e .
pytest
License
Metadata
Release files for sheetwhat 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sheetwhat-0.6.0.tar.gz | 34.2 kB | Without provenance | Details for sheetwhat-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sheetwhat-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for sheetwhat-0.6.0-py3-none-any.whl |
Total release size: 62.2 kB
Release files / sheetwhat-0.6.0.tar.gz
| Download URL | sheetwhat-0.6.0.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb800cd4dd0806ba9ae170d8351bd1512a46f469bceca28de6724066cbf81b73
|
|
BLAKE2b-256 checksum How to use checksums |
e14727d6dc3a08b1b86ac253d3cde3552ba5e204281a4fa6facd216f56fe7ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / sheetwhat-0.6.0-py3-none-any.whl
| Download URL | sheetwhat-0.6.0-py3-none-any.whl |
|---|---|
| Size | 28.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35037f0b4353200cf2ec648b68390a7f522dc0a8aacc4a70767f5317bc6f9170
|
|
BLAKE2b-256 checksum How to use checksums |
12bc01198f0c9c94e1b8dc29965cee8566239d9231bd49cacc2a8e484ddcbbe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for sheetwhat 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.