This module provides a general set of utilities for implementing a set of dependencies, solving them and injecting context and cache.
Constructs a dependency-handling processor function.
Parameters: |
|
---|
Represents a set of Dependent. This class behaves like a set.
Parameters: |
|
---|
The following functions provide a set of utilities for working with Dependent and collections of Dependent.
Calculates a dependent’s value by solving dependencies.
Parameters: |
|
---|---|
Returns: | The result of executing the dependents with all dependencies resolved. If a single dependent is provided, the value will be returned. If a collection of dependents is provided, a generator of values will be returned |
Calculates a dependent’s value by solving dependencies.
Parameters: |
|
---|---|
Returns: | A generator over all dependents in the dependency tree with each dependent occurring only once |
Expands root dependencies. These are dependents at the bottom of the tree – revscoring.Dependent with no dependencies of their own.
Parameters: |
|
---|---|
Returns: | A generator over root dependencies |
Returns a string representation of the the dependency tree for a single revscoring.Dependent.
Parameters: |
|
---|---|
Returns: | None |
Represents a contextual space for solving dependencies
Parameters: |
|
---|
Digs up the root dependents within the context.
See dig() for call signature.
Returns a string representing the tree structure of a dependent’s dependencies.
See draw() for call signature.