a python threadding extension meant to boost threading capabilities
Project description
PyThreadFlow V0.0.1.dev1
PyThreadFlow is a Python threading extension that simplifies and enhances threading functionality by providing an init call, an event loop, and an exit call. These additions make multithreading in Python easier and more reliable.
How can I download PyThreadFlow?
for the moment, you can download it using this command:
pip install -i https://test.pypi.org/simple/ PyThreadFlow==0.0.4.dev2
How can I use PyThreadFlow?
To utilize PyThreadFlow, you can follow the example below:
from pyThreadFlow.threadFlowManager import advthreads
# ...
t = advthreads.basicEventThread(mainLoop=main, openLoop=oloop, exitloop=eloop, daemon=True)
t.start()
# ...
In the code snippet above, you import the advthreads
module from pyThreadFlow.threadFlowManager
and instantiate a Threads
object named t
. The Threads
object requires several parameters: mainLoop
, openLoop
, exitloop
, and daemon
. however there are some non-required parameters that speak for themselves. Once the object is created, you can call the start()
method to initiate the thread execution.
PyThreadFlow aims to maintain a syntax similar to regular threads, and it tries to minimize the reliance on the base threading library. However, there are certain scenarios where using the base threading library becomes necessary.
How can I contribute to PyThreadFlow?
If you are interested in contributing to PyThreadFlow, please refer to the official documentation here for detailed guidelines and instructions. The documentation provides information on how you can get involved and contribute to the project's development.
Changes
-
Added framework for legacy, deprecated, and more wrappers: This update includes the addition of a framework that handles legacy, deprecated, and other types of wrappers. This framework allows for better management and organization of different types of wrappers within the system. By implementing this framework, it becomes easier to identify and handle code that needs to be phased out or replaced due to being outdated or no longer supported. It also facilitates the introduction of new wrappers or modifications to existing ones.
-
Added framework for the thread multi-thread parts: Another significant addition is the implementation of a framework specifically designed to handle the multi-threading aspects of the code. This framework provides the necessary structure and functionality to support multi-threaded operations within the application. While the framework has been implemented, the next step is to incorporate the appropriate callers that will utilize and interact with the multi-threading capabilities. Once these callers are added, the system will be able to effectively leverage multiple threads for concurrent execution, improving performance and efficiency.
-
Added check in
__init__
so it can't be run directly: A check has been introduced in the__init__
function to prevent it from being executed directly. This modification ensures that the initialization process follows the correct procedure and is triggered through the appropriate mechanisms. By disallowing direct execution of the__init__
function, potential errors or unintended consequences arising from manual invocations can be avoided. This check adds an extra layer of safety and helps maintain the integrity and stability of the codebase.
TODOs
-
Add functionality for the init, running, and exit calls for the threading flow manager: The next task is to implement the necessary functionality for the initialization (
init
), running, and exit calls within the threading flow manager. This involves defining and integrating the required code to properly handle the initialization phase, manage the execution of threaded processes, and handle the clean-up and termination of threads upon program completion. Once these functionalities are in place, the threading flow manager will be able to orchestrate and control the multi-threading operations effectively. -
Find more bugs to report: As an ongoing process of improving the system's reliability and performance, the task of identifying and reporting bugs remains a priority. By actively searching for and documenting any existing issues or glitches in the codebase, it becomes possible to address them systematically and enhance the overall quality of the software. This task involves thorough testing, debugging, and reporting of any anomalies or unexpected behaviors encountered during the development and usage of the application. By continuously striving to find and resolve bugs, the stability and user experience of the software can be significantly improved.
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
File details
Details for the file pythreadflow-0.0.0.dev1.tar.gz
.
File metadata
- Download URL: pythreadflow-0.0.0.dev1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ac965299c940695a02d23715540118dfaeefe5d7680fb0c92714e4c4a816f8 |
|
MD5 | d8bc5549340629653c35a02c375f5cc1 |
|
BLAKE2b-256 | 6985f0c075d69b172bce972cf5d9aa8869da56e739a96ea5c705005ea2af6382 |
File details
Details for the file pythreadflow-0.0.0.dev1-py3-none-any.whl
.
File metadata
- Download URL: pythreadflow-0.0.0.dev1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077e1fdcefa02ef9671f956b65fc9198a09a01d53ec258c32db88cd6ea219a78 |
|
MD5 | e61ee77057dd8f7a2ece0da37353f0dd |
|
BLAKE2b-256 | 96d9eda2a0a3a4feb8c19328f105551914e8a3d2bd82f939d55dac569dd8ea85 |