registered_accessors

registered_accessors#

registered_accessors() tuple[AccessorRegistration, ...][source]#

Return every accessor currently registered.

Forces discovery of any pending entry-point plugins so the returned list reflects every plugin visible to PyVista, not just the ones that have been touched already via attribute access. A plugin that fails to import emits a UserWarning and is skipped; the rest still appear in the result.

Added in version 0.48.0.

Returns:
tuple[AccessorRegistration, …]

Ordered by registration time. Each record exposes name, target, accessor, and source.

Examples

>>> import pyvista as pv
>>> @pv.register_dataset_accessor('demo_listed', pv.PolyData)
... class DemoListedAccessor:
...     def __init__(self, mesh):
...         self._mesh = mesh
>>> [r.name for r in pv.registered_accessors() if r.name == 'demo_listed']
['demo_listed']
>>> pv.unregister_dataset_accessor('demo_listed', pv.PolyData)