pytimer 0.0.14__tar.gz → 0.0.16__tar.gz
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.
- pytimer-0.0.16/LICENSE +21 -0
- {pytimer-0.0.14 → pytimer-0.0.16}/PKG-INFO +22 -24
- {pytimer-0.0.14 → pytimer-0.0.16}/README.rst +2 -2
- {pytimer-0.0.14 → pytimer-0.0.16}/pytimer/pytimer.py +3 -2
- pytimer-0.0.16/pytimer/static.py +5 -0
- {pytimer-0.0.14 → pytimer-0.0.16}/pytimer.egg-info/PKG-INFO +22 -24
- {pytimer-0.0.14 → pytimer-0.0.16}/pytimer.egg-info/SOURCES.txt +2 -4
- {pytimer-0.0.14 → pytimer-0.0.16}/setup.cfg +3 -0
- pytimer-0.0.16/setup.py +51 -0
- pytimer-0.0.14/MANIFEST.in +0 -2
- pytimer-0.0.14/pytimer/version.py +0 -2
- pytimer-0.0.14/pytimer.egg-info/entry_points.txt +0 -3
- pytimer-0.0.14/pytimer.egg-info/requires.txt +0 -2
- pytimer-0.0.14/setup.py +0 -62
- {pytimer-0.0.14 → pytimer-0.0.16}/pytimer/__init__.py +0 -0
- {pytimer-0.0.14 → pytimer-0.0.16}/pytimer.egg-info/dependency_links.txt +0 -0
- {pytimer-0.0.14 → pytimer-0.0.16}/pytimer.egg-info/top_level.txt +0 -0
pytimer-0.0.16/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Mark Veltzer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pytimer
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.16
|
|
4
4
|
Summary: pytimer is an easy to use timer
|
|
5
5
|
Home-page: https://veltzer.github.io/pytimer
|
|
6
|
+
Download-URL: https://github.com/veltzer/pytimer
|
|
6
7
|
Author: Mark Veltzer
|
|
7
8
|
Author-email: mark.veltzer@gmail.com
|
|
8
9
|
Maintainer: Mark Veltzer
|
|
9
10
|
Maintainer-email: mark.veltzer@gmail.com
|
|
10
11
|
License: MIT
|
|
11
|
-
Download-URL: https://github.com/veltzer/pytimer
|
|
12
|
-
Description: =========
|
|
13
|
-
*pytimer*
|
|
14
|
-
=========
|
|
15
|
-
|
|
16
|
-
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
17
|
-
|
|
18
|
-
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
19
|
-
|
|
20
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
21
|
-
|
|
22
|
-
project website: https://veltzer.github.io/pytimer
|
|
23
|
-
|
|
24
|
-
author: Mark Veltzer
|
|
25
|
-
|
|
26
|
-
version: 0.0.14
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
12
|
Keywords: python,timing,time,context,manager,utility
|
|
31
13
|
Platform: python3
|
|
32
14
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -35,10 +17,26 @@ Classifier: Operating System :: OS Independent
|
|
|
35
17
|
Classifier: Programming Language :: Python
|
|
36
18
|
Classifier: Programming Language :: Python :: 3
|
|
37
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
-
Classifier: Programming Language :: Python :: 3.
|
|
39
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
40
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
41
21
|
Classifier: Topic :: Utilities
|
|
42
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
43
|
-
Requires-Python: >=3.6
|
|
44
23
|
Description-Content-Type: text/x-rst
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
|
|
26
|
+
=========
|
|
27
|
+
*pytimer*
|
|
28
|
+
=========
|
|
29
|
+
|
|
30
|
+
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
31
|
+
|
|
32
|
+
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
33
|
+
|
|
34
|
+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
35
|
+
|
|
36
|
+
project website: https://veltzer.github.io/pytimer
|
|
37
|
+
|
|
38
|
+
author: Mark Veltzer
|
|
39
|
+
|
|
40
|
+
version: 0.0.16
|
|
41
|
+
|
|
42
|
+
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
|
|
@@ -4,6 +4,7 @@ import time
|
|
|
4
4
|
class Timer:
|
|
5
5
|
def __init__(self, do_print=True, do_title=None):
|
|
6
6
|
self.start_time = None
|
|
7
|
+
self.end_time = None
|
|
7
8
|
self.print = do_print
|
|
8
9
|
self.title = do_title
|
|
9
10
|
|
|
@@ -15,6 +16,6 @@ class Timer:
|
|
|
15
16
|
diff = self.end_time - self.start_time
|
|
16
17
|
if self.print:
|
|
17
18
|
if self.title:
|
|
18
|
-
print(
|
|
19
|
+
print(f"time taken for [{self.title}]: {diff:.6f} seconds")
|
|
19
20
|
else:
|
|
20
|
-
print(
|
|
21
|
+
print(f"time taken: {diff:.6f} seconds")
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pytimer
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.16
|
|
4
4
|
Summary: pytimer is an easy to use timer
|
|
5
5
|
Home-page: https://veltzer.github.io/pytimer
|
|
6
|
+
Download-URL: https://github.com/veltzer/pytimer
|
|
6
7
|
Author: Mark Veltzer
|
|
7
8
|
Author-email: mark.veltzer@gmail.com
|
|
8
9
|
Maintainer: Mark Veltzer
|
|
9
10
|
Maintainer-email: mark.veltzer@gmail.com
|
|
10
11
|
License: MIT
|
|
11
|
-
Download-URL: https://github.com/veltzer/pytimer
|
|
12
|
-
Description: =========
|
|
13
|
-
*pytimer*
|
|
14
|
-
=========
|
|
15
|
-
|
|
16
|
-
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
17
|
-
|
|
18
|
-
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
19
|
-
|
|
20
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
21
|
-
|
|
22
|
-
project website: https://veltzer.github.io/pytimer
|
|
23
|
-
|
|
24
|
-
author: Mark Veltzer
|
|
25
|
-
|
|
26
|
-
version: 0.0.14
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
12
|
Keywords: python,timing,time,context,manager,utility
|
|
31
13
|
Platform: python3
|
|
32
14
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -35,10 +17,26 @@ Classifier: Operating System :: OS Independent
|
|
|
35
17
|
Classifier: Programming Language :: Python
|
|
36
18
|
Classifier: Programming Language :: Python :: 3
|
|
37
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
-
Classifier: Programming Language :: Python :: 3.
|
|
39
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
40
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
41
21
|
Classifier: Topic :: Utilities
|
|
42
22
|
Classifier: License :: OSI Approved :: MIT License
|
|
43
|
-
Requires-Python: >=3.6
|
|
44
23
|
Description-Content-Type: text/x-rst
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
|
|
26
|
+
=========
|
|
27
|
+
*pytimer*
|
|
28
|
+
=========
|
|
29
|
+
|
|
30
|
+
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
31
|
+
|
|
32
|
+
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
33
|
+
|
|
34
|
+
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
35
|
+
|
|
36
|
+
project website: https://veltzer.github.io/pytimer
|
|
37
|
+
|
|
38
|
+
author: Mark Veltzer
|
|
39
|
+
|
|
40
|
+
version: 0.0.16
|
|
41
|
+
|
|
42
|
+
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
LICENSE
|
|
2
2
|
README.rst
|
|
3
3
|
setup.cfg
|
|
4
4
|
setup.py
|
|
5
5
|
pytimer/__init__.py
|
|
6
6
|
pytimer/pytimer.py
|
|
7
|
-
pytimer/
|
|
7
|
+
pytimer/static.py
|
|
8
8
|
pytimer.egg-info/PKG-INFO
|
|
9
9
|
pytimer.egg-info/SOURCES.txt
|
|
10
10
|
pytimer.egg-info/dependency_links.txt
|
|
11
|
-
pytimer.egg-info/entry_points.txt
|
|
12
|
-
pytimer.egg-info/requires.txt
|
|
13
11
|
pytimer.egg-info/top_level.txt
|
pytimer-0.0.16/setup.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import setuptools
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def get_readme():
|
|
5
|
+
with open("README.rst") as f:
|
|
6
|
+
return f.read()
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
setuptools.setup(
|
|
10
|
+
# the first three fields are a must according to the documentation
|
|
11
|
+
name="pytimer",
|
|
12
|
+
version="0.0.16",
|
|
13
|
+
packages=[
|
|
14
|
+
"pytimer",
|
|
15
|
+
],
|
|
16
|
+
# from here all is optional
|
|
17
|
+
description="pytimer is an easy to use timer",
|
|
18
|
+
long_description=get_readme(),
|
|
19
|
+
long_description_content_type="text/x-rst",
|
|
20
|
+
author="Mark Veltzer",
|
|
21
|
+
author_email="mark.veltzer@gmail.com",
|
|
22
|
+
maintainer="Mark Veltzer",
|
|
23
|
+
maintainer_email="mark.veltzer@gmail.com",
|
|
24
|
+
keywords=[
|
|
25
|
+
"python",
|
|
26
|
+
"timing",
|
|
27
|
+
"time",
|
|
28
|
+
"context",
|
|
29
|
+
"manager",
|
|
30
|
+
"utility",
|
|
31
|
+
],
|
|
32
|
+
url="https://veltzer.github.io/pytimer",
|
|
33
|
+
download_url="https://github.com/veltzer/pytimer",
|
|
34
|
+
license="MIT",
|
|
35
|
+
platforms=[
|
|
36
|
+
"python3",
|
|
37
|
+
],
|
|
38
|
+
install_requires=[
|
|
39
|
+
],
|
|
40
|
+
classifiers=[
|
|
41
|
+
"Development Status :: 4 - Beta",
|
|
42
|
+
"Environment :: Console",
|
|
43
|
+
"Operating System :: OS Independent",
|
|
44
|
+
"Programming Language :: Python",
|
|
45
|
+
"Programming Language :: Python :: 3",
|
|
46
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
47
|
+
"Programming Language :: Python :: 3.11",
|
|
48
|
+
"Topic :: Utilities",
|
|
49
|
+
"License :: OSI Approved :: MIT License",
|
|
50
|
+
],
|
|
51
|
+
)
|
pytimer-0.0.14/MANIFEST.in
DELETED
pytimer-0.0.14/setup.py
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import setuptools
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def get_readme():
|
|
5
|
-
with open('README.rst') as f:
|
|
6
|
-
return f.read()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
setuptools.setup(
|
|
10
|
-
# the first three fields are a must according to the documentation
|
|
11
|
-
name="pytimer",
|
|
12
|
-
version="0.0.14",
|
|
13
|
-
packages=[
|
|
14
|
-
'pytimer',
|
|
15
|
-
],
|
|
16
|
-
# from here all is optional
|
|
17
|
-
description="pytimer is an easy to use timer",
|
|
18
|
-
long_description=get_readme(),
|
|
19
|
-
long_description_content_type="text/x-rst",
|
|
20
|
-
author="Mark Veltzer",
|
|
21
|
-
author_email="mark.veltzer@gmail.com",
|
|
22
|
-
maintainer="Mark Veltzer",
|
|
23
|
-
maintainer_email="mark.veltzer@gmail.com",
|
|
24
|
-
keywords=[
|
|
25
|
-
'python',
|
|
26
|
-
'timing',
|
|
27
|
-
'time',
|
|
28
|
-
'context',
|
|
29
|
-
'manager',
|
|
30
|
-
'utility',
|
|
31
|
-
],
|
|
32
|
-
url="https://veltzer.github.io/pytimer",
|
|
33
|
-
download_url="https://github.com/veltzer/pytimer",
|
|
34
|
-
license="MIT",
|
|
35
|
-
platforms=[
|
|
36
|
-
'python3',
|
|
37
|
-
],
|
|
38
|
-
install_requires=[
|
|
39
|
-
'pytconf',
|
|
40
|
-
'pylogconf',
|
|
41
|
-
],
|
|
42
|
-
extras_require={
|
|
43
|
-
},
|
|
44
|
-
classifiers=[
|
|
45
|
-
'Development Status :: 4 - Beta',
|
|
46
|
-
'Environment :: Console',
|
|
47
|
-
'Operating System :: OS Independent',
|
|
48
|
-
'Programming Language :: Python',
|
|
49
|
-
'Programming Language :: Python :: 3',
|
|
50
|
-
'Programming Language :: Python :: 3 :: Only',
|
|
51
|
-
'Programming Language :: Python :: 3.6',
|
|
52
|
-
'Programming Language :: Python :: 3.7',
|
|
53
|
-
'Programming Language :: Python :: 3.8',
|
|
54
|
-
'Topic :: Utilities',
|
|
55
|
-
'License :: OSI Approved :: MIT License',
|
|
56
|
-
],
|
|
57
|
-
data_files=[
|
|
58
|
-
],
|
|
59
|
-
entry_points={"console_scripts": [
|
|
60
|
-
]},
|
|
61
|
-
python_requires=">=3.6",
|
|
62
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|