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 documentation
Logo
Betty documentation
  • Installation
    • Installation of the Betty Desktop application
    • 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.contextlib module¶

Provide context manager utilities.

class betty.contextlib.SynchronizedContextManager[source]¶

Bases: Generic[ContextT]

Make an asynchronous context manager synchronous.

Parameters:

context_manager (typing.AsyncContextManager[typing.TypeVar(ContextT), bool | None])

__init__(context_manager: AsyncContextManager[betty.contextlib.ContextT, bool | None])[source]¶
Parameters:

context_manager (typing.AsyncContextManager[typing.TypeVar(ContextT), bool | None])

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