CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-josepy

tessl install tessl/pypi-josepy@2.1.0

JOSE protocol implementation in Python with support for JSON Web Algorithms, Keys, and Signatures

Agent Success

Agent success rate when using this tile

73%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.16x

Baseline

Agent success rate without this tile

63%

rubric.jsonevals/scenario-9/

{
  "context": "Evaluates how well the solution leans on josepy's JSONDeSerializable helpers to implement partial vs full JSON conversion, JSON string dumping, and resilient loading for the audit record and actor objects.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Partial serialize",
      "description": "Partial JSON output is produced by calling JSONDeSerializable.to_partial_json on the record/actor so primitives stay plain while the nested actor remains a JSONDeSerializable instance rather than being manually coerced into a dict.",
      "max_score": 20
    },
    {
      "name": "Full serialize",
      "description": "Full conversion uses JSONDeSerializable.to_json (with the library's recursive handling) to expand all nested JSONDeSerializable values into built-in Python types, yielding the actor as a dict and preserving ISO-8601 timestamps without manual ad hoc traversal.",
      "max_score": 25
    },
    {
      "name": "Safe loads",
      "description": "Loading from a JSON string relies on JSONDeSerializable.json_loads or from_json and lets josepy.errors.DeserializationError surface for malformed input instead of catching or replacing it with generic exceptions.",
      "max_score": 20
    },
    {
      "name": "Pretty dumping",
      "description": "Pretty string output is generated through JSONDeSerializable.json_dumps_pretty (or json_dumps with indent/sort arguments) rather than hand-formatting, producing sorted keys, 2-space indentation, and a trailing newline exactly as the library emits.",
      "max_score": 15
    },
    {
      "name": "Dump default",
      "description": "When serializing nested objects to JSON strings, json.dumps is configured with JSONDeSerializable.json_dump_default (or uses JSONDeSerializable.json_dumps) to let the package handle JSONDeSerializable instances instead of custom encoder logic.",
      "max_score": 20
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/josepy@2.1.x
tile.json