Skip to main content

Score

PyPI version PyPI downloads Python CI codecov License GitHub repo size GitHub issues GitHub last commit

Compute the final score of an assignment based on the criteria.yml file.

This small package is an helper to sum the points of programming assignments.

Usage

Simply use score inside an assignment folder

$ score -v
Got 7 points + 2 points out of 10 points
4.5
$ score
4.5
$ score check criteria.yml
OK, schema version 2

You can use the porcelain command score json to get the detailed score report in JSON format:

$ score json [file]

Criteria file format

Criteria files now use the version 2 schema which is more explicit and easier to validate. The root object must contain a schema_version: 2 field and a criteria mapping. Each section can provide an optional description and nested criteria items. A leaf item uses descriptive keys such as description, awarded_points, and either max_points (regular points) or bonus_points (bonus points).

---
schema_version: 2
criteria:
  testing:
    description: Automated testing
    build:
      description: The program builds correctly
      awarded_points: -2
      max_points: -4
    unit:
      description: Unit test suite covers the critical paths
      awarded_points: 4
      max_points: 4
  code:
    description: Code quality
    implementation:
      description: Smart pointers are used correctly
      awarded_points: 4
      max_points: 4
    duplication:
      description: No repeated code
      awarded_points: -1
      max_points: -5
  bonus:
    description: Extra credit
    extension:
      description: Program goes beyond the scope of the assignment
      awarded_points: 2
      bonus_points: 3

Use score check to validate a criteria file and score update to migrate an older version 1 definition to the version 2 schema.

Metadata

Release files for StudentScore 0.7.1

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

Source distribution (sdist)

Source distribution for StudentScore 0.7.1
File Size Uploaded
studentscore-0.7.1.tar.gz 56.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for StudentScore 0.7.1
File Interpreter ABI Platform
studentscore-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 76.7 kB

Release files / studentscore-0.7.1.tar.gz

Download URL studentscore-0.7.1.tar.gz
Size 56.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8e1317a9826ba216a7a3f8d7c801cefb14cf0f0625b9578760b8b35ca1dd3ac2
BLAKE2b-256 checksum
How to use checksums
a839215ed1d6d9032d0c3574840929d8338eabce2a23f136c2c5ed0e2c89391a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.

Transparency log

Release files / studentscore-0.7.1-py3-none-any.whl

Download URL studentscore-0.7.1-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a151f5addcb6bf727a259e901a5bf5321a4a52b6aa02acbfa4d187b35e0c135
BLAKE2b-256 checksum
How to use checksums
3f168c249cadd44b8d8b195f0ee9ce0151a6496cc143afeeaab3cfb747ce1ce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.3.1

2 release files

0.3.0

1 release file

0.2.0

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