pypipr 1.0.72__py3-none-any.whl → 1.0.73__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.
pypipr/terminal.py CHANGED
@@ -27,28 +27,23 @@ def main():
27
27
  pypipr.print_colorize(m)
28
28
  print(f.__doc__)
29
29
 
30
- import inspect
31
- s = inspect.signature(f)
32
- print(m, end="")
33
- pypipr.print_colorize(s)
34
-
35
- # a = []
36
- k = {}
37
- for i, v in s.parameters.items():
38
- # pypipr.print_dir(v)
39
- print(f"{i} [{v.default}] : ", end="")
40
- o = input()
41
- if len(o):
42
- # if isinstance(v.default, inspect._empty):
43
- # a.append(o)
44
- # else:
45
- # k[i] = o
46
- k[i] = eval(o)
47
-
48
- # print(a)
49
- print(k)
50
- # f(*a, **k)
51
- f(**k)
30
+ if callable(f):
31
+ import inspect
32
+ s = inspect.signature(f)
33
+ print(m, end="")
34
+ pypipr.print_colorize(s)
35
+
36
+ k = {}
37
+ for i, v in s.parameters.items():
38
+ print(f"{i} [{v.default}] : ", end="")
39
+ o = input()
40
+ if len(o):
41
+ k[i] = eval(o)
42
+
43
+ print()
44
+ f = f(**k)
45
+
46
+ pypipr.iprint(f)
52
47
 
53
48
 
54
49
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.72
3
+ Version: 1.0.73
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -67,8 +67,8 @@ pypipr/ifunctions/ireplace.py,sha256=RcVMXmbXH_cl4hXpTI5wnuzdPtkatpuZgYsZkfBLAJU
67
67
  pypipr/ifunctions/iscandir.py,sha256=Ev6jus16vOXdNTN9Ia-_35ESplx7N_ZWA0kYoeimXbk,766
68
68
  pypipr/ifunctions/isplit.py,sha256=N2BiA_wVnrENYwokSzvo0CAiQWk3g7AnwuWFIUgevNM,383
69
69
  pypipr/pypipr.py.bak,sha256=HF-ehQd6BY8hm9fRkQHravLNrJRlI5g_AzbCc3dbikQ,1061
70
- pypipr/terminal.py,sha256=O8IJ7el24WGinNbZ0ByQtzPCpsG5nkt4qvspbU1MZfA,1268
71
- pypipr-1.0.72.dist-info/METADATA,sha256=LudkiD-rR_hI5eQf20Z4YxuAhe8exC8mpP2E9bgqQGE,29962
72
- pypipr-1.0.72.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
73
- pypipr-1.0.72.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
74
- pypipr-1.0.72.dist-info/RECORD,,
70
+ pypipr/terminal.py,sha256=vtR4NUzKuDSTVWieYhzoctHf6V1QrjtLibSjJzjVsiM,1157
71
+ pypipr-1.0.73.dist-info/METADATA,sha256=QA_74BXuo3A91ZmZ6Qw1y4riOnm-mbboBo9VfTFyZkY,29962
72
+ pypipr-1.0.73.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
73
+ pypipr-1.0.73.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
74
+ pypipr-1.0.73.dist-info/RECORD,,