Skip to content

v3.10.0

Choose a tag to compare

@luisgf luisgf released this 08 Jul 17:00
· 266 commits to master since this release

Feature release: the mid-term roadmap milestone — openbadgeslib grows from a CLI tool into an integrable library, completes the OB 3.0 data model, and hardens the status-list lifecycle.

Added

  • feat(api): a reusable issuance API, extracted from the CLI — the single biggest adoption gap. openbadgeslib.issue exposes issue_from_conf(conf, badge, recipient, …) (and issue_batch_from_conf), returning a SignResult / BatchResult and doing no user-facing I/O — no prints, no sys.exit, no file write; a config or policy problem raises IssuanceError. The ~230 lines of orchestration that lived in openbadges-signer — credential construction from config, salt, the OB 2.0 hosted-vs-signed decision, the OB 3.0 status-registry→sign transaction and the Data Integrity verificationMethod policy — now live there and are unit-tested off the CLI. The signer entrypoints reduce to flag parsing, I/O and display; behaviour is unchanged. (#160)
  • feat(cli): batch issuance — openbadges-signer issues to many recipients in one run (repeat -r, or --recipients-file). For a revocable OB 3.0 badge every status-list index is allocated in a single registry transaction (load once, save once) — the piece that makes thousands-scale issuance practical. --force/--overwrite for existing files; a per-recipient --json summary; a bad recipient does not abort the rest. (#165)
  • feat(ob3): completed the OB 3.0 data model — new Result/ResultDescription, the credentialSubject IdentityObject (identifier), and creditsEarned, on top of the Evidence/Alignment/achievementType work from v3.9.0. All follow the house style (dataclasses + mypy, no Pydantic), round-trip through to_vc, appear in --json/--show, and a fully-populated credential validates against 1EdTech's official AchievementCredential schema. (#162)
  • feat(publish): openbadges-publish -V 3 --check-live downloads each written artifact (did.json, the signed status lists, verify.pem) from publish_url and byte-compares it against the local copy, turning the "re-upload so the change takes effect" reminder into a verified fact (exit 2/--json, 1/human, if any is stale). Completes #164 — its status-list validUntil + opt-in list-proof verification + issuer binding shipped in v3.8.0.

Fixed

  • fix(cli): openbadges-publish -V 1/-V 2 now exits with a clean message when [issuer] is missing publish_url/revocationList, instead of a raw KeyError traceback thrown after the output directory was already created. Last item of the quick-fix round. (#156)

Changed / docs / quality

  • OpenBadges 1.0 reclassified from "deprecated, removal in 4.0.0" to a supported legacy surface with no removal planned — removing a working, dependency-free legacy path was judged excessive. The library warnings and -V 1 CLI notices are reworded to steer new work to OB 2.0/3.0 without promising removal.
  • Library Integration Tutorial + runnable examples/ (executed in CI, anti-drift) + a Certification Cookbook on passing the official 1EdTech OB 3.0 conformance tests without the paid membership. (#168)
  • Targeted test coverage crosses 93%, with the fail_under floor raised 91 → 93: dedicated baking/mail/keys suites, error-branch coverage for the OB 2.0 signer/verifier and the OB 3.0 Data Integrity path, and the verifier CLI 74% → 95%. (#169)

Verified: the full local gate — flake8, mypy --strict, and the complete suite (1067 tests, [ldp] extra, coverage 93%) — plus the CI matrix on Python 3.10–3.14, which gated the (OIDC Trusted Publishing) publish to PyPI.

Full history: Changelog.txt