-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* save * save * start_workers * worker * output queues * test worker * save * Stage * FromIterable * Map * flat_map * filter * each * finish process * thread * init task * finish task queue * run_coroutine_threadsafe * supervisor * stage * cleanup * initial map implementation * each * run=True mistery solved * finish async tests * add todo * fix typo * test_from_to_iterable * refactor * port process filter * finish port * port thread * update task to new api * simplify build on Stage * task: port Worker + Stage * rename process tests * initial task migration * finish process + thread + task * partial sync port * finish sync port * implement sync sorted using sorted * type iter_dependencies * update readme * docs init * clean up docs * docs tweaks * remove old code * update docs * 0.4.0
- Loading branch information
Showing
170 changed files
with
11,136 additions
and
5,799 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,4 +108,5 @@ XDG_CACHE_HOME | |
|
||
# custom | ||
.vscode | ||
/scratch.py | ||
/scratch.py | ||
/test*.* |
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,26 @@ | ||
# Changelog | ||
|
||
## [0.4.0] - 2020-06-21 | ||
* Big internal refactor: | ||
* Reduces the risk of potential zombie workers | ||
* New internal Worker and Supervisor classes which make code more readable / maintainable. | ||
* Code is now split into individual files for each API function to make contribution easier and improve maintainability. | ||
* API Reference docs are now shown per function and a new Overview page was created per module. | ||
|
||
#### Breaking Changes | ||
* `maxsize` arguement is removed from all `from_iterable` functions as it was not used. | ||
* `worker_constructor` parameter was removed from all `from_iterable` functions in favor of the simpler `use_thread` argument. | ||
|
||
## [0.3.0] - 2020-04-05 | ||
### Adds | ||
* `ordered` function in all modules, this orders output elements based on the order of creation on the source iterable. | ||
* Additional options and rules for the depending injection mechanism. See [Advanced Usage](https://cgarciae.github.io/pypeln/advanced/#dependency-injection). | ||
* All `pl.*.Stage` classes now inherit from `pl.BaseStage`. | ||
|
||
## [0.2.7] - 2020-03-14 | ||
### Adds | ||
* `timeout` parameter to most funtions in all modules, this stops code execution after a given amount of time if the task has not been completed. | ||
|
||
## [0.2.6] - 2020-03-04 | ||
### Adds | ||
* `sync` module which follows Pypeln's API but executes everything synchronously using python generators, meant for debugging purposes. | ||
|
||
## [0.2.5] - 2020-03-03 | ||
### Fixes | ||
* Fixed critical bug (#29) related to `**kwarg` arguments created in `on_start` not being passed to `on_done`. |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# pl.process | ||
|
||
::: pypeln.process | ||
selection: | ||
members: | ||
- na | ||
|
||
|
||
### Members | ||
* [concat](concat.md) | ||
* [each](each.md) | ||
* [filter](filter.md) | ||
* [flat_map](flat_map.md) | ||
* [from_iterable](from_iterable.md) | ||
* [map](map.md) | ||
* [ordered](ordered.md) | ||
* [run](run.md) | ||
* [to_iterable](to_iterable.md) | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.concat | ||
|
||
::: pypeln.process.concat |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.each | ||
|
||
::: pypeln.process.each |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.filter | ||
|
||
::: pypeln.process.filter |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.flat_map | ||
|
||
::: pypeln.process.flat_map |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.from_iterable | ||
|
||
::: pypeln.process.from_iterable |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.map | ||
|
||
::: pypeln.process.map |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.ordered | ||
|
||
::: pypeln.process.ordered |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.run | ||
|
||
::: pypeln.process.run |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.process.to_iterable | ||
|
||
::: pypeln.process.to_iterable |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# pl.sync | ||
|
||
::: pypeln.sync | ||
selection: | ||
members: | ||
- na | ||
|
||
|
||
### Members | ||
* [concat](concat.md) | ||
* [each](each.md) | ||
* [filter](filter.md) | ||
* [flat_map](flat_map.md) | ||
* [from_iterable](from_iterable.md) | ||
* [map](map.md) | ||
* [ordered](ordered.md) | ||
* [run](run.md) | ||
* [to_iterable](to_iterable.md) | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.concat | ||
|
||
::: pypeln.sync.concat |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.each | ||
|
||
::: pypeln.sync.each |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.filter | ||
|
||
::: pypeln.sync.filter |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.flat_map | ||
|
||
::: pypeln.sync.flat_map |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.from_iterable | ||
|
||
::: pypeln.sync.from_iterable |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.map | ||
|
||
::: pypeln.sync.map |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.ordered | ||
|
||
::: pypeln.sync.ordered |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.run | ||
|
||
::: pypeln.sync.run |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.sync.to_iterable | ||
|
||
::: pypeln.sync.to_iterable |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# pl.task | ||
|
||
::: pypeln.task | ||
selection: | ||
members: | ||
- na | ||
|
||
|
||
### Members | ||
* [concat](concat.md) | ||
* [each](each.md) | ||
* [filter](filter.md) | ||
* [flat_map](flat_map.md) | ||
* [from_iterable](from_iterable.md) | ||
* [map](map.md) | ||
* [ordered](ordered.md) | ||
* [run](run.md) | ||
* [to_iterable](to_iterable.md) | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.concat | ||
|
||
::: pypeln.task.concat |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.each | ||
|
||
::: pypeln.task.each |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.filter | ||
|
||
::: pypeln.task.filter |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.flat_map | ||
|
||
::: pypeln.task.flat_map |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.from_iterable | ||
|
||
::: pypeln.task.from_iterable |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.map | ||
|
||
::: pypeln.task.map |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.ordered | ||
|
||
::: pypeln.task.ordered |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.run | ||
|
||
::: pypeln.task.run |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.task.to_iterable | ||
|
||
::: pypeln.task.to_iterable |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# pl.thread | ||
|
||
::: pypeln.thread | ||
selection: | ||
members: | ||
- na | ||
|
||
|
||
### Members | ||
* [concat](concat.md) | ||
* [each](each.md) | ||
* [filter](filter.md) | ||
* [flat_map](flat_map.md) | ||
* [from_iterable](from_iterable.md) | ||
* [map](map.md) | ||
* [ordered](ordered.md) | ||
* [run](run.md) | ||
* [to_iterable](to_iterable.md) | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.thread.concat | ||
|
||
::: pypeln.thread.concat |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
# pl.thread.each | ||
|
||
::: pypeln.thread.each |
Oops, something went wrong.