Bases: object
Tells the story of a person performing an action on or with an object.
Consists of an actor, a verb, an object, and optionally a target.
The actor, or subject, of the Activity.
Example: John posted a comment on ticket #42.
The object of the Activity.
Example: John posted a comment on ticket #42.
The datetime at which the Activity was published.
The (optional) target of the Activity.
Example: John posted a comment on ticket #42.
The verb in the Activity.
Example: John posted a comment on ticket #42.
Returns: str
Bases: object
Serializes ActivityBase objects.
Create and serialize an ActivityBase.
Bases: object
A thing which participates in an Activity.
A BSON-serializable dict of extra stuff to store on the activity.
Unicode representation of this object.
URL of this object.
Bases: object
A node in the network.
A string that uniquely identifies this node in the network.
Bases: object
Manages the network of connected nodes.
Knows how to connect and disconnect nodes and serialize the graph.
Bases: activitystream.base.ActivityManagerBase
Serializes Activity objects.
Create and serialize an Activity.
Serializing includes making a copy of the activity for any node in the network that is connected to any node in the activity.
Return all activities associated with the given nodes.
Return the timeline for node_id.
Timeline is the already-aggregated list of activities in mongo.
Save (upsert) a list of activities to mongo.
Bases: object
Creates a timeline for a given node in the network graph.
Return a list of activities with classfication flags added.
Create, store, and return the timeline for a given node.
Return a subset of a node’s activities using the algorithm of your choice.
Return a subset of a node’s total outbound connections (nodes he is following) using the algorithm of your choice.
Return a (paged and limited) timeline for node.
page is zero-based (page 0 is the first page of results).
If actor_only == True, timeline will be filtered to only include activities where node is the actor.
Pass a callable to filter_func to arbitrarily filter activities out of the timeline. filter_func will be passed an activity, and should return True to keep the activity in the timeline, or False to filter it out.
Return True if it’s time for this node’s timeline to be (re)aggregated).
Return a scored list of activities. By default, newer activities have higher scores.
Return a truncated timeline using the algorithm of your choice. The timeline activities passed in are already sorted by score, descending.
Bases: activitystream.base.NodeManagerBase
Manages the network of connected nodes.
Knows how to connect and disconnect nodes and serialize the graph.
Create a directed edge from Node follower to Node following.
Return the node for the given node_id.
Return nodes for the given node_ids.
Determine if there is a directed edge from Node follower to Node following.
Save (upsert) a node into the collection.
Destroy a directed edge from Node follower to Node following.
Bases: thread._local