pyinfra.api.metadata module¶
Support parsing pyinfra-metadata.toml
Currently just parses plugins and their metadata.
- class pyinfra.api.metadata.Plugin(*, name: str, path: str, type: Literal['operation', 'fact', 'connector', 'deploy'], tags: list[Tag])¶
Bases:
BaseModelRepresentation of a pyinfra plugin.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: str¶
- path: str¶
- type: Literal['operation', 'fact', 'connector', 'deploy']¶
- class pyinfra.api.metadata.Tag(*, value: Literal['boot', 'containers', 'database', 'service-management', 'package-manager', 'python', 'ruby', 'javascript', 'configuration-management', 'security', 'storage', 'system', 'rust', 'version-control-system'])¶
Bases:
BaseModelRepresentation of a plugin tag.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- property title_case: str¶
- value: Literal['boot', 'containers', 'database', 'service-management', 'package-manager', 'python', 'ruby', 'javascript', 'configuration-management', 'security', 'storage', 'system', 'rust', 'version-control-system']¶
pyinfra next