API reference#
Everything a user is allowed to depend on is named in scenet.__all__ and imported
straight from the top level:
from scenet import compile_source, render
result = compile_source("cast: {a: {reference: alice}}")
svg = render(result.core)
Names outside __all__ are internal. They are still documented here — the decisions
inside the solver are the interesting part of this project — but their signatures are not
promised to survive a minor version.
The public surface at a glance#
Names |
|
|---|---|
Compiling |
|
Parsing only |
|
Rendering |
|
Tiers |
|
Describing a panel |
|
Characters |
|
Errors |
|
Types#
Scenet ships a py.typed marker, so mypy, pyright, ty and basedpyright read these
annotations directly from the installed package. No stubs to install, nothing to
configure.