pypipr 1.0.124__py3-none-any.whl → 1.0.126__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 +1 -0
- pypipr/__terminal__.py +11 -8
- pypipr/github_init.py +34 -0
- {pypipr-1.0.124.dist-info → pypipr-1.0.126.dist-info}/METADATA +183 -155
- {pypipr-1.0.124.dist-info → pypipr-1.0.126.dist-info}/RECORD +7 -6
- {pypipr-1.0.124.dist-info → pypipr-1.0.126.dist-info}/WHEEL +0 -0
- {pypipr-1.0.124.dist-info → pypipr-1.0.126.dist-info}/entry_points.txt +0 -0
pypipr/__init__.py
CHANGED
@@ -27,6 +27,7 @@ from .get_by_index import get_by_index
|
|
27
27
|
from .get_class_method import get_class_method
|
28
28
|
from .get_filemtime import get_filemtime
|
29
29
|
from .get_filesize import get_filesize
|
30
|
+
from .github_init import github_init
|
30
31
|
from .github_pull import github_pull
|
31
32
|
from .github_push import github_push
|
32
33
|
from .github_user import github_user
|
pypipr/__terminal__.py
CHANGED
@@ -9,11 +9,11 @@ def input_parameter(o):
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
def main():
|
13
|
-
|
14
|
-
m = ivars(
|
15
|
-
|
16
|
-
m = m["variable"] | m["function"]
|
12
|
+
def main(module="pypipr"):
|
13
|
+
module = __import__(module)
|
14
|
+
m = ivars(module)
|
15
|
+
m = m["module"] | m["variable"] | m["class"] | m["function"]
|
16
|
+
# m = m["variable"] | m["function"]
|
17
17
|
m = [x for x in m]
|
18
18
|
m.sort()
|
19
19
|
|
@@ -21,16 +21,19 @@ def main():
|
|
21
21
|
p = "Masukan Nomor Urut atau Nama Fungsi : "
|
22
22
|
m = choices(daftar=m, contains=a, prompt=p)
|
23
23
|
|
24
|
-
f = getattr(
|
24
|
+
f = getattr(module, m)
|
25
25
|
|
26
26
|
if a != m:
|
27
27
|
print_colorize(m)
|
28
28
|
print(f.__doc__)
|
29
29
|
|
30
|
+
|
30
31
|
if inspect.isclass(f):
|
31
32
|
print_log("Class tidak dapat dijalankan.")
|
32
33
|
elif inspect.ismodule(f):
|
33
34
|
print_log("Module tidak dapat dijalankan.")
|
35
|
+
main(f.__name__)
|
36
|
+
return
|
34
37
|
elif inspect.isfunction(f):
|
35
38
|
s = inspect.signature(f)
|
36
39
|
|
@@ -40,8 +43,7 @@ def main():
|
|
40
43
|
|
41
44
|
k = {}
|
42
45
|
for i, v in s.parameters.items():
|
43
|
-
|
44
|
-
o = input()
|
46
|
+
o = input(f"{i} [{v.default}] : ")
|
45
47
|
if len(o):
|
46
48
|
try:
|
47
49
|
k[i] = input_parameter(o)
|
@@ -52,6 +54,7 @@ def main():
|
|
52
54
|
)
|
53
55
|
|
54
56
|
f = f(**k)
|
57
|
+
|
55
58
|
else:
|
56
59
|
# variable
|
57
60
|
pass
|
pypipr/github_init.py
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
from .console_run import console_run
|
2
|
+
from .input_char import input_char
|
3
|
+
|
4
|
+
|
5
|
+
def github_init():
|
6
|
+
"""
|
7
|
+
Menyiapkan folder offline untuk dikoneksikan ke repository
|
8
|
+
kosong github.
|
9
|
+
Akan langsung di upload dan di taruh di branch main.
|
10
|
+
|
11
|
+
|
12
|
+
```py
|
13
|
+
github_init()
|
14
|
+
```
|
15
|
+
|
16
|
+
or run in terminal
|
17
|
+
|
18
|
+
```py
|
19
|
+
pypipr github_init
|
20
|
+
```
|
21
|
+
"""
|
22
|
+
u = input("username : ")
|
23
|
+
p = input("password : ")
|
24
|
+
g = input("github account name : ")
|
25
|
+
r = input("repository name : ")
|
26
|
+
|
27
|
+
url = f"https://{u}:{p}@github.com/{g}/{r}.git"
|
28
|
+
if input_char(f"Apakah benar {url} ? [y] ") == "y":
|
29
|
+
console_run("git init", print_info=False)
|
30
|
+
console_run("git add .", print_info=False)
|
31
|
+
console_run("git commit -m first_commit", print_info=False)
|
32
|
+
console_run("git branch -M main", print_info=False)
|
33
|
+
console_run(f"git remote add origin {url}", print_info=False)
|
34
|
+
console_run("git push -u origin main", print_info=False)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.126
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -248,8 +248,8 @@ iprint(irange("z", "a", 4))
|
|
248
248
|
|
249
249
|
Output:
|
250
250
|
```py
|
251
|
-
<generator object int_range at
|
252
|
-
<generator object int_range at
|
251
|
+
<generator object int_range at 0x7a10b00440>
|
252
|
+
<generator object int_range at 0x7a10b00440>
|
253
253
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
254
254
|
[2, 5, 8]
|
255
255
|
[2, 5, 8]
|
@@ -281,7 +281,7 @@ print(list(batchmaker(s)))
|
|
281
281
|
|
282
282
|
Output:
|
283
283
|
```py
|
284
|
-
<generator object batchmaker at
|
284
|
+
<generator object batchmaker at 0x7a10af8280>
|
285
285
|
['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 4 dan 10 dan j dan Z saja.', 'Urutan 4 dan 10 dan j dan K saja.']
|
286
286
|
```
|
287
287
|
|
@@ -335,7 +335,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
335
335
|
|
336
336
|
Output:
|
337
337
|
```py
|
338
|
-
<generator object batch_calculate at
|
338
|
+
<generator object batch_calculate at 0x7a10a73010>
|
339
339
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('2 m ** 1', <Quantity(2, 'meter')>), ('2 m ** 2', <Quantity(2, 'meter ** 2')>), ('3 m ** 1', <Quantity(3, 'meter')>), ('3 m ** 2', <Quantity(3, 'meter ** 2')>), ('4 m ** 1', <Quantity(4, 'meter')>), ('4 m ** 2', <Quantity(4, 'meter ** 2')>), ('5 m ** 1', <Quantity(5, 'meter')>), ('5 m ** 2', <Quantity(5, 'meter ** 2')>), ('6 m ** 1', <Quantity(6, 'meter')>), ('6 m ** 2', <Quantity(6, 'meter ** 2')>), ('7 m ** 1', <Quantity(7, 'meter')>), ('7 m ** 2', <Quantity(7, 'meter ** 2')>), ('8 m ** 1', <Quantity(8, 'meter')>), ('8 m ** 2', <Quantity(8, 'meter ** 2')>), ('9 m ** 1', <Quantity(9, 'meter')>), ('9 m ** 2', <Quantity(9, 'meter ** 2')>)]
|
340
340
|
```
|
341
341
|
|
@@ -458,7 +458,7 @@ print(list(chunk_array(arr, 5)))
|
|
458
458
|
|
459
459
|
Output:
|
460
460
|
```py
|
461
|
-
<generator object chunk_array at
|
461
|
+
<generator object chunk_array at 0x7a10b00440>
|
462
462
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
463
463
|
```
|
464
464
|
|
@@ -509,9 +509,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
509
509
|
|
510
510
|
Output:
|
511
511
|
```py
|
512
|
-
2024-05-06
|
513
|
-
2024-05-06
|
514
|
-
2024-05-
|
512
|
+
2024-05-06 17:58:05.473000+07:00
|
513
|
+
2024-05-06 10:58:05.475089+00:00
|
514
|
+
2024-05-06 03:58:05.482857-07:00
|
515
515
|
```
|
516
516
|
|
517
517
|
## dict_first
|
@@ -617,7 +617,7 @@ iprint(filter_empty(var))
|
|
617
617
|
|
618
618
|
Output:
|
619
619
|
```py
|
620
|
-
<generator object filter_empty at
|
620
|
+
<generator object filter_empty at 0x7a10a715d0>
|
621
621
|
[1, '0', True, {}, ['eee']]
|
622
622
|
```
|
623
623
|
|
@@ -647,8 +647,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
647
647
|
|
648
648
|
Output:
|
649
649
|
```py
|
650
|
-
<generator object get_class_method at
|
651
|
-
[<function ExampleGetClassMethod.a at
|
650
|
+
<generator object get_class_method at 0x7a10a732e0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x7a10b151c0>, <function ExampleGetClassMethod.b at 0x7a10b15080>, <function ExampleGetClassMethod.c at 0x7a10b15120>, <function ExampleGetClassMethod.d at 0x7a10b15260>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -666,6 +666,25 @@ Output:
|
|
666
666
|
465
|
667
667
|
```
|
668
668
|
|
669
|
+
## github_init
|
670
|
+
|
671
|
+
`github_init()`
|
672
|
+
|
673
|
+
Menyiapkan folder offline untuk dikoneksikan ke repository
|
674
|
+
kosong github.
|
675
|
+
Akan langsung di upload dan di taruh di branch main.
|
676
|
+
|
677
|
+
|
678
|
+
```py
|
679
|
+
github_init()
|
680
|
+
```
|
681
|
+
|
682
|
+
or run in terminal
|
683
|
+
|
684
|
+
```py
|
685
|
+
pypipr github_init
|
686
|
+
```
|
687
|
+
|
669
688
|
## github_pull
|
670
689
|
|
671
690
|
`github_pull()`
|
@@ -918,7 +937,7 @@ Output:
|
|
918
937
|
|
919
938
|
## ienumerate
|
920
939
|
|
921
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
940
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7a19f09a80>)`
|
922
941
|
|
923
942
|
meningkatkan fungsi enumerate() pada python
|
924
943
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -931,7 +950,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
931
950
|
|
932
951
|
Output:
|
933
952
|
```py
|
934
|
-
<generator object ienumerate at
|
953
|
+
<generator object ienumerate at 0x7a10a733d0>
|
935
954
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
936
955
|
```
|
937
956
|
|
@@ -998,7 +1017,7 @@ print(ijoin(10, ' '))
|
|
998
1017
|
|
999
1018
|
Output:
|
1000
1019
|
```py
|
1001
|
-
|
1020
|
+
dfs, weq, qweqw, asd
|
1002
1021
|
,ini,path,seperti,url,
|
1003
1022
|
ini,path,seperti,url
|
1004
1023
|
<li>satu</li>
|
@@ -1044,9 +1063,9 @@ Output:
|
|
1044
1063
|
```py
|
1045
1064
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1046
1065
|
[['Harga Emas Hari Ini - Senin, 06 Mei 2024'],
|
1047
|
-
['Spot Emas USD↑2.
|
1066
|
+
['Spot Emas USD↑2.319,91 (+17,34) / oz',
|
1048
1067
|
'Kurs IDR↓16.094,00 (-108,00) / USD',
|
1049
|
-
'Emas IDR
|
1068
|
+
'Emas IDR↑1.200.401 (+977) / gr'],
|
1050
1069
|
['LM Antam (Jual)↓1.310.000 (-3.000) / gr',
|
1051
1070
|
'LM Antam (Beli)↓1.203.000 (-3.000) / gr']],
|
1052
1071
|
[['Harga Emas Hari Ini'],
|
@@ -1117,37 +1136,45 @@ Output:
|
|
1117
1136
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1118
1137
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1119
1138
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1120
|
-
['Ounce\xa0(oz)', '2.
|
1121
|
-
['Gram\xa0(gr)', '74,
|
1122
|
-
['Kilogram\xa0(kg)', '74.
|
1123
|
-
['Update harga emas :06 Mei 2024, pukul
|
1124
|
-
'
|
1139
|
+
['Ounce\xa0(oz)', '2.319,91 (+17,34)', '16.094,00 (-108,00)', '37.336.632'],
|
1140
|
+
['Gram\xa0(gr)', '74,59', '16.094,00', '1.200.401 (+977)'],
|
1141
|
+
['Kilogram\xa0(kg)', '74.586,84', '16.094,00', '1.200.400.580'],
|
1142
|
+
['Update harga emas :06 Mei 2024, pukul 17:58Update kurs :06 Mei 2024, pukul '
|
1143
|
+
'13:10']],
|
1125
1144
|
[['Gram', 'UBS Gold 99.99%'],
|
1126
1145
|
['Jual', 'Beli'],
|
1127
1146
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1128
1147
|
['100',
|
1129
|
-
'
|
1130
|
-
'1.
|
1131
|
-
'
|
1132
|
-
'1.
|
1148
|
+
'124.800.000 (-1.200.000)',
|
1149
|
+
'1.248.000 (-12.000)',
|
1150
|
+
'122.685.000 (-700.000)',
|
1151
|
+
'1.226.850 (-7.000)'],
|
1133
1152
|
['50',
|
1134
|
-
'62.
|
1135
|
-
'1.
|
1136
|
-
'61.
|
1137
|
-
'1.
|
1153
|
+
'62.500.000 (-450.000)',
|
1154
|
+
'1.250.000 (-9.000)',
|
1155
|
+
'61.395.000 (-350.000)',
|
1156
|
+
'1.227.900 (-7.000)'],
|
1138
1157
|
['25',
|
1139
|
-
'31.
|
1140
|
-
'1.
|
1141
|
-
'30.
|
1142
|
-
'1.
|
1158
|
+
'31.300.000 (-200.000)',
|
1159
|
+
'1.252.000 (-8.000)',
|
1160
|
+
'30.800.000 (-175.000)',
|
1161
|
+
'1.232.000 (-7.000)'],
|
1143
1162
|
['10',
|
1144
|
-
'12.
|
1145
|
-
'1.
|
1146
|
-
'12.
|
1147
|
-
'1.
|
1148
|
-
['5',
|
1149
|
-
|
1150
|
-
|
1163
|
+
'12.570.000 (-80.000)',
|
1164
|
+
'1.257.000 (-8.000)',
|
1165
|
+
'12.370.000 (-70.000)',
|
1166
|
+
'1.237.000 (-7.000)'],
|
1167
|
+
['5',
|
1168
|
+
'6.310.000 (-40.000)',
|
1169
|
+
'1.262.000 (-8.000)',
|
1170
|
+
'6.237.000 (-35.000)',
|
1171
|
+
'1.247.400 (-7.000)'],
|
1172
|
+
['1',
|
1173
|
+
'1.310.000 (-5.000)',
|
1174
|
+
'1.310.000 (-5.000)',
|
1175
|
+
'1.280.000 (-7.000)',
|
1176
|
+
'1.280.000 (-7.000)'],
|
1177
|
+
['', 'Update :06 Mei 2024, pukul 11:07']],
|
1151
1178
|
[['Konversi Satuan'],
|
1152
1179
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1153
1180
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1158,36 +1185,36 @@ Output:
|
|
1158
1185
|
['Unit', 'USD', 'IDR'],
|
1159
1186
|
['Angka', '+/-', 'Angka', '+/-'],
|
1160
1187
|
['Hari Ini', 'Kurs', '', '', '16.202', '-108-0,67%'],
|
1161
|
-
['oz', '2.302,57', '+
|
1162
|
-
['gr', '74,03', '+0,
|
1188
|
+
['oz', '2.302,57', '+17,34+0,75%', '37.306.239', '+30.392+0,08%'],
|
1189
|
+
['gr', '74,03', '+0,56+0,75%', '1.199.423', '+977+0,08%'],
|
1163
1190
|
['30 Hari', 'Kurs', '', '', '15.907', '+187+1,18%'],
|
1164
|
-
['oz', '2.329,93', '-
|
1165
|
-
['gr', '74,91', '-0,
|
1191
|
+
['oz', '2.329,93', '-10,02-0,43%', '37.062.197', '+274.435+0,74%'],
|
1192
|
+
['gr', '74,91', '-0,32-0,43%', '1.191.577', '+8.823+0,74%'],
|
1166
1193
|
['2 Bulan', 'Kurs', '', '', '15.723', '+371+2,36%'],
|
1167
|
-
['oz', '2.156,44', '+
|
1168
|
-
['gr', '69,33', '+
|
1194
|
+
['oz', '2.156,44', '+163,47+7,58%', '33.905.706', '+3.430.925+10,12%'],
|
1195
|
+
['gr', '69,33', '+5,26+7,58', '1.090.094', '+110.307+10,12%'],
|
1169
1196
|
['6 Bulan', 'Kurs', '', '', '15.593', '+501+3,21%'],
|
1170
|
-
['oz', '1.954,36', '+
|
1171
|
-
['gr', '62,83', '+11,
|
1197
|
+
['oz', '1.954,36', '+365,55+18,70%', '30.474.335', '+6.862.296+22,52%'],
|
1198
|
+
['gr', '62,83', '+11,75+18,70%', '979.773', '+220.628+22,52%'],
|
1172
1199
|
['1 Tahun', 'Kurs', '', '', '15.731', '+363+2,31%'],
|
1173
|
-
['oz', '1.823,86', '+
|
1174
|
-
['gr', '58,64', '+15,
|
1200
|
+
['oz', '1.823,86', '+496,05+27,20%', '28.691.142', '+8.645.490+30,13%'],
|
1201
|
+
['gr', '58,64', '+15,95+27,20%', '922.442', '+277.959+30,13%'],
|
1175
1202
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.676+11,62%'],
|
1176
|
-
['oz', '1.883,86', '+
|
1177
|
-
['gr', '60,57', '+
|
1203
|
+
['oz', '1.883,86', '+436,05+23,15%', '27.161.493', '+10.175.138+37,46%'],
|
1204
|
+
['gr', '60,57', '+14,02+23,15%', '873.262', '+327.138+37,46%'],
|
1178
1205
|
['3 Tahun', 'Kurs', '', '', '14.364', '+1.730+12,04%'],
|
1179
|
-
['oz', '1.831,48', '+
|
1180
|
-
['gr', '58,88', '+15,
|
1206
|
+
['oz', '1.831,48', '+488,43+26,67%', '26.307.379', '+11.029.253+41,92%'],
|
1207
|
+
['gr', '58,88', '+15,70+26,67%', '845.802', '+354.599+41,92%'],
|
1181
1208
|
['5 Tahun', 'Kurs', '', '', '14.305', '+1.789+12,51%'],
|
1182
|
-
['oz', '1.280,40', '+1.
|
1183
|
-
['gr', '41,17', '+33,
|
1209
|
+
['oz', '1.280,40', '+1.039,51+81,19%', '18.316.122', '+19.020.510+103,85%'],
|
1210
|
+
['gr', '41,17', '+33,42+81,19%', '588.877', '+611.524+103,85%']])
|
1184
1211
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1185
1212
|
[[''],
|
1186
1213
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1187
|
-
['USD', '74,
|
1188
|
-
['KURS', '16.
|
1189
|
-
['IDR', '1.
|
1190
|
-
['Senin, 06 Mei 2024
|
1214
|
+
['USD', '74,59↑', '+0,56+0,76%'],
|
1215
|
+
['KURS', '16.035,65↑', '+66,95+0,42%'],
|
1216
|
+
['IDR', '1.196.048,44↑', '+13.896,04+1,18%'],
|
1217
|
+
['Senin, 06 Mei 2024 17:58']],
|
1191
1218
|
[[''],
|
1192
1219
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1193
1220
|
'Hari Ini',
|
@@ -1198,19 +1225,19 @@ Output:
|
|
1198
1225
|
'']],
|
1199
1226
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1200
1227
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1201
|
-
['USD', '74,03', '74,03 - 74,
|
1202
|
-
['KURS', '15.968,70', '15.968,70 - 16.
|
1203
|
-
['IDR', '1.182.152,40', '1.182.152,40 - 1.
|
1228
|
+
['USD', '74,03', '74,03 - 74,59', '74,31'],
|
1229
|
+
['KURS', '15.968,70', '15.968,70 - 16.035,65', '16.002,18'],
|
1230
|
+
['IDR', '1.182.152,40', '1.182.152,40 - 1.196.048,44', '1.189.100,42'],
|
1204
1231
|
[''],
|
1205
1232
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1206
|
-
['USD', '66,32', '64,07 - 77,14', '+
|
1207
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1208
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1233
|
+
['USD', '66,32', '64,07 - 77,14', '+8,27 (12,47%)'],
|
1234
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+645,55 (4,19%)'],
|
1235
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.318,91 (17,18%)'],
|
1209
1236
|
[''],
|
1210
1237
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1211
|
-
['USD', '64,87', '58,43 - 77,14', '+9,
|
1212
|
-
['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.
|
1213
|
-
['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+
|
1238
|
+
['USD', '64,87', '58,43 - 77,14', '+9,72 (14,98%)'],
|
1239
|
+
['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.366,25 (9,31%)'],
|
1240
|
+
['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+244.422,08 (25,68%)']])
|
1214
1241
|
```
|
1215
1242
|
|
1216
1243
|
## iloads
|
@@ -1340,7 +1367,7 @@ Output:
|
|
1340
1367
|
```py
|
1341
1368
|
8
|
1342
1369
|
['mana', 'aja']
|
1343
|
-
[<Element a at
|
1370
|
+
[<Element a at 0x7a10b09810>, <Element a at 0x7a10b4d040>, <Element a at 0x7a10b4d0e0>, <Element a at 0x7a10b4d130>, <Element a at 0x7a10b4d180>, <Element a at 0x7a10b4d1d0>, <Element a at 0x7a10b4d220>, <Element a at 0x7a10b4d270>, <Element a at 0x7a10b4d2c0>, <Element a at 0x7a10b4d310>, <Element a at 0x7a10b4d360>, <Element a at 0x7a10b4d3b0>, <Element a at 0x7a10b4d400>, <Element a at 0x7a10b4d450>, <Element a at 0x7a10b4d4a0>, <Element a at 0x7a10b4d4f0>, <Element a at 0x7a10b4d540>, <Element a at 0x7a10b4d590>]
|
1344
1371
|
False
|
1345
1372
|
```
|
1346
1373
|
|
@@ -1402,7 +1429,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1402
1429
|
|
1403
1430
|
Output:
|
1404
1431
|
```py
|
1405
|
-
<generator object iscandir at
|
1432
|
+
<generator object iscandir at 0x7a10b00740>
|
1406
1433
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1407
1434
|
```
|
1408
1435
|
|
@@ -1439,76 +1466,77 @@ Output:
|
|
1439
1466
|
'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1440
1467
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1441
1468
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1442
|
-
'function': {'avg': <function avg at
|
1443
|
-
'get_filemtime': <function get_filemtime at
|
1444
|
-
'print_colorize': <function print_colorize at
|
1445
|
-
'print_log': <function print_log at
|
1446
|
-
'console_run': <function console_run at
|
1447
|
-
'auto_reload': <function auto_reload at
|
1448
|
-
'basename': <function basename at
|
1449
|
-
'chr_to_int': <function chr_to_int at
|
1450
|
-
'int_to_chr': <function int_to_chr at
|
1451
|
-
'irange': <function irange at
|
1452
|
-
'batchmaker': <function batchmaker at
|
1453
|
-
'calculate': <function calculate at
|
1454
|
-
'batch_calculate': <function batch_calculate at
|
1455
|
-
'bin_to_int': <function bin_to_int at
|
1456
|
-
'is_empty': <function is_empty at
|
1457
|
-
'exit_if_empty': <function exit_if_empty at
|
1458
|
-
'input_char': <function input_char at
|
1459
|
-
'get_by_index': <function get_by_index at
|
1460
|
-
'choices': <function choices at
|
1461
|
-
'chunk_array': <function chunk_array at
|
1462
|
-
'create_folder': <function create_folder at
|
1463
|
-
'datetime_from_string': <function datetime_from_string at
|
1464
|
-
'datetime_now': <function datetime_now at
|
1465
|
-
'dict_first': <function dict_first at
|
1466
|
-
'dirname': <function dirname at
|
1467
|
-
'is_iterable': <function is_iterable at
|
1468
|
-
'to_str': <function to_str at
|
1469
|
-
'filter_empty': <function filter_empty at
|
1470
|
-
'get_class_method': <function get_class_method at
|
1471
|
-
'get_filesize': <function get_filesize at
|
1472
|
-
'
|
1473
|
-
'
|
1474
|
-
'
|
1475
|
-
'
|
1476
|
-
'
|
1477
|
-
'
|
1478
|
-
'
|
1479
|
-
'
|
1480
|
-
'
|
1481
|
-
'
|
1482
|
-
'
|
1483
|
-
'
|
1484
|
-
'
|
1485
|
-
'
|
1486
|
-
'
|
1487
|
-
'
|
1488
|
-
'
|
1489
|
-
'
|
1490
|
-
'
|
1491
|
-
'
|
1492
|
-
'
|
1493
|
-
'
|
1494
|
-
'
|
1495
|
-
'
|
1496
|
-
'
|
1497
|
-
'
|
1498
|
-
'
|
1499
|
-
'
|
1500
|
-
'
|
1501
|
-
'
|
1502
|
-
'
|
1503
|
-
'
|
1504
|
-
'
|
1505
|
-
'
|
1506
|
-
'
|
1507
|
-
'
|
1508
|
-
'
|
1509
|
-
'
|
1469
|
+
'function': {'avg': <function avg at 0x7a1db6e700>,
|
1470
|
+
'get_filemtime': <function get_filemtime at 0x7a1a016de0>,
|
1471
|
+
'print_colorize': <function print_colorize at 0x7a1a016fc0>,
|
1472
|
+
'print_log': <function print_log at 0x7a1a0ceb60>,
|
1473
|
+
'console_run': <function console_run at 0x7a1a016e80>,
|
1474
|
+
'auto_reload': <function auto_reload at 0x7a19ff7ec0>,
|
1475
|
+
'basename': <function basename at 0x7a1a016d40>,
|
1476
|
+
'chr_to_int': <function chr_to_int at 0x7a1a017560>,
|
1477
|
+
'int_to_chr': <function int_to_chr at 0x7a1a017600>,
|
1478
|
+
'irange': <function irange at 0x7a1a017880>,
|
1479
|
+
'batchmaker': <function batchmaker at 0x7a1a017240>,
|
1480
|
+
'calculate': <function calculate at 0x7a1a017380>,
|
1481
|
+
'batch_calculate': <function batch_calculate at 0x7a1a017100>,
|
1482
|
+
'bin_to_int': <function bin_to_int at 0x7a1a0171a0>,
|
1483
|
+
'is_empty': <function is_empty at 0x7a19e38040>,
|
1484
|
+
'exit_if_empty': <function exit_if_empty at 0x7a1a017ec0>,
|
1485
|
+
'input_char': <function input_char at 0x7a1a017f60>,
|
1486
|
+
'get_by_index': <function get_by_index at 0x7a19e380e0>,
|
1487
|
+
'choices': <function choices at 0x7a19e382c0>,
|
1488
|
+
'chunk_array': <function chunk_array at 0x7a19e38360>,
|
1489
|
+
'create_folder': <function create_folder at 0x7a19e38400>,
|
1490
|
+
'datetime_from_string': <function datetime_from_string at 0x7a19e384a0>,
|
1491
|
+
'datetime_now': <function datetime_now at 0x7a19e38540>,
|
1492
|
+
'dict_first': <function dict_first at 0x7a19e385e0>,
|
1493
|
+
'dirname': <function dirname at 0x7a19e38680>,
|
1494
|
+
'is_iterable': <function is_iterable at 0x7a19e38860>,
|
1495
|
+
'to_str': <function to_str at 0x7a19e38900>,
|
1496
|
+
'filter_empty': <function filter_empty at 0x7a19e38720>,
|
1497
|
+
'get_class_method': <function get_class_method at 0x7a19e387c0>,
|
1498
|
+
'get_filesize': <function get_filesize at 0x7a19e38a40>,
|
1499
|
+
'github_init': <function github_init at 0x7a19e38b80>,
|
1500
|
+
'github_pull': <function github_pull at 0x7a19e38ae0>,
|
1501
|
+
'github_push': <function github_push at 0x7a19e38cc0>,
|
1502
|
+
'github_user': <function github_user at 0x7a19e38d60>,
|
1503
|
+
'hex_to_int': <function hex_to_int at 0x7a19e38e00>,
|
1504
|
+
'iargv': <function iargv at 0x7a19e38ea0>,
|
1505
|
+
'idumps_html': <function idumps_html at 0x7a19e39120>,
|
1506
|
+
'idumps': <function idumps at 0x7a19e38fe0>,
|
1507
|
+
'int_to_int': <function int_to_int at 0x7a19f09a80>,
|
1508
|
+
'ienumerate': <function ienumerate at 0x7a19e39620>,
|
1509
|
+
'ienv': <function ienv at 0x7a19e3b1a0>,
|
1510
|
+
'iexec': <function iexec at 0x7a19f09b20>,
|
1511
|
+
'ijoin': <function ijoin at 0x7a19f09c60>,
|
1512
|
+
'iloads_html': <function iloads_html at 0x7a19f09e40>,
|
1513
|
+
'iloads': <function iloads at 0x7a19f09bc0>,
|
1514
|
+
'int_to_bin': <function int_to_bin at 0x7a19f09da0>,
|
1515
|
+
'int_to_hex': <function int_to_hex at 0x7a19f09ee0>,
|
1516
|
+
'int_to_oct': <function int_to_oct at 0x7a19f09f80>,
|
1517
|
+
'is_valid_url': <function is_valid_url at 0x7a19f0a160>,
|
1518
|
+
'iopen': <function iopen at 0x7a19d125c0>,
|
1519
|
+
'iprint': <function iprint at 0x7a19f0a0c0>,
|
1520
|
+
'ireplace': <function ireplace at 0x7a19d12700>,
|
1521
|
+
'iscandir': <function iscandir at 0x7a19dc9d00>,
|
1522
|
+
'isplit': <function isplit at 0x7a19dc9da0>,
|
1523
|
+
'ivars': <function ivars at 0x7a19dc9e40>,
|
1524
|
+
'log': <function log at 0x7a19dc9ee0>,
|
1525
|
+
'oct_to_int': <function oct_to_int at 0x7a19dc9f80>,
|
1526
|
+
'password_generator': <function password_generator at 0x7a19dca020>,
|
1527
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7a19dca160>,
|
1528
|
+
'poetry_publish': <function poetry_publish at 0x7a19dca200>,
|
1529
|
+
'poetry_update_version': <function poetry_update_version at 0x7a19dca340>,
|
1530
|
+
'print_dir': <function print_dir at 0x7a19dca520>,
|
1531
|
+
'print_to_last_line': <function print_to_last_line at 0x7a19dca5c0>,
|
1532
|
+
'random_bool': <function random_bool at 0x7a19dca660>,
|
1533
|
+
'restart': <function restart at 0x7a19dca700>,
|
1534
|
+
'set_timeout': <function set_timeout at 0x7a19dca7a0>,
|
1535
|
+
'sets_ordered': <function sets_ordered at 0x7a19dca840>,
|
1536
|
+
'str_cmp': <function str_cmp at 0x7a19dca8e0>,
|
1537
|
+
'text_colorize': <function text_colorize at 0x7a19dca980>},
|
1510
1538
|
'variable': {'LINUX': True,
|
1511
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1539
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7a1db70850>,
|
1512
1540
|
'WINDOWS': False},
|
1513
1541
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1514
1542
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1598,7 +1626,7 @@ print(password_generator())
|
|
1598
1626
|
|
1599
1627
|
Output:
|
1600
1628
|
```py
|
1601
|
-
|
1629
|
+
Z[ElVvWE
|
1602
1630
|
```
|
1603
1631
|
|
1604
1632
|
## pip_freeze_without_version
|
@@ -1656,7 +1684,7 @@ Output:
|
|
1656
1684
|
__enter__ : https:/www.google.com
|
1657
1685
|
__fspath__ : https:/www.google.com
|
1658
1686
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1659
|
-
__hash__ : -
|
1687
|
+
__hash__ : -6368168625464002048
|
1660
1688
|
__init__ : None
|
1661
1689
|
__init_subclass__ : None
|
1662
1690
|
__module__ : pathlib
|
@@ -1669,8 +1697,8 @@ Output:
|
|
1669
1697
|
_cached_cparts : ['https:', 'www.google.com']
|
1670
1698
|
_cparts : ['https:', 'www.google.com']
|
1671
1699
|
_drv :
|
1672
|
-
_flavour : <pathlib._PosixFlavour object at
|
1673
|
-
_hash : -
|
1700
|
+
_flavour : <pathlib._PosixFlavour object at 0x7a25714dd0>
|
1701
|
+
_hash : -6368168625464002048
|
1674
1702
|
_parts : ['https:', 'www.google.com']
|
1675
1703
|
_root :
|
1676
1704
|
_str : https:/www.google.com
|
@@ -1692,7 +1720,7 @@ Output:
|
|
1692
1720
|
is_reserved : False
|
1693
1721
|
is_socket : False
|
1694
1722
|
is_symlink : False
|
1695
|
-
iterdir : <generator object Path.iterdir at
|
1723
|
+
iterdir : <generator object Path.iterdir at 0x7a10af2a40>
|
1696
1724
|
joinpath : https:/www.google.com
|
1697
1725
|
name : www.google.com
|
1698
1726
|
parent : https:
|
@@ -1732,7 +1760,7 @@ print(random_bool())
|
|
1732
1760
|
|
1733
1761
|
Output:
|
1734
1762
|
```py
|
1735
|
-
|
1763
|
+
True
|
1736
1764
|
```
|
1737
1765
|
|
1738
1766
|
## restart
|
@@ -1766,7 +1794,7 @@ x.cancel()
|
|
1766
1794
|
|
1767
1795
|
Output:
|
1768
1796
|
```py
|
1769
|
-
<Timer(Thread-2, started
|
1797
|
+
<Timer(Thread-2, started 524237651184)>
|
1770
1798
|
menghentikan timeout 7
|
1771
1799
|
```
|
1772
1800
|
|
@@ -1784,7 +1812,7 @@ print(list(sets_ordered(array)))
|
|
1784
1812
|
|
1785
1813
|
Output:
|
1786
1814
|
```py
|
1787
|
-
<generator object sets_ordered at
|
1815
|
+
<generator object sets_ordered at 0x7a10b24fb0>
|
1788
1816
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1789
1817
|
```
|
1790
1818
|
|
@@ -1879,15 +1907,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
1879
1907
|
|
1880
1908
|
Output:
|
1881
1909
|
```py
|
1882
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1910
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7a10b24ad0>,
|
1883
1911
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1884
1912
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1885
1913
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
1886
|
-
{'a':
|
1887
|
-
{'a':
|
1888
|
-
{'a':
|
1889
|
-
{'a':
|
1890
|
-
{'a':
|
1914
|
+
{'a': 130, 'b': 132, 'c': 100, 'd': 191}
|
1915
|
+
{'a': 107, 'b': 141, 'c': 100, 'd': 198}
|
1916
|
+
{'a': 107, 'b': 131, 'c': 100, 'd': 163}
|
1917
|
+
{'a': 109, 'b': 124, 'c': 100, 'd': 151}
|
1918
|
+
{'a': 105, 'b': 130, 'c': 100, 'd': 153}
|
1891
1919
|
```
|
1892
1920
|
|
1893
1921
|
## PintUregQuantity
|
@@ -5,8 +5,8 @@ pypipr/PintUreg.py,sha256=_jmHZhUn8AcgFkXvZ6OTsWnjtp-CYcXUJ-dG_QdcARY,222
|
|
5
5
|
pypipr/PintUregQuantity.py,sha256=ErSZKB-GHShi1zKac30XgFdBwAUrxMo80IQzIjQ2HVc,118
|
6
6
|
pypipr/RunParallel.py,sha256=3H6sVSeUSATQQsWBcDGTtaXuc-12Yc0XmDyVtsg3PMA,5992
|
7
7
|
pypipr/WINDOWS.py,sha256=NMW-94lzdqwfEWv2lF_i2GcSHJFDwWjccFufpymg4-E,83
|
8
|
-
pypipr/__init__.py,sha256=
|
9
|
-
pypipr/__terminal__.py,sha256=
|
8
|
+
pypipr/__init__.py,sha256=7_bBcDP-U2L97edsnE1EpaNk47yE3hpdC1BBmCvtd-o,3144
|
9
|
+
pypipr/__terminal__.py,sha256=N_NEXa0V5QLb-dkP1Vp_fYKNjE4jGTqkiYNwPPOXZtw,1412
|
10
10
|
pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
|
11
11
|
pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
12
12
|
pypipr/basename.py,sha256=nypVfls6YL_7sY-MYHDcatm5flpBpGj2aMlIOKG9YqE,194
|
@@ -30,6 +30,7 @@ pypipr/get_by_index.py,sha256=wCJa8su5QZyZPA4UfEvR2nSEir0NfXcU0pxx2Lzpux8,335
|
|
30
30
|
pypipr/get_class_method.py,sha256=RThCReUbF0uAlU-n5u0ELuP5yUbFqcKFfShswh7mgqc,639
|
31
31
|
pypipr/get_filemtime.py,sha256=e8Glf4p9PJcL2yU8ZbrKOHYB-puaSNQsTS6Qhgp9F9s,227
|
32
32
|
pypipr/get_filesize.py,sha256=2RCjrdZvaBDCdessFj-h7gLi13rPe6IXJXZcAoywWIA,196
|
33
|
+
pypipr/github_init.py,sha256=Q3WbDqobE3zJiOQa7IgUPwk8JLxawelLd4SVt7gZb8Q,959
|
33
34
|
pypipr/github_pull.py,sha256=RLECOHA0Ki1wy5FJ9wWeyOGxwPc9nKKuY4R06d1o70E,186
|
34
35
|
pypipr/github_push.py,sha256=LO60-QwiT3F__bQ3Foz1Znn6wy0reDck4Rf36r62OCg,874
|
35
36
|
pypipr/github_user.py,sha256=fnds19Hlab3B94ORIYO9RiETF6p7dO-T3d1q_3XR-aw,483
|
@@ -76,7 +77,7 @@ pypipr/sets_ordered.py,sha256=ve2Nc1eNYD_7QaTf_4otEAvzL1XpZP2MjX0KHSXF5nA,325
|
|
76
77
|
pypipr/str_cmp.py,sha256=2kavWiT4VTddXcBotF1CxDOWSygk5rFrbllKxBjw9dc,377
|
77
78
|
pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
|
78
79
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
79
|
-
pypipr-1.0.
|
80
|
-
pypipr-1.0.
|
81
|
-
pypipr-1.0.
|
82
|
-
pypipr-1.0.
|
80
|
+
pypipr-1.0.126.dist-info/METADATA,sha256=RPW8EgfzFu4bHQeoouK5Ae9ZBNCVtnhHPcsLt5OlDDs,53404
|
81
|
+
pypipr-1.0.126.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
82
|
+
pypipr-1.0.126.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
83
|
+
pypipr-1.0.126.dist-info/RECORD,,
|
File without changes
|
File without changes
|