Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multiprocess Maybe #10

Merged
merged 8 commits into from
Oct 23, 2022
Merged

Add Multiprocess Maybe #10

merged 8 commits into from
Oct 23, 2022

Conversation

Wason1797
Copy link
Owner

  • QueueAutomator now includes a new more abstracted interface.

* I decided to start using mypy to typecheck the library
* Move the contents of main.py to automator.py so the naming was clearer

* Also move the example outside the src folder of the library as it is not library code

* Add support to insert data to a queue other than the initial one

* Fix bug in the validate_non_empty_args helper

* add a reset() api to clear the QueueAutomator state
* This multiprocessing helper uses the Maybe pattern as inspiration to chain several function calls using multiprocessing

* It wraps a QueueAutomator instance and provides a different style API which could be cleaner than having a bunch of decorators and manually defining queue names.

* This is a work in progress, and it is improving with every iteration
* Showcase the MultiprocessingMaybe capabilities in an example

-> insert to intermediate queues
-> replace None or values matching a predicate with the default value
-> Prevent crashes for None values not executing the function when the input matches a predicate
* Include the first round of tests for the queue automator, this will ensure that the main functionality does not break if changed
* This is to exclude build and dist directories from typechecking
@Wason1797 Wason1797 merged commit 2d2cddf into develop Oct 23, 2022
@Wason1797 Wason1797 deleted the feature/v0.1.0rc-features branch October 23, 2022 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant