vibesketcher.server.periodic_graph¶
REST routes for periodic bond graphs and crystal preparation (#200).
Every mutation is checked against the document revision and recorded as an edit; graph edits and applied preparations have their own undo routes, which refuse when the structure changed since.
Functions
|
Classes
|
|
|
A preview reads the current document; the answer names its revision. |
|
|
|
- class vibesketcher.server.periodic_graph.GraphEditRequest(*, actor='agent', client='rest', revision, operations)[source]¶
Bases:
RevisionRequest- Parameters:
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.periodic_graph.PreparationPreviewRequest(*, preparation)[source]¶
Bases:
BaseModelA preview reads the current document; the answer names its revision.
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.periodic_graph.PreparationRequest(*, actor='agent', client='rest', revision, preparation, source_sha256=None)[source]¶
Bases:
RevisionRequest- Parameters:
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class vibesketcher.server.periodic_graph.PreparationUndoRequest(*, actor='agent', client='rest', revision, structure)[source]¶
Bases:
RevisionRequest- Parameters:
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].