betty.project.extension package¶
Subpackages¶
- betty.project.extension.cotton_candy package
- Submodules
- betty.project.extension.cotton_candy.config module
CottonCandyConfigurationCottonCandyConfiguration.DEFAULT_LINK_ACTIVE_COLORCottonCandyConfiguration.DEFAULT_LINK_INACTIVE_COLORCottonCandyConfiguration.DEFAULT_PRIMARY_ACTIVE_COLORCottonCandyConfiguration.DEFAULT_PRIMARY_INACTIVE_COLORCottonCandyConfiguration.__init__()CottonCandyConfiguration.dump()CottonCandyConfiguration.featured_entitiesCottonCandyConfiguration.get_mutable_instances()CottonCandyConfiguration.link_active_colorCottonCandyConfiguration.link_inactive_colorCottonCandyConfiguration.load()CottonCandyConfiguration.primary_active_colorCottonCandyConfiguration.primary_inactive_color
- betty.project.extension.cotton_candy.config module
- Module contents
CottonCandyCottonCandy.__init__()CottonCandy.__new__()CottonCandy.assets_directory_path()CottonCandy.bootstrap()CottonCandy.comes_after()CottonCandy.depends_on()CottonCandy.filtersCottonCandy.new_default_configuration()CottonCandy.new_for_project()CottonCandy.public_css_pathsCottonCandy.register_event_handlers()CottonCandy.webpack_entry_point_cache_keys()CottonCandy.webpack_entry_point_directory_path()
- Submodules
- betty.project.extension.demo package
- betty.project.extension.deriver package
- betty.project.extension.gramps package
- Submodules
- betty.project.extension.gramps.config module
FamilyTreeConfigurationFamilyTreeConfiguration.__init__()FamilyTreeConfiguration.dump()FamilyTreeConfiguration.event_typesFamilyTreeConfiguration.file_pathFamilyTreeConfiguration.gendersFamilyTreeConfiguration.get_mutable_instances()FamilyTreeConfiguration.load()FamilyTreeConfiguration.place_typesFamilyTreeConfiguration.presence_roles
FamilyTreeConfigurationSequenceGrampsConfigurationPluginMapping
- betty.project.extension.gramps.config module
- Module contents
- Submodules
- betty.project.extension.http_api_doc package
- betty.project.extension.maps package
- betty.project.extension.privatizer package
- betty.project.extension.raspberry_mint package
- Submodules
- betty.project.extension.raspberry_mint.config module
RaspberryMintConfigurationRaspberryMintConfiguration.DEFAULT_PRIMARY_COLORRaspberryMintConfiguration.DEFAULT_SECONDARY_COLORRaspberryMintConfiguration.DEFAULT_TERTIARY_COLORRaspberryMintConfiguration.__init__()RaspberryMintConfiguration.dump()RaspberryMintConfiguration.featured_entitiesRaspberryMintConfiguration.get_mutable_instances()RaspberryMintConfiguration.load()RaspberryMintConfiguration.primary_colorRaspberryMintConfiguration.secondary_colorRaspberryMintConfiguration.tertiary_color
- betty.project.extension.raspberry_mint.config module
- Module contents
RaspberryMintRaspberryMint.__init__()RaspberryMint.assets_directory_path()RaspberryMint.bootstrap()RaspberryMint.comes_after()RaspberryMint.depends_on()RaspberryMint.filtersRaspberryMint.new_default_configuration()RaspberryMint.new_for_project()RaspberryMint.public_css_pathsRaspberryMint.register_event_handlers()RaspberryMint.webpack_entry_point_cache_keys()RaspberryMint.webpack_entry_point_directory_path()
- Submodules
- betty.project.extension.trees package
- betty.project.extension.webpack package
- betty.project.extension.wikipedia package
Module contents¶
Provide Betty’s extension API.
- class betty.project.extension.ConfigurableExtension[source]¶
Bases:
DefaultConfigurable[_ConfigurationT],Extension,Generic[_ConfigurationT]A configurable extension.
- class betty.project.extension.Dependencies[source]¶
Bases:
AllRequirementsCheck a dependent’s dependency requirements.
- __init__(dependent: type[Extension], extension_id_to_type_mapping: PluginIdToTypeMapping[Extension], dependency_requirements: Sequence[Requirement])[source]¶
This is private. It MUST NOT be used anywhere outside its containing scope.
- summary() Localizable[source]¶
Get the requirement’s human-readable summary.
- betty.project.extension.EXTENSION_REPOSITORY: PluginRepository[Extension] = <betty.plugin.entry_point.EntryPointPluginRepository object>¶
The project extension plugin repository.
Read more about Extension plugins.
- class betty.project.extension.Extension[source]¶
Bases:
OrderedPlugin[Extension],DependentPlugin[Extension],ServiceProvider,ProjectDependentFactoryIntegrate optional functionality with Betty :py:class:`betty.project.Project`s.
Read more about Extension plugins.
To test your own subclasses, use
betty.test_utils.project.extension.ExtensionTestBase.- classmethod assets_directory_path() Path | None[source]¶
Return the path on disk where the extension’s assets are located.
This may be anywhere in your Python package.
- async classmethod new_for_project(project: Project) Self[source]¶
Create a new instance using the given project.
- register_event_handlers(registry: EventHandlerRegistry) None[source]¶
Register event handlers with the project.
- async classmethod requirement() Requirement[source]¶
Define the requirement for this extension to be enabled.
This defaults to the extension’s dependencies.