Contents Menu Expand Light mode Dark mode Auto light/dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Betty 0.4.0a2 documentation
Logo
Betty 0.4.0a2 documentation
  • Installation
    • Installation via pip
    • Installation from source
  • Usage
    • Ancestry
      • Citation
      • Dates
      • Enclosure
      • Event
      • Event Type
      • File
      • Link
      • Media Type
      • Note
      • Person
      • Person Name
      • Place
      • Place Name
      • Presence
      • Presence Role
      • Privacy
      • Source
    • Asset Management
    • The command line
    • Application configuration
    • Environment variables
    • Extensions
      • The Cotton Candy extension
      • The Deriver extension
      • The Gramps extension
      • The HTTP API Documentation extension
      • The Maps extension
      • The nginx extension
      • The Privatizer extension
      • The Trees extension
      • The Wikipedia extension
    • GEDCOM
    • npm
    • Projects
      • Project configuration
    • Templating
      • Filters
      • Globals
      • Tests
    • Translations
  • Development
    • Developing a Betty extension
    • Working on Betty’s translations
    • Testing Betty’s source code
  • API Documentation
  • About
    • Contributing to Betty
    • Copyright & license
Back to top
View this page

betty.dispatch module¶

Provide the Dispatch API.

class betty.dispatch.Dispatcher[source]¶

Bases: object

Dispatch events to handlers.

dispatch(target_type: type[Any]) → Callable[[...], Awaitable[Sequence[Any]]][source]¶

Dispatch a single target.

Parameters:

target_type (type[typing.Any])

Return type:

typing.Callable[..., typing.Awaitable[typing.Sequence[typing.Any]]]

Copyright © Bart Feenstra and contributors
Made with Sphinx and @pradyunsg's Furo
On this page
  • betty.dispatch module
    • Dispatcher
      • Dispatcher.dispatch()