betty.extension.trees package

Module contents

Provide interactive family trees by integrating Betty with Cytoscape.js.

class betty.extension.trees.Trees(app, *args, **kwargs)[source]

Bases: UserFacingExtension, WebpackEntrypointProvider

Parameters:
app

*args

**kwargs

classmethod assets_directory_path()[source]

Return the path on disk where the extension’s assets are located.

This may be anywhere in your Python package.

Return type:

pathlib.Path

classmethod depends_on()[source]
Return type:

set[type[betty.app.extension.Extension]]

classmethod description()[source]
Return type:

betty.locale.Str

classmethod label()[source]
Return type:

betty.locale.Str

classmethod name()[source]
Return type:

str

webpack_entrypoint_cache_keys()[source]

Get the keys that make a Webpack build for this provider unique.

Providers that can be cached regardless may return ().

Return type:

collections.abc.Sequence[str]

classmethod webpack_entrypoint_directory_path()[source]

Get the path to the directory with the entrypoint assets.

The directory must include at least a package.json and main.ts.

Return type:

pathlib.Path