fediverse_pasture.data_provider
DataProvider
dataclass
Provides the data about actors to various applications
Parameters:
Name | Type | Description | Default |
---|---|---|---|
one_actor |
ActorData
|
User in one actor and as an application actor |
required |
possible_actors |
List[ActorData]
|
The list of actors used for verify_actor |
required |
Source code in fediverse_pasture/data_provider/__init__.py
bovine_actor_for_actor_data(actor_id, data)
Builds the corresponding bovine actor and actor data
Parameters:
Name | Type | Description | Default |
---|---|---|---|
actor_id |
str
|
The actor id to be used, e.g. |
required |
data |
ActorData
|
The actor data |
required |
Returns:
Type | Description |
---|---|
Tuple[BovineActor, Actor]
|
A tuple, where the first object is the Actor performing actions, and the second one the data object. |