timer-for-python 0.7.2__py3-none-any.whl → 0.7.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
timer/error/__init__.py CHANGED
@@ -10,14 +10,14 @@ def start_controller(thread: str | None) -> None:
10
10
  if helper.thread.is_none(thread):
11
11
  print(f"{Color.YELLOW}Timer is running. Use .stop() to stop it.{Color.OFF}")
12
12
  else:
13
- print(f"{Color.YELLOW}Timer for thread {thread} is running. Use .stop({thread = }) to stop it.{Color.OFF}")
13
+ print(f"{Color.YELLOW}Timer for thread {thread} is running. Use .stop({thread=}) to stop it.{Color.OFF}")
14
14
 
15
15
 
16
16
  def stop_controller(timer: TimerBase, thread: str | None) -> None:
17
17
  if helper.thread.is_none(thread):
18
18
  print(f"{Color.YELLOW}Timer is not running. Use .start() to start it.{Color.OFF}")
19
19
  else:
20
- print(f"{Color.YELLOW}Timer for thread {thread} is not running. Use .start({thread = }) to start it.{Color.OFF}")
20
+ print(f"{Color.YELLOW}Timer for thread {thread} is not running. Use .start({thread=}) to start it.{Color.OFF}")
21
21
  if len(timer.threads) > 0:
22
22
  open_threads = [thread_item.name for thread_item in timer.threads]
23
23
  print(f"Or maybe you aren't stopping the right thread? Currently open threads: {', '.join(open_threads)}")
timer/version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version_info__ = (0, 7, 2)
1
+ __version_info__ = (0, 7, 4)
2
2
  __version__ = ".".join(map(str, __version_info__))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: timer-for-python
3
- Version: 0.7.2
3
+ Version: 0.7.4
4
4
  Summary: Timer for Python
5
5
  Home-page: https://jakob-bagterp.github.io/timer-for-python/
6
6
  Download-URL: https://pypi.org/project/timer-for-python/
@@ -19,23 +19,24 @@ Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
22
23
  Classifier: License :: OSI Approved :: MIT License
23
24
  Classifier: Operating System :: OS Independent
24
25
  Requires-Python: >=3.10
25
26
  Description-Content-Type: text/markdown
26
27
  License-File: LICENSE.md
27
- Requires-Dist: colorist ==1.7.0
28
+ Requires-Dist: colorist==1.8.0
28
29
  Provides-Extra: testing
