pypipr 1.0.76__py3-none-any.whl → 1.0.78__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/__init__.py CHANGED
@@ -63,15 +63,18 @@ from .ifunctions.iscandir import iscandir
63
63
  from .ifunctions.isplit import isplit
64
64
  import colorama
65
65
  import datetime
66
+ import functools
66
67
  import inspect
67
68
  import io
68
69
  import json
69
70
  import lxml
70
71
  import math
72
+ import operator
71
73
  import os
72
74
  import pathlib
73
75
  import pint
74
76
  import pprint
77
+ import queue
75
78
  import random
76
79
  import re
77
80
  import requests
@@ -81,6 +84,7 @@ import sys
81
84
  import textwrap
82
85
  import time
83
86
  import tzdata
87
+ import uuid
84
88
  import webbrowser
85
89
  import yaml
86
90
  import zoneinfo
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,22 +30,34 @@ 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():
42
46
  print(f"{i} [{v.default}] : ", end="")
43
47
  o = input()
44
48
  if len(o):
45
- k[i] = eval(o)
49
+ try:
50
+ k[i] = eval(o)
51
+ except Exception:
52
+ pypipr.print_colorize(
53
+ "Input harus dalam syntax python.",
54
+ color=pypipr.colorama.Fore.RED,
55
+ )
46
56
 
47
- print()
57
+ # print()
48
58
  f = f(**k)
59
+ else:
60
+ pass
49
61
 
50
62
  pypipr.iprint(f)
51
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pypipr
3
- Version: 1.0.76
3
+ Version: 1.0.78
4
4
  Summary: The Python Package Index Project
5
5
  Author: ufiapjj
6
6
  Author-email: ufiapjj@gmail.com
@@ -1,4 +1,4 @@
1
- pypipr/__init__.py,sha256=kHMMZ7dK4K8DqL9n3RWOcEtBLM-9dMw3Z9JohUEZQZE,3203
1
+ pypipr/__init__.py,sha256=VbJbYGnqC6XiT95sqWG9MIsTZcqAPag6IoL9ADFemF4,3261
2
2
  pypipr/ibuiltins/ComparePerformance.py,sha256=fCATdlDgmgiz7QkQNLDMF9VweicesjOaTtfQeBRr64U,2229
3
3
  pypipr/ibuiltins/LINUX.py,sha256=p8OJwS9GCs50pz2UlcbUooPWSZgWmLI67PjcnzDTSWI,100
4
4
  pypipr/ibuiltins/RunParallel.py,sha256=D9QAJr6O6l1yYFv5vypKmboeadAX996gBG9sjpHRkiM,5996
@@ -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=4NNTXu8OnDjE5YBCvu_WW7wnqzZMLpeIaabp6SNP9ik,1246
72
- pypipr-1.0.76.dist-info/METADATA,sha256=98POOkvlVdMU6noynDG2uIeNu21gCsCg4Z4W4vjOv6U,40884
73
- pypipr-1.0.76.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
74
- pypipr-1.0.76.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
75
- pypipr-1.0.76.dist-info/RECORD,,
71
+ pypipr/terminal.py,sha256=XhZz9lntVfRHEs6P7rOjJ688ukw_Xnrht8mbqcAR8QY,1745
72
+ pypipr-1.0.78.dist-info/METADATA,sha256=Zvcl2rYgfmBHLBT881iOfu-N4IWrQW68XfxyyKeakjI,40884
73
+ pypipr-1.0.78.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
74
+ pypipr-1.0.78.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
75
+ pypipr-1.0.78.dist-info/RECORD,,