An easy to use module for turning functions into daemons with queueing capabilities.
Project description
JovQueue
JovQueue is a python module created to add queue functionality to any function, allowing the user to also specify the amount of workers they want.
Features
JovQueue Class
- init:
- Inputs:
- thread_count (0-99): the amount of daemons the user wants to act as workers for their function
- target_func (any function): the function for which the user wants to add a queue functionality
- Actions:
- This constructor initializes all of the daemons (specified by thread_count), and augments the target_func code to enable it to work with the queue (this queue is local to the instance of the JovQueue class)
- Inputs:
- run:
- Inputs:
- args: the arguments for the target_func call
- Actions:
- This function will put the args value into a queue which will then be ran by the next free daemon
- Inputs:
Installation
JovQueue can be installed via pip: 'pip install JovQueue'
Example
A (very simple) example of using JovQueue can be found in the Examples directory of the JovQueue repo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jovqueue-1.0.0.tar.gz.
File metadata
- Download URL: jovqueue-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4be7d69dc2af223f692f45db59db906acb309c88038e2155abc313a4bd95291b
|
|
| MD5 |
6b9e1ed0a5fc41db42316f81a1bb4f49
|
|
| BLAKE2b-256 |
f6ef539adfcba0c9c3cea9071037b15295310037ba88aeddb22f4d5655f95422
|
File details
Details for the file jovqueue-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jovqueue-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb47c035d0a6691e7e382b681dcc4dec7c077148bd6746475f0ee09c395f3e1b
|
|
| MD5 |
66528b061ed21d69689fd1d80fb5a4cd
|
|
| BLAKE2b-256 |
fc3aa2acde8ff8c61ead7574fe71438d402781ebed5ac34095c8c3ea9b496acc
|