pypipr 1.0.77__py3-none-any.whl → 1.0.79__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
@@ -22,7 +22,7 @@ def main():
22
22
  if len(m) == 1:
23
23
  m = pypipr.get_from_index(m, 0)
24
24
  pypipr.exit_if_empty(m)
25
- a = None
25
+ a = None if a != m else m
26
26
 
27
27
  f = getattr(pypipr, m)
28
28
 
@@ -30,12 +30,16 @@ def main():
30
30
  pypipr.print_colorize(m)
31
31
  print(f.__doc__)
32
32
 
33
- if callable(f):
34
- import inspect
33
+ if pypipr.inspect.isclass(f):
34
+ pypipr.print_log("Class tidak dapat dijalankan.")
35
+ elif pypipr.inspect.ismodule(f):
36
+ pypipr.print_log("Module tidak dapat dijalankan.")
37
+ elif pypipr.inspect.isfunction(f):
38
+ s = pypipr.inspect.signature(f)
35
39
 
36
- s = inspect.signature(f)
37
- print(m, end="")
38
- pypipr.print_colorize(s)
40
+ if not a:
41
+ print(m, end="")
42
+ pypipr.print_colorize(s)
39
43
 
40
44
  k = {}
41
45
  for i, v in s.parameters.items():
@@ -50,8 +54,10 @@ def main():
50
54
  color=pypipr.colorama.Fore.RED,
51
55
  )
52
56
 
53
- print()
57
+ # print()
54
58
  f = f(**k)
59
+ else:
60
+ pass
55
61
 
56
62
  pypipr.iprint(f)
57
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.77
3
+ Version: 1.0.79
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -68,8 +68,8 @@ pypipr/ifunctions/ireplace.py,sha256=RcVMXmbXH_cl4hXpTI5wnuzdPtkatpuZgYsZkfBLAJU
68
68
  pypipr/ifunctions/iscandir.py,sha256=Ev6jus16vOXdNTN9Ia-_35ESplx7N_ZWA0kYoeimXbk,766
69
69
  pypipr/ifunctions/isplit.py,sha256=N2BiA_wVnrENYwokSzvo0CAiQWk3g7AnwuWFIUgevNM,383
70
70
  pypipr/pypipr.py.bak,sha256=HF-ehQd6BY8hm9fRkQHravLNrJRlI5g_AzbCc3dbikQ,1061
71
- pypipr/terminal.py,sha256=1-wZvYv_1wQgXWkgYvLGxMIWDeR6-sBOPOfvU1LP8ZA,1486
72
- pypipr-1.0.77.dist-info/METADATA,sha256=l9_FP1HBCUNwuCu7WyU0kfUDC9_Dad9PgNBZt2Nb_Bw,40884
73
- pypipr-1.0.77.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
74
- pypipr-1.0.77.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
75
- pypipr-1.0.77.dist-info/RECORD,,
71
+ pypipr/terminal.py,sha256=XhZz9lntVfRHEs6P7rOjJ688ukw_Xnrht8mbqcAR8QY,1745
72
+ pypipr-1.0.79.dist-info/METADATA,sha256=BkPWfKKFIuKowFuC4QIQWM8GINjtUPdpfKLTu6MswBQ,40884
73
+ pypipr-1.0.79.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
74
+ pypipr-1.0.79.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
75
+ pypipr-1.0.79.dist-info/RECORD,,