Skip to main content

learning-commons-evaluators (Python)

Python SDK for Learning Commons educational text evaluators. Evaluators call LLMs via LangChain, return structured Pydantic results, and share a common configuration and error-handling model.

Installation

pip install learning-commons-evaluators

Requires Python 3.10+. Provider API keys are passed in at runtime (not bundled with the package).

Quick start

import logging
from learning_commons_evaluators import (
    ConventionalityEvaluator,
    ConventionalityEvaluationInput,
    GoogleLLMProviderConfig,
    create_config_no_telemetry,
)

logging.basicConfig(level=logging.INFO)

config = create_config_no_telemetry(
    google_llm_provider_config=GoogleLLMProviderConfig(api_key="your-google-key"),
)

evaluator = ConventionalityEvaluator(config)
result = evaluator.evaluate_sync(
    ConventionalityEvaluationInput(text="The cat's out of the bag now.", grade=5)
)

print(result.answer.label)        # e.g. "Moderately complex"
print(result.explanation.summary) # Reasoning for the score

Docs

For full implementation details, check out the Python SDK docs.

More resources

  • Evaluators — Shipped evaluators and how they work
  • Configuration — Provider configs, EvaluatorConfig, evaluation settings, logging, and per-call overrides
  • OutputsEvaluationResult shape and metadata
  • Error handling — Exception hierarchy and retries
  • Local development — Repo-only: local setup, testing, and adding evaluators

License

MIT

Release files for learning-commons-evaluators 0.2.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 learning-commons-evaluators 0.2.1
File Size Uploaded
learning_commons_evaluators-0.2.1.tar.gz 81.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for learning-commons-evaluators 0.2.1
File Interpreter ABI Platform
learning_commons_evaluators-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 177.1 kB

Release files / learning_commons_evaluators-0.2.1.tar.gz

Download URL learning_commons_evaluators-0.2.1.tar.gz
Size 81.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b188a6829bf782309fb801be421cd5d44323ecfebbeb1da67ee439e01f1cbf9e
BLAKE2b-256 checksum
How to use checksums
2ae12348902e3bf88c46807876d551c596ccca5f4c716cfa04cdda2006338200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release files / learning_commons_evaluators-0.2.1-py3-none-any.whl

Download URL learning_commons_evaluators-0.2.1-py3-none-any.whl
Size 95.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06957fb3998f71a26234d32a71ff8f3300f1c372069abe6d35b379d8f8a0dd05
BLAKE2b-256 checksum
How to use checksums
6b246b1a91181703f4bb36e2dbc30d1f8e63d933ea0500bd2dd4a30a09a6708c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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