Install & Compatibility
Where this runs
tested against v0.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 85.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.3s · import 0.000s · 83MB
83MB installed
● package 83MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Awesome
✓ from jsonschema_typed import Awesome
✗ from jsonschema_typed import from_schema
JSONSchema
✓ from jsonschema_typed import JSONSchema
✗ from jsonschema_typed import from_schema
OptionalTypedDict
✓ from jsonschema_typed import OptionalTypedDict
✗ from jsonschema_typed import from_schema
Define a dataclass from a JSON schema docstring.
from jsonschema_typed import JSONSchema
@JSONSchema
class MySchema:
'''
{
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name"]
}
'''
pass
obj = MySchema(name="Alice", age=30)
print(obj.name, obj.age)
Upgrade
Version history
0.8.0latest on PyPI · released Aug 11, 2020
Audit
Dependencies
jsonschemarequiredRuntime dependency for schema validation.
typing-extensionsrequiredBackport of typing features for Python <3.10.