snip.snippets.factory¶
Functions
|
Class factory that creates a new class derived from BaseSnip using the provided JSON schema. |
Module Functions
- snip.snippets.factory.snip_class_factory(name: str, schema: dict)¶
Class factory that creates a new class derived from BaseSnip using the provided JSON schema.
- Parameters:
schema (dict) – The JSON schema to use for the class creation. Has to be a valid snip schema.
- Returns:
The newly created class derived from BaseSnip.
- Return type:
class