posty.model module
- class posty.model.Model[source]
Bases:
ABCBase class for objects representing things stored as YAML, such as a Post or a Page
- Parameters:
payload – A dict representing the backing payload for this object
config – A Config object
- abstractmethod classmethod from_yaml(file_contents: str, config: Config | None = None) Model[source]
Load an object from its YAML file representation