Skip to content

cattle_grid.dependencies.processing

Furthermore, you may use the annotations from muck_out.cattle_grid starting with Fetch or Parsed.

ActorProfile module-attribute

ActorProfile = Annotated[dict, Depends(get_actor_profile)]

Returns the actor profile of the actor processing the message

FactoriesForActor module-attribute

FactoriesForActor = Annotated[
    tuple[ActivityFactory, ObjectFactory],
    Depends(get_factories_for_actor),
]

Returns the activity and object factories for the actor

MessageActor module-attribute

MessageActor = Annotated[Actor, Depends(actor_for_message)]

Returns the actor for the message

RoutingKey module-attribute

RoutingKey = Annotated[
    str, Context("message.raw_message.routing_key")
]

The AMQP routing key