-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
90 lines (71 loc) · 3.03 KB
/
main.py
File metadata and controls
90 lines (71 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
'''
Energee3 Python Tools
Ai colleghi di Energee3:
come suggerisce il nome, si tratta di un insieme di script e tool vari che potrebbero tornare utili nello
sviluppo di codice Python.
PS Pull request ben accette!
'''
__author__ = "Alessandro Cucci"
__package_name__ = "Energee3 Python Tools"
__license__ = "MIT"
__version__ = "0.0.1"
__email__ = "alessandro.cucci@energee.com"
__status__ = "Development"
import argparse
def performance():
from Scripts import timeit
timeit.main()
if __name__ == '__main__':
logo = """
.;;;,
;;;;; .::
`;;;;; ;;;;;;
;;;;; ;;;;;;;:
`;;; ;;;;;;;;
;; .;;;;;;;;
;; ;;;;;;;;;
:; `;;;;;;;;
.; `;;;;;;;:
;` .;;;;;:`
;: :;;;`
;; ;;;.
;; .;;;
:;;; ,; ;;;.
`;;;;;;, `;` `;;;
;;;;;;;; ;: :;;.
`;;;;;;;;; ;; ;;;
.;;;;;;;;;;` ;; ,;;,
;;;;;;;;;;;;;. ;;, ;;;
;;;;;;;;;;;;;;;;:` :;; .;;;
,;;;;;;;`.,;;;;;;;;;, ,;;. ;;;,
`;;;;, `:;;;;;;;;` ,;;;;;;;`
.;;;;;;;:;;;;;;;
,;;;;;;;;;;;.
,;;;;;;;;;;;:. ,.
;;;;;;;,:;;;;;;;. :;;;;
;;;;;;;. `,:;;;;;;;;;
`;;, :;;: ;;;;;;;
:;; ;;; ;;;;;
;;` `;; `;;;`
.;: ;;`
;;` ;;
.;;:;; ;;
;;;;: ;.
;;;;` ;;
,;;; ;`
. ;;;
;;;
;;;
ENERGEE3 PYTHON TOOLS
Energee3 srl
"""
print logo
parser = argparse.ArgumentParser()
parser.add_argument('-p', '--performance', action='store_true',
help='Execute timeit.py script')
# TODO: Aggiungere gli altri
parser.add_argument('--version', action='version', version=' '.join([__package_name__, __version__]))
results = parser.parse_args()
if results.performance:
performance()