Provenance¶
Extract provenance information from the repository.
Activities¶
- class renku.core.models.provenance.activity.Activity(*args, **kwargs)[source]¶
Represent an activity in the repository.
- compare_to(other)[source]¶
Compare execution date with another activity; return a positive value if self is executed after the other.
- freeze()¶
Set immutable property.
- classmethod from_plan(plan, client_dispatcher, project_gateway, started_at_time, ended_at_time, annotations=None, update_commits=False)[source]¶
Convert a
Plan
to aActivity
.
- has_identical_inputs_and_outputs_as(other)[source]¶
Return true if all input and outputs paths are identical regardless of the order.
- property immutable¶
Return if object is immutable.
- property plan_with_values[source]¶
Get a copy of the associated plan with values from ParameterValues applied.
- reassign_oid()¶
Reassign
oid
(after assigning a new identifier for example).
- class renku.core.models.provenance.activity.ActivityCollection(*args, **kwargs)[source]¶
Represent a list of activities.
- freeze()¶
Set immutable property.
- property immutable¶
Return if object is immutable.
- reassign_oid()¶
Reassign
oid
(after assigning a new identifier for example).
- class renku.core.models.provenance.activity.Association(*, agent=None, id, plan)[source]¶
Assign responsibility to an agent for an activity.
- class renku.core.models.provenance.activity.Generation(*, entity, id)[source]¶
Represent an act of generating a path.
- classmethod make_instance(instance)¶
Return a cached instance if available otherwise create an instance from the given parameters.
Entities¶
- class renku.core.models.entity.Entity(*, checksum, id=None, path, **kwargs)[source]¶
Represent a file.
- classmethod make_instance(instance)¶
Return a cached instance if available otherwise create an instance from the given parameters.
- class renku.core.models.entity.Collection(*, checksum, id=None, path, members=None)[source]¶
Represent a directory with files.
- static generate_id(checksum, path)¶
Generate an Entity identifier.
- classmethod make_instance(instance)¶
Return a cached instance if available otherwise create an instance from the given parameters.
Agents¶
- class renku.core.models.provenance.agent.Person(*, affiliation=None, alternate_name=None, email=None, id=None, name)[source]¶
Represent a person.
- property full_identity¶
Return name, email, and affiliation.
- classmethod make_instance(**kwargs)¶
Instantiate from the given parameters.
- property short_name¶
Gives full name in short form.