Skip to content

Commit cbd2bcc

Browse files
committed
0.0.7: Provide start, end, & runtime duration logging for thread
- ==> If you want to mute logging this message to the terminal for all ThreadWithResult instances, set the `log_thread_status` class attribute to False: ``` ThreadWithResult.log_thread_status = False ``` - ==> If you only want to mute logging this message to the terminal for a specific instance of ThreadWithResult, set the `log_thread_status` attribute for the specific instance to False: ``` thread_with_result_instance.log_thread_status = False ``` - Keep in mind python prioritizes the `log_thread_status` instance attribute over the `log_thread_status` class attribute! - ==> If you want to log this message to an output file (or multiple output files) for all ThreadWithResult instances, set the `log_files` class attribute to an iterable object contatining objects that support the `.write()` method: ``` ThreadWithResult.log_files = [file_object_1, file_object_2] ``` - ==> If you only want to log this message to an output file (or multiple output files) for a specific instance of ThreadWithResult, set the `log_files` attribute for the specific instance to an iterable object contatining objects that support the `.write()` method: ``` thread_with_result_instance.log_files = [file_object_1, file_object_2] ``` - Keep in mind python prioritizes the `log_files` instance attribute over the `log_files` class attribute! - ==> To see a more detailed explanation, see the updated documentation with ``` import save_thread_result help(save_thread_result) ``` - release 0.0.7 also removes the irrelevant "Operating System :: RISC OS" PyPI classifier
1 parent b33ff57 commit cbd2bcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/save_thread_result/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from datetime import datetime
1010

1111

12-
__version__ = '0.0.6'
12+
__version__ = '0.0.7'
1313
__author__ = 'Shail-Shouryya'
1414
__email__ = '[email protected]'
1515
__development_status__ = '4 - Beta'

python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# 3. MAINTENANCE version when they make backwards-compatible bug fixes.
3232
# Adopting this approach as a project author allows users to make use of “compatible release” specifiers, where name ~= X.Y requires at least release X.Y, but also allows any later release with a matching MAJOR version.
3333
# Python projects adopting semantic versioning should abide by clauses 1-8 of the Semantic Versioning 2.0.0 specification: https://semver.org/.
34-
version = '0.0.6',
34+
version = '0.0.7',
3535
name = 'save-thread-result',
3636
description = 'Simple subclass wrapper around `threading.Thread` to get the return value from a thread in python. Exact same interface as `threading.Thread`! 🌟 Star this repo if you found it useful! 🌟',
3737
long_description = long_description,

0 commit comments

Comments
 (0)