Skip to content

context ¤

Mixin for managing context data in Fluree operations.

Classes:

Attributes:

  • T

    Ensure that the type we are trying to create has a context attribute.

T module-attribute ¤

T = TypeVar('T', bound='HasContextData')

Ensure that the type we are trying to create has a context attribute.

WithContextMixin ¤

Bases: Generic[T]

Provides context management for Fluree operations.

Methods:

  • with_context

    Updates the operation's context with new data.

with_context ¤

with_context(context: dict[str, Any]) -> T

Updates the operation's context with new data.

Raises:

  • TypeError

    If the type parameter cannot be resolved.