-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from huseyinyilmaz/master
pep8 issues, README. etc.
- Loading branch information
Showing
7 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
from octavious.pipeline import Pipeline | ||
from octavious.utils import pipeline, processor, plugin, parallelizer | ||
from octavious.processor import ManyToOneProcessor, PipelineProcessor | ||
|
||
|
||
cnj_processor = processor('examples.simple.processes.chucknjoke') | ||
if __name__ == '__main__': | ||
|
||
cnj_pipeline = pipeline( | ||
plugin('examples.simple.plugins.echo'), | ||
plugin('examples.simple.plugins.dictdigger', 'value.joke'), | ||
plugin('examples.simple.plugins.jsondeserializer'), | ||
) | ||
cnj_processor = processor('examples.simple.processes.chucknjoke') | ||
|
||
cnj_parallelizer = parallelizer('octavious.parallelizer.mp') | ||
cnj_pipeline = pipeline( | ||
plugin('examples.simple.plugins.echo'), | ||
plugin('examples.simple.plugins.dictdigger', 'value.joke'), | ||
plugin('examples.simple.plugins.jsondeserializer')) | ||
|
||
onetomany = ManyToOneProcessor(PipelineProcessor(cnj_processor, cnj_pipeline), | ||
cnj_parallelizer) | ||
cnj_parallelizer = parallelizer('octavious.parallelizer.mp') | ||
|
||
onetomany(range(1, 4)) | ||
onetomany = ManyToOneProcessor(PipelineProcessor(cnj_processor, | ||
cnj_pipeline), | ||
cnj_parallelizer) | ||
|
||
onetomany(range(1, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import json | ||
|
||
from octavious.pipeline import Plugin | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters