betty.extension.gramps.config module¶
Provide configuration for the betty.extension.Gramps
extension.
- class betty.extension.gramps.config.FamilyTreeConfiguration[source]¶
Bases:
Configuration
Configure a single Gramps family tree.
- Parameters:
file_path (
pathlib.Path
|None
)
- __init__(*, file_path: pathlib.Path | None = None)[source]¶
- Parameters:
file_path (
pathlib.Path
|None
)
- dump() bool | int | float | str | None | Sequence[bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | Mapping[str, bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | type[betty.serde.dump.Void] [source]¶
Dump this instance to a portable format.
- Return type:
typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[Dump],typing.Mapping
[str
, Dump]]],typing.Mapping
[str
,typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[Dump],typing.Mapping
[str
, Dump]]],type
[betty.serde.dump.Void
]]
- classmethod load(dump: bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump], configuration: Self | None = None) Self [source]¶
Load dumped configuration into a new configuration instance.
- Parameters:
dump (
typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[Dump],typing.Mapping
[str
, Dump]])configuration (
typing.Optional
[typing.Self
])
- Return type:
typing.Self
- class betty.extension.gramps.config.FamilyTreeConfigurationSequence[source]¶
Bases:
ConfigurationSequence
[FamilyTreeConfiguration
]Configure zero or more Gramps family trees.
- Parameters:
configurations (
typing.Optional
[typing.Iterable
[typing.TypeVar
(ConfigurationT
, bound=betty.config.Configuration
)]])
- class betty.extension.gramps.config.GrampsConfiguration[source]¶
Bases:
Configuration
Provide configuration for the
betty.extension.gramps.Gramps
extension.- Parameters:
family_trees (
typing.Optional
[typing.Iterable
[betty.extension.gramps.config.FamilyTreeConfiguration
]])
- __init__(*, family_trees: Iterable[betty.extension.gramps.config.FamilyTreeConfiguration] | None = None)[source]¶
- Parameters:
family_trees (
typing.Optional
[typing.Iterable
[betty.extension.gramps.config.FamilyTreeConfiguration
]])
- dump() bool | int | float | str | None | Sequence[bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | Mapping[str, bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | type[betty.serde.dump.Void] [source]¶
Dump this instance to a portable format.
- Return type:
typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[Dump],typing.Mapping
[str
, Dump]]],typing.Mapping
[str
,typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[Dump],typing.Mapping
[str
, Dump]]],type
[betty.serde.dump.Void
]]
- property family_trees: FamilyTreeConfigurationSequence¶
The Gramps family trees to load.
- classmethod load(dump: bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump], configuration: Self | None = None) Self [source]¶
Load dumped configuration into a new configuration instance.
- Parameters:
dump (
typing.Union
[bool
,int
,float
,str
,None
,typing.Sequence
[Dump],typing.Mapping
[str
, Dump]])configuration (
typing.Optional
[typing.Self
])
- Return type:
typing.Self