Skip to main content

spec.Consumer

spec.Consumer(ref, kind, note='')

Something that depends on a unit and would notice its deletion.

Attributes

Name Type Description
ref str A repository-relative path, or for external a free text (written <repo>:<path> for a file of a downstream repository).
kind str code, test or doc (a file of this repository) or external (anything else: a downstream file, a scheduled run, a person). Only the first three are checked against the tree.
note str What the consumer relies on.

Examples

from babregen import Consumer

consumer = Consumer(ref="src/samplepkg/app/main.py", kind="code", note="sums values")
print(consumer.ref, consumer.kind)
src/samplepkg/app/main.py code