mirror of
https://github.com/zoriya/Autopipe.git
synced 2026-05-24 11:14:22 +00:00
17 lines
292 B
Python
17 lines
292 B
Python
from autopipe.models import Pipe, APData
|
|
|
|
|
|
class TeePipe(Pipe):
|
|
def __init__(self, *outputs):
|
|
self.outputs = outputs
|
|
|
|
@property
|
|
def name(self):
|
|
return "Tee"
|
|
|
|
def pipe(self, data: APData) -> APData:
|
|
super().pipe(data)
|
|
for output in self.outputs:
|
|
output.pipe(data)
|
|
return data
|