ska_oso_pdm._shared
The ska_oso_pdm._shared package model entities and types that are used by more than one OSO entity, for example the Target that is used by both SB Definitions and Observing Proposals. Package contents are presented in the diagram below.
Class diagram for the ska_oso_pdm._shared package
- class PdmObject[source]
Shared Base Class for all PDM Entities.
- model_config: ClassVar[ConfigDict] = {'extra': None, 'ser_json_timedelta': 'float', 'validate_assignment': True, 'validate_default': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class FunctionArgs(*, function_name: str | None = None, function_args: PythonArguments | None = None)[source]
Represents a Python function & its arguments
- class PythonArguments(*, args: list = <factory>, kwargs: dict = <factory>)[source]
Represents the arguments for a Python callable.
- class Metadata(*, version: int = 1, created_by: str | None = None, created_on: ~pydantic.types.AwareDatetime = <factory>, last_modified_by: str | None = None, last_modified_on: ~pydantic.types.AwareDatetime = <factory>, pdm_version: str = '17.2.0')[source]
Represents metadata about other entities.
Contains very basic building blocks used elsewhere in the PDM. Enums, constants, type definitions, etc. Don’t put any fancy models or classes in here.