Queue-automator

Latest version: v0.1.0

Safety actively analyzes 681926 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.0

What's Changed
* Add Multiprocess Maybe by Wason1797 in https://github.com/Wason1797/QueueAutomator/pull/10


**Full Changelog**: https://github.com/Wason1797/QueueAutomator/commits/v0.1.0

0.0.2

What's Changed

* Fix potential issue with using a dictionary instead of a tuple to keep track of processes per queue

0.0.1

This is the first release of queue-automator

Features:

- Create multiprocessing pipelines of any length easily
- A simple to use decorator API that registers your working functions

python
from queue_automator import QueueAutomator

Create an instance of QueueAutomator()
automator = QueueAutomator()

automator.register_as_worker_function(process_count=2)
def do_work(item: int) -> int:
sleep(2)
result = item*2
return result

if __name__ == '__main__':
input_data = range(30)

Always set your input data before calling .run()
automator.set_input_data(input_data)
results = automator.run()
print(results)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.