Inventory of backends

All backends can be accessed via the backends dictionary, which represents the inventory of backends.

>>> from bewegung import backends
>>> backends.keys()
dict_keys(['drawingboard', 'pillow', 'datashader', 'cairo', 'matplotlib'])
>>> [backend for backend in backends.values()]
[<DrawingBoardBackend>, <PillowBackend>, <DatashaderBackend>, <CairoBackend>, <MatplotlibBackend>]

Backends are “lazy” objects. They only import the underlying library if actually used. For most intents and purposes, working with bewegung.Video.canvas() is sufficient. Further details about the common structure of backends are provided in the sections on custom backends.