rcmpy.config package#
Submodules#
rcmpy.config.file module#
A module implementing an interface for package-managed files.
- class rcmpy.config.file.ManagedFile(template: str, extra_templates: Set[str], directory: Path, name: str, link: bool, executable: bool, condition: str, platforms: Set[str])[source]#
Bases:
object
A data structure for managed files specified in the configuration data.
- condition: str#
- directory: Path#
- executable: bool#
- extra_templates: Set[str]#
- link: bool#
- name: str#
- property output: Path#
Get the full output path.
- property platform: bool#
Determine if the platform is correct for handling this file.
- platforms: Set[str]#
- property present: bool#
Determine if this file is currently present in the file system.
- template: str#
Module contents#
A module implementing a configuration interface for the package.
- class rcmpy.config.Config(data: dict[str, str | int | float | bool | None | dict[str, str | int | float | bool | None] | list[str | int | float | bool | None]] = None, schemas: SchemaMap = None, dest_attr: str = 'data', verify: bool = True)[source]#
Bases:
RcmpyDictCodec
,BasicDictCodec
The top-level configuration object for the package.
- class rcmpy.config.ManagedFile(template: str, extra_templates: Set[str], directory: Path, name: str, link: bool, executable: bool, condition: str, platforms: Set[str])[source]#
Bases:
object
A data structure for managed files specified in the configuration data.
- condition: str#
- directory: Path#
- executable: bool#
- extra_templates: Set[str]#
- link: bool#
- name: str#
- property output: Path#
Get the full output path.
- property platform: bool#
Determine if the platform is correct for handling this file.
- platforms: Set[str]#
- property present: bool#
Determine if this file is currently present in the file system.
- template: str#