29
- Requires-Dist: coverage ==7.3.2 ; extra == 'testing'
30
- Requires-Dist: flake8 ==6.1.0 ; extra == 'testing'
31
- Requires-Dist: mypy ==1.7.1 ; extra == 'testing'
32
- Requires-Dist: numpy ==1.26.2 ; extra == 'testing'
33
- Requires-Dist: pytest ==7.4.3 ; extra == 'testing'
34
- Requires-Dist: pytest-cov ==4.1.0 ; extra == 'testing'
35
- Requires-Dist: tox ==4.11.3 ; extra == 'testing'
36
-
37
- [![Latest version](https://img.shields.io/static/v1?label=version&message=0.7.2&color=yellowgreen)](https://github.com/jakob-bagterp/timer-for-python/releases/latest)
38
- [![Python 3.10 | 3.11 | 3.12+](https://img.shields.io/static/v1?label=python&message=3.10%20|%203.11%20|%203.12%2B&color=blueviolet)](https://www.python.org)
30
+ Requires-Dist: coverage==7.6.1; extra == "testing"
31
+ Requires-Dist: flake8==7.1.1; extra == "testing"
32
+ Requires-Dist: mypy==1.11.2; extra == "testing"
33
+ Requires-Dist: numpy==2.1.2; extra == "testing"
34
+ Requires-Dist: pytest==8.3.3; extra == "testing"
35
+ Requires-Dist: pytest-cov==5.0.0; extra == "testing"
36
+ Requires-Dist: tox==4.21.2; extra == "testing"
37
+
38
+ [![Latest version](https://img.shields.io/static/v1?label=version&message=0.7.4&color=yellowgreen)](https://github.com/jakob-bagterp/timer-for-python/releases/latest)
39
+ [![Python 3.10 | 3.11 | 3.12 | 3.13+](https://img.shields.io/static/v1?label=python&message=3.10%20|%203.11%20|%203.12%20|%203.13%2B&color=blueviolet)](https://www.python.org)
39
40
  [![MIT license](https://img.shields.io/static/v1?label=license&message=MIT&color=blue)](https://github.com/jakob-bagterp/timer-for-python/blob/master/LICENSE.md)
40
41
  [![Codecov](https://codecov.io/gh/jakob-bagterp/timer-for-python/branch/master/graph/badge.svg?token=P4IT8WQO0R)](https://codecov.io/gh/jakob-bagterp/timer-for-python)
41
42
  [![CodeQL](https://github.com/jakob-bagterp/timer-for-python/actions/workflows/codeql.yml/badge.svg)](https://github.com/jakob-bagterp/timer-for-python/actions/workflows/codeql.yml)
@@ -1,17 +1,12 @@
1
1
  timer/__init__.py,sha256=VP-n29fPZdottjrmQYnt4cYVH5Dq6Bx3CQ5-dlDPK9E,161
2
2
  timer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- timer/version.py,sha256=ZzytLkQAeEE4xcWt-XkyBnG0gum-KFleGWpUhBgHZQQ,80
4
- timer/.pytest_cache/.gitignore,sha256=Ptcxtl0GFQwTji2tsL4Gl1UIiKa0frjEXsya26i46b0,37
5
- timer/.pytest_cache/CACHEDIR.TAG,sha256=N9yI75oKvt2-gQU6bdj9-xOvthMEXqHrSlyBWnSjveQ,191
6
- timer/.pytest_cache/README.md,sha256=c_1vzN2ALEGaay2YPWwxc7fal1WKxLWJ7ewt_kQ9ua0,302
7
- timer/.pytest_cache/v/cache/nodeids,sha256=T1PNoYwrqgwDVLtfmj7L5e0Sq02OEbqHPC8RFhICuUU,2
8
- timer/.pytest_cache/v/cache/stepwise,sha256=T1PNoYwrqgwDVLtfmj7L5e0Sq02OEbqHPC8RFhICuUU,2
3
+ timer/version.py,sha256=lFkWzs2eqXly4irbhym5PfprDubOlmzICdodJrXN1VA,80
9
4
  timer/constant/__init__.py,sha256=0e0W-lRc5xtJ9LSsEyq4o6zKckaRweAvrntmFE1gisE,67
10
5
  timer/constant/decimals.py,sha256=9SKe-IbFIbXY-Mps6bSYBqaWuxLiRlsa3rNmT_oDbiM,53
11
6
  timer/constant/various.py,sha256=v_UX49eVff3JnXs_VgS0luKkCc3iIH_EUalPxNt8-YQ,117
12
7
  timer/controller/__init__.py,sha256=lN-rF2nX4pCZ-Z8l7kJTlk4mmsInfLZ52NY4S6Wf6A0,1662
13
8
  timer/decorator/benchmark.py,sha256=HgZZpXyqZ4SB992LNEYeH--k4krLBkstgvih3l40Hco,378
14
- timer/error/__init__.py,sha256=RkuZ1iV8vrpHelnev7W81onsJKqUOTzIKIZD2uxJ_-w,1185
9
+ timer/error/__init__.py,sha256=H63gq-IevWXo95V5-MqqUzZhmciyvGfT7QizebFxgQA,1181
15
10
  timer/helper/__init__.py,sha256=kYe7PVpjG7UeamvAvohgiIleefsGslx1tJvuNO5_oSQ,117
16
11
  timer/helper/decimals.py,sha256=4FnEfWla-cyk12IYVdm7Me_T2FT6eAIft_uhMUmj4mo,1568
17
12
  timer/helper/output.py,sha256=6hHHg6tTiFYpf5ckxIwimmHsQJHQ6QEFywfeSAjrROA,1641
@@ -24,13 +19,8 @@ timer/model/thread_item.py,sha256=4c6cOAvTuy1Yi30oG46nHM84Bgu3c5aj7vTKjPyVQE8,21
24
19
  timer/model/time_fractions.py,sha256=yweResJFS7NutBoLWZYKC1f7GIemwWVIiEc04xsxOno,1298
25
20
  timer/model/timer.py,sha256=2_zTd3IzSnQ_hKDSazJdNlTVAbmm1p7fhIrpJHx_uw4,7017
26
21
  timer/model/timer_base.py,sha256=SjDT1qu3wR9c89VmIpScXEDWOI0My5mbboLD6A7jir0,557
27
- timer/model/.pytest_cache/.gitignore,sha256=Ptcxtl0GFQwTji2tsL4Gl1UIiKa0frjEXsya26i46b0,37
28
- timer/model/.pytest_cache/CACHEDIR.TAG,sha256=N9yI75oKvt2-gQU6bdj9-xOvthMEXqHrSlyBWnSjveQ,191
29
- timer/model/.pytest_cache/README.md,sha256=c_1vzN2ALEGaay2YPWwxc7fal1WKxLWJ7ewt_kQ9ua0,302
30
- timer/model/.pytest_cache/v/cache/nodeids,sha256=T1PNoYwrqgwDVLtfmj7L5e0Sq02OEbqHPC8RFhICuUU,2
31
- timer/model/.pytest_cache/v/cache/stepwise,sha256=T1PNoYwrqgwDVLtfmj7L5e0Sq02OEbqHPC8RFhICuUU,2
32
- timer_for_python-0.7.2.dist-info/LICENSE.md,sha256=bV6mZhoYf6kHYGgsG3ArjpF_tjOweaI7QZKRvmzkUMI,1085
33
- timer_for_python-0.7.2.dist-info/METADATA,sha256=8-4kYFvKMTjgE6g8nkyxFpJTNpjAvi3uc7Du__xlH7w,6853
34
- timer_for_python-0.7.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
35
- timer_for_python-0.7.2.dist-info/top_level.txt,sha256=mbqaJ4u4Wh38RQxq5PFpTOu6h1EcSHjwI2bqdDYCRAI,6
36
- timer_for_python-0.7.2.dist-info/RECORD,,
22
+ timer_for_python-0.7.4.dist-info/LICENSE.md,sha256=bV6mZhoYf6kHYGgsG3ArjpF_tjOweaI7QZKRvmzkUMI,1085
23
+ timer_for_python-0.7.4.dist-info/METADATA,sha256=bSp7odihITduJ65olrriDIjO-yKvYariclmFmzKEs8o,6907
24
+ timer_for_python-0.7.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
25
+ timer_for_python-0.7.4.dist-info/top_level.txt,sha256=mbqaJ4u4Wh38RQxq5PFpTOu6h1EcSHjwI2bqdDYCRAI,6
26
+ timer_for_python-0.7.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,2 +0,0 @@
1
- # Created by pytest automatically.
2
- *
@@ -1,4 +0,0 @@
1
- Signature: 8a477f597d28d172789f06886806bc55
2
- # This file is a cache directory tag created by pytest.
3
- # For information about cache directory tags, see:
4
- # https://bford.info/cachedir/spec.html
@@ -1,8 +0,0 @@
1
- # pytest cache directory #
2
-
3
- This directory contains data from the pytest's cache plugin,
4
- which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
5
-
6
- **Do not** commit this to version control.
7
-
8
- See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- []
@@ -1,2 +0,0 @@
1
- # Created by pytest automatically.
2
- *
@@ -1,4 +0,0 @@
1
- Signature: 8a477f597d28d172789f06886806bc55
2
- # This file is a cache directory tag created by pytest.
3
- # For information about cache directory tags, see:
4
- # https://bford.info/cachedir/spec.html
@@ -1,8 +0,0 @@
1
- # pytest cache directory #
2
-
3
- This directory contains data from the pytest's cache plugin,
4
- which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
5
-
6
- **Do not** commit this to version control.
7
-
8
- See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
@@ -1 +0,0 @@
1
- []
@@ -1 +0,0 @@
1
- []