Skip to content

cattle_grid.dependencies.processing

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

AccountForActor module-attribute

AccountForActor = Annotated[
    Account, Depends(determine_account)
]

Returns the account associated with the actor or raises an error

ActorId module-attribute

ActorId = Annotated[str, Depends(actor_id)]

ActorId of the actor processing the message

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

PermissionsForAccount module-attribute

PermissionsForAccount = Annotated[
    list[str], Depends(determine_permissions)
]

Returns the permissions of the account associated with the actor

RoutingKey module-attribute

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

The AMQP routing key