Paper Scoring Reporting
paper-scoring-reporting turns paper-scoring-core score results into plain-text,
mobile-friendly HTML, and PDF reports. SMTP delivery is a separate, explicitly
configured step. The package never reads .env files or process environment
variables.
Install
python -m pip install paper-scoring-reporting
Render and deliver
from datetime import date
from paper_scoring_reporting import (
ReportMetadata,
SMTPSettings,
SMTPSender,
compose_report_email,
render_report,
)
report = render_report(
score_results,
ReportMetadata(
report_date=date.today(),
category="cs.AI",
scoring_version="3.0.0",
),
)
settings = SMTPSettings(
host="smtp.example.invalid",
port=587,
sender="automation@example.invalid",
username="automation@example.invalid",
password=runtime_password,
)
email = compose_report_email(
sender=settings.sender,
recipients=["reviewer@example.invalid"],
subject="Paper scoring report",
report=report,
)
SMTPSender(settings).send(email)
Inject credentials at runtime from your process supervisor, secret store, CLI, or MCP composition root. Do not put credentials in source files or report data.
Accepted result values
The renderer accepts a sequence of paper_scoring_core.ScoreResult objects, objects
with a safe model_dump() method, dataclass instances, or mappings. Only the public
score-report fields are selected; arbitrary object attributes and unknown mapping
keys are ignored. Legacy title-cased mapping keys are accepted for migration.
Development
python -m pip install -e '.[test,security]'
pytest
ruff check .
bandit -c pyproject.toml -r src
pip-audit
CI exercises Python 3.11 through 3.13 on Ubuntu and Windows, builds wheel and sdist artifacts, and verifies their metadata.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paper_scoring_reporting-0.1.0.tar.gz.
File metadata
- Download URL: paper_scoring_reporting-0.1.0.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4058ab26cad7065fdeb819a3e2d6375ff4fb59ba94ef9c08569117051812cf56
|
|
| MD5 |
b3fb4ab1a9682bc5687c200483f481f5
|
|
| BLAKE2b-256 |
103be690d17224cdd812026f1dc654e3f056fb3ff16eadcc179ce2729189bc96
|
File details
Details for the file paper_scoring_reporting-0.1.0-py3-none-any.whl.
File metadata
- Download URL: paper_scoring_reporting-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c983b54ead3ee69806678ed121409a2bf98d869631a9000b0fd15ec36ea3eb18
|
|
| MD5 |
9fd1909c14fdda8907dc607c4e42dac1
|
|
| BLAKE2b-256 |
ca1433e484f5cfcd2231e98a72c16f6d54b0d66567e4fcb08098f77361347817
|