Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants
76
{
"context": "Evaluates whether the solution uses aenum's interoperability helpers to bridge with the stdlib enum module and to persist enum values through SQLite safely.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Enable bridge",
"description": "Calls aenum.add_stdlib_integration() when turning on stdlib compatibility so DbEvent members satisfy standard library enum checks, and does so safely for repeated invocations.",
"max_score": 25
},
{
"name": "Disable bridge",
"description": "Uses aenum.remove_stdlib_integration() to undo stdlib integration and ensures subsequent checks no longer treat members as stdlib enums.",
"max_score": 20
},
{
"name": "SQLite enum base",
"description": "Defines DbEvent by subclassing aenum.SqliteEnum (rather than plain Enum) so SQLite adapters emit member names automatically through __conform__ during parameter binding.",
"max_score": 30
},
{
"name": "Round-trip usage",
"description": "Relies on SqliteEnum behavior for inserts and reads: binds enum instances directly to sqlite3 without manual string casting and reconstructs values with DbEvent(...) to prove names round-trip intact.",
"max_score": 25
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-aenumevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10