pypipr 1.0.127__py3-none-any.whl → 1.0.129__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/choices.py +11 -9
- {pypipr-1.0.127.dist-info → pypipr-1.0.129.dist-info}/METADATA +152 -152
- {pypipr-1.0.127.dist-info → pypipr-1.0.129.dist-info}/RECORD +5 -5
- {pypipr-1.0.127.dist-info → pypipr-1.0.129.dist-info}/WHEEL +0 -0
- {pypipr-1.0.127.dist-info → pypipr-1.0.129.dist-info}/entry_points.txt +0 -0
pypipr/choices.py
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
from .exit_if_empty import exit_if_empty
|
2
|
-
from .print_colorize import print_colorize
|
3
2
|
from .input_char import input_char
|
4
|
-
from .
|
5
|
-
|
6
|
-
|
3
|
+
from .print_colorize import print_colorize
|
7
4
|
|
8
5
|
|
9
6
|
def print_choices(l):
|
@@ -18,13 +15,17 @@ def get_choices(prompt):
|
|
18
15
|
return i
|
19
16
|
|
20
17
|
|
18
|
+
def convert_to_str(daftar):
|
19
|
+
if len(daftar) == 1:
|
20
|
+
daftar = daftar[0]
|
21
|
+
return daftar
|
22
|
+
|
23
|
+
|
21
24
|
def filter_choices(contains, daftar):
|
22
25
|
if contains.isdigit():
|
23
|
-
daftar =
|
26
|
+
daftar = [v for i, v in enumerate(daftar) if contains in str(i)]
|
24
27
|
else:
|
25
28
|
daftar = [v for v in daftar if contains in v]
|
26
|
-
if len(daftar) == 1:
|
27
|
-
daftar = get_by_index(daftar, 0)
|
28
29
|
return daftar
|
29
30
|
|
30
31
|
|
@@ -52,10 +53,11 @@ def choices(daftar, contains=None, prompt="Choose : "):
|
|
52
53
|
print(res)
|
53
54
|
```
|
54
55
|
"""
|
55
|
-
daftar = list(v for v in daftar)
|
56
|
+
daftar = list(str(v) for v in daftar)
|
56
57
|
while isinstance(daftar, list):
|
57
58
|
contains = contains or get_contains(daftar, prompt)
|
58
59
|
daftar = filter_choices(contains, daftar)
|
59
60
|
exit_if_empty(daftar)
|
60
|
-
|
61
|
+
daftar = convert_to_str(daftar)
|
62
|
+
contains = None
|
61
63
|
return daftar
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.129
|
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 0x7bebe0f840>
|
252
|
+
<generator object int_range at 0x7bebe0f840>
|
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 0x7bebc6dc60>
|
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 0x7bebc7e020>
|
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
|
|
@@ -408,23 +408,6 @@ input_char("Input char : ", default='Y')
|
|
408
408
|
input_char("Input Char without print : ", echo_char=False)
|
409
409
|
```
|
410
410
|
|
411
|
-
## get_by_index
|
412
|
-
|
413
|
-
`get_by_index(obj, index, on_error=None)`
|
414
|
-
|
415
|
-
Mendapatkan value dari object berdasarkan indexnya.
|
416
|
-
Jika error out of range maka akan mengembalikan on_error.
|
417
|
-
|
418
|
-
```python
|
419
|
-
l = [1, 3, 5]
|
420
|
-
print(get_by_index(l, 7))
|
421
|
-
```
|
422
|
-
|
423
|
-
Output:
|
424
|
-
```py
|
425
|
-
None
|
426
|
-
```
|
427
|
-
|
428
411
|
## choices
|
429
412
|
|
430
413
|
`choices(daftar, contains=None, prompt='Choose : ')`
|
@@ -458,7 +441,7 @@ print(list(chunk_array(arr, 5)))
|
|
458
441
|
|
459
442
|
Output:
|
460
443
|
```py
|
461
|
-
<generator object chunk_array at
|
444
|
+
<generator object chunk_array at 0x7bebe0f940>
|
462
445
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
463
446
|
```
|
464
447
|
|
@@ -509,9 +492,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
509
492
|
|
510
493
|
Output:
|
511
494
|
```py
|
512
|
-
2024-05-07
|
513
|
-
2024-05-07
|
514
|
-
2024-05-07
|
495
|
+
2024-05-07 21:19:41.860727+07:00
|
496
|
+
2024-05-07 14:19:41.861681+00:00
|
497
|
+
2024-05-07 07:19:41.863680-07:00
|
515
498
|
```
|
516
499
|
|
517
500
|
## dict_first
|
@@ -617,10 +600,27 @@ iprint(filter_empty(var))
|
|
617
600
|
|
618
601
|
Output:
|
619
602
|
```py
|
620
|
-
<generator object filter_empty at
|
603
|
+
<generator object filter_empty at 0x7bebc7dd50>
|
621
604
|
[1, '0', True, {}, ['eee']]
|
622
605
|
```
|
623
606
|
|
607
|
+
## get_by_index
|
608
|
+
|
609
|
+
`get_by_index(obj, index, on_error=None)`
|
610
|
+
|
611
|
+
Mendapatkan value dari object berdasarkan indexnya.
|
612
|
+
Jika error out of range maka akan mengembalikan on_error.
|
613
|
+
|
614
|
+
```python
|
615
|
+
l = [1, 3, 5]
|
616
|
+
print(get_by_index(l, 7))
|
617
|
+
```
|
618
|
+
|
619
|
+
Output:
|
620
|
+
```py
|
621
|
+
None
|
622
|
+
```
|
623
|
+
|
624
624
|
## get_class_method
|
625
625
|
|
626
626
|
`get_class_method(cls)`
|
@@ -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 0x7bebc7e2f0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x7bebccdbc0>, <function ExampleGetClassMethod.b at 0x7bebccdb20>, <function ExampleGetClassMethod.c at 0x7bebccda80>, <function ExampleGetClassMethod.d at 0x7bebccdd00>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -937,7 +937,7 @@ Output:
|
|
937
937
|
|
938
938
|
## ienumerate
|
939
939
|
|
940
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
940
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7bee5a1120>)`
|
941
941
|
|
942
942
|
meningkatkan fungsi enumerate() pada python
|
943
943
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -950,7 +950,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
950
950
|
|
951
951
|
Output:
|
952
952
|
```py
|
953
|
-
<generator object ienumerate at
|
953
|
+
<generator object ienumerate at 0x7bebc7e3e0>
|
954
954
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
955
955
|
```
|
956
956
|
|
@@ -1017,7 +1017,7 @@ print(ijoin(10, ' '))
|
|
1017
1017
|
|
1018
1018
|
Output:
|
1019
1019
|
```py
|
1020
|
-
|
1020
|
+
dfs, qweqw, weq, asd
|
1021
1021
|
,ini,path,seperti,url,
|
1022
1022
|
ini,path,seperti,url
|
1023
1023
|
<li>satu</li>
|
@@ -1063,9 +1063,9 @@ Output:
|
|
1063
1063
|
```py
|
1064
1064
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1065
1065
|
[['Harga Emas Hari Ini - Selasa, 07 Mei 2024'],
|
1066
|
-
['Spot Emas USD↓2.
|
1066
|
+
['Spot Emas USD↓2.320,30 (-3,35) / oz',
|
1067
1067
|
'Kurs IDR↓16.025,01 (-68,99) / USD',
|
1068
|
-
'Emas IDR↓1.
|
1068
|
+
'Emas IDR↓1.195.456 (-6.880) / gr'],
|
1069
1069
|
['LM Antam (Jual)↑1.318.000 (+8.000) / gr',
|
1070
1070
|
'LM Antam (Beli)↑1.210.000 (+7.000) / gr']],
|
1071
1071
|
[['Harga Emas Hari Ini'],
|
@@ -1136,10 +1136,10 @@ Output:
|
|
1136
1136
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1137
1137
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1138
1138
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1139
|
-
['Ounce\xa0(oz)', '2.
|
1140
|
-
['Gram\xa0(gr)', '74,
|
1141
|
-
['Kilogram\xa0(kg)', '74.
|
1142
|
-
['Update harga emas :07 Mei 2024, pukul
|
1139
|
+
['Ounce\xa0(oz)', '2.320,30 (-3,35)', '16.025,01 (-68,99)', '37.182.831'],
|
1140
|
+
['Gram\xa0(gr)', '74,60', '16.025,01', '1.195.456 (-6.880)'],
|
1141
|
+
['Kilogram\xa0(kg)', '74.599,38', '16.025,01', '1.195.455.768'],
|
1142
|
+
['Update harga emas :07 Mei 2024, pukul 21:18Update kurs :07 Mei 2024, pukul '
|
1143
1143
|
'13:10']],
|
1144
1144
|
[['Gram', 'UBS Gold 99.99%'],
|
1145
1145
|
['Jual', 'Beli'],
|
@@ -1185,36 +1185,36 @@ Output:
|
|
1185
1185
|
['Unit', 'USD', 'IDR'],
|
1186
1186
|
['Angka', '+/-', 'Angka', '+/-'],
|
1187
1187
|
['Hari Ini', 'Kurs', '', '', '16.094', '-69-0,43%'],
|
1188
|
-
['oz', '2.323,65', '-
|
1189
|
-
['gr', '74,71', '-0,
|
1188
|
+
['oz', '2.323,65', '-3,35-0,14%', '37.396.823', '-213.992-0,57%'],
|
1189
|
+
['gr', '74,71', '-0,11-0,14%', '1.202.336', '-6.880-0,57%'],
|
1190
1190
|
['30 Hari', 'Kurs', '', '', '15.907', '+118+0,74%'],
|
1191
|
-
['oz', '2.329,93', '-
|
1192
|
-
['gr', '74,91', '-0,
|
1191
|
+
['oz', '2.329,93', '-9,63-0,41%', '37.062.197', '+120.634+0,33%'],
|
1192
|
+
['gr', '74,91', '-0,31-0,41%', '1.191.577', '+3.878+0,33%'],
|
1193
1193
|
['2 Bulan', 'Kurs', '', '', '15.658', '+367+2,34%'],
|
1194
|
-
['oz', '2.179,67', '+
|
1195
|
-
['gr', '70,08', '+4,
|
1194
|
+
['oz', '2.179,67', '+140,63+6,45%', '34.129.273', '+3.053.558+8,95%'],
|
1195
|
+
['gr', '70,08', '+4,52+6,45', '1.097.282', '+98.174+8,95%'],
|
1196
1196
|
['6 Bulan', 'Kurs', '', '', '15.629', '+396+2,53%'],
|
1197
|
-
['oz', '1.960,90', '+
|
1198
|
-
['gr', '63,04', '+11,
|
1197
|
+
['oz', '1.960,90', '+359,40+18,33%', '30.646.906', '+6.535.925+21,33%'],
|
1198
|
+
['gr', '63,04', '+11,55+18,33%', '985.321', '+210.135+21,33%'],
|
1199
1199
|
['1 Tahun', 'Kurs', '', '', '15.731', '+294+1,87%'],
|
1200
|
-
['oz', '1.823,86', '+
|
1201
|
-
['gr', '58,64', '+15,
|
1200
|
+
['oz', '1.823,86', '+496,44+27,22%', '28.691.142', '+8.491.689+29,60%'],
|
1201
|
+
['gr', '58,64', '+15,96+27,22%', '922.442', '+273.014+29,60%'],
|
1202
1202
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.607+11,15%'],
|
1203
|
-
['oz', '1.883,86', '+
|
1204
|
-
['gr', '60,57', '+
|
1203
|
+
['oz', '1.883,86', '+436,44+23,17%', '27.161.493', '+10.021.337+36,90%'],
|
1204
|
+
['gr', '60,57', '+14,03+23,17%', '873.262', '+322.193+36,90%'],
|
1205
1205
|
['3 Tahun', 'Kurs', '', '', '14.364', '+1.661+11,56%'],
|
1206
|
-
['oz', '1.831,43', '+
|
1207
|
-
['gr', '58,88', '+15,
|
1206
|
+
['oz', '1.831,43', '+488,87+26,69%', '26.306.661', '+10.876.170+41,34%'],
|
1207
|
+
['gr', '58,88', '+15,72+26,69%', '845.779', '+349.677+41,34%'],
|
1208
1208
|
['5 Tahun', 'Kurs', '', '', '14.338', '+1.687+11,77%'],
|
1209
|
-
['oz', '1.284,03', '+1.
|
1210
|
-
['gr', '41,28', '+33,
|
1209
|
+
['oz', '1.284,03', '+1.036,27+80,70%', '18.410.422', '+18.772.409+101,97%'],
|
1210
|
+
['gr', '41,28', '+33,32+80,70%', '591.909', '+603.547+101,97%']])
|
1211
1211
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1212
1212
|
[[''],
|
1213
1213
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1214
|
-
['USD', '74,
|
1215
|
-
['KURS', '16.
|
1216
|
-
['IDR', '1.
|
1217
|
-
['Selasa, 07 Mei 2024 18
|
1214
|
+
['USD', '74,60↓', '-0,11-0,15%'],
|
1215
|
+
['KURS', '16.046,00↑', '+2,10+0,01%'],
|
1216
|
+
['IDR', '1.197.021,61↓', '-1.571,35-0,13%'],
|
1217
|
+
['Selasa, 07 Mei 2024 21:18']],
|
1218
1218
|
[[''],
|
1219
1219
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1220
1220
|
'Hari Ini',
|
@@ -1225,19 +1225,19 @@ Output:
|
|
1225
1225
|
'']],
|
1226
1226
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1227
1227
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1228
|
-
['USD', '74,71', '74,
|
1229
|
-
['KURS', '16.043,90', '16.043,90 - 16.
|
1230
|
-
['IDR', '1.198.592,96', '1.
|
1228
|
+
['USD', '74,71', '74,60 - 74,71', '74,66'],
|
1229
|
+
['KURS', '16.043,90', '16.043,90 - 16.046,00', '16.044,95'],
|
1230
|
+
['IDR', '1.198.592,96', '1.197.021,61 - 1.198.592,96', '1.197.807,29'],
|
1231
1231
|
[''],
|
1232
1232
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1233
|
-
['USD', '66,32', '64,07 - 77,14', '+8,
|
1234
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1235
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1233
|
+
['USD', '66,32', '64,07 - 77,14', '+8,28 (12,48%)'],
|
1234
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+655,90 (4,26%)'],
|
1235
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+176.292,08 (17,27%)'],
|
1236
1236
|
[''],
|
1237
1237
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1238
|
-
['USD', '64,84', '58,43 - 77,14', '+9,
|
1239
|
-
['KURS', '14.674,80', '14.674,80 - 16.307,80', '+1.
|
1240
|
-
['IDR', '951.570,92', '912.925,68 - 1.256.829,06', '+
|
1238
|
+
['USD', '64,84', '58,43 - 77,14', '+9,76 (15,05%)'],
|
1239
|
+
['KURS', '14.674,80', '14.674,80 - 16.307,80', '+1.371,20 (9,34%)'],
|
1240
|
+
['IDR', '951.570,92', '912.925,68 - 1.256.829,06', '+245.450,69 (25,79%)']])
|
1241
1241
|
```
|
1242
1242
|
|
1243
1243
|
## iloads
|
@@ -1367,7 +1367,7 @@ Output:
|
|
1367
1367
|
```py
|
1368
1368
|
8
|
1369
1369
|
['mana', 'aja']
|
1370
|
-
[<Element a at
|
1370
|
+
[<Element a at 0x7bebcba670>, <Element a at 0x7be7f2a260>, <Element a at 0x7be7f2a300>, <Element a at 0x7be7f2a350>, <Element a at 0x7be7f2a3a0>, <Element a at 0x7be7f2a3f0>, <Element a at 0x7be7f2a440>, <Element a at 0x7be7f2a490>, <Element a at 0x7be7f2a4e0>, <Element a at 0x7be7f2a530>, <Element a at 0x7be7f2a580>, <Element a at 0x7be7f2a5d0>, <Element a at 0x7be7f2a620>, <Element a at 0x7be7f2a670>, <Element a at 0x7be7f2a6c0>, <Element a at 0x7be7f2a710>, <Element a at 0x7be7f2a760>, <Element a at 0x7be7f2a7b0>]
|
1371
1371
|
False
|
1372
1372
|
```
|
1373
1373
|
|
@@ -1429,7 +1429,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1429
1429
|
|
1430
1430
|
Output:
|
1431
1431
|
```py
|
1432
|
-
<generator object iscandir at
|
1432
|
+
<generator object iscandir at 0x7bebe0fb40>
|
1433
1433
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1434
1434
|
```
|
1435
1435
|
|
@@ -1462,80 +1462,80 @@ iprint(ivars(__import__('pypipr')))
|
|
1462
1462
|
|
1463
1463
|
Output:
|
1464
1464
|
```py
|
1465
|
-
{'function': {'avg': <function avg at
|
1466
|
-
'get_filemtime': <function get_filemtime at
|
1467
|
-
'print_colorize': <function print_colorize at
|
1468
|
-
'print_log': <function print_log at
|
1469
|
-
'console_run': <function console_run at
|
1470
|
-
'auto_reload': <function auto_reload at
|
1471
|
-
'basename': <function basename at
|
1472
|
-
'chr_to_int': <function chr_to_int at
|
1473
|
-
'int_to_chr': <function int_to_chr at
|
1474
|
-
'irange': <function irange at
|
1475
|
-
'batchmaker': <function batchmaker at
|
1476
|
-
'calculate': <function calculate at
|
1477
|
-
'batch_calculate': <function batch_calculate at
|
1478
|
-
'bin_to_int': <function bin_to_int at
|
1479
|
-
'is_empty': <function is_empty at
|
1480
|
-
'exit_if_empty': <function exit_if_empty at
|
1481
|
-
'input_char': <function input_char at
|
1482
|
-
'
|
1483
|
-
'
|
1484
|
-
'
|
1485
|
-
'
|
1486
|
-
'
|
1487
|
-
'
|
1488
|
-
'
|
1489
|
-
'
|
1490
|
-
'
|
1491
|
-
'
|
1492
|
-
'
|
1493
|
-
'get_class_method': <function get_class_method at
|
1494
|
-
'get_filesize': <function get_filesize at
|
1495
|
-
'github_init': <function github_init at
|
1496
|
-
'github_pull': <function github_pull at
|
1497
|
-
'github_push': <function github_push at
|
1498
|
-
'github_user': <function github_user at
|
1499
|
-
'hex_to_int': <function hex_to_int at
|
1500
|
-
'iargv': <function iargv at
|
1501
|
-
'idumps_html': <function idumps_html at
|
1502
|
-
'idumps': <function idumps at
|
1503
|
-
'int_to_int': <function int_to_int at
|
1504
|
-
'ienumerate': <function ienumerate at
|
1505
|
-
'ienv': <function ienv at
|
1506
|
-
'iexec': <function iexec at
|
1507
|
-
'ijoin': <function ijoin at
|
1508
|
-
'iloads_html': <function iloads_html at
|
1509
|
-
'iloads': <function iloads at
|
1510
|
-
'int_to_bin': <function int_to_bin at
|
1511
|
-
'int_to_hex': <function int_to_hex at
|
1512
|
-
'int_to_oct': <function int_to_oct at
|
1513
|
-
'is_valid_url': <function is_valid_url at
|
1514
|
-
'iopen': <function iopen at
|
1515
|
-
'iprint': <function iprint at
|
1516
|
-
'ireplace': <function ireplace at
|
1517
|
-
'iscandir': <function iscandir at
|
1518
|
-
'isplit': <function isplit at
|
1519
|
-
'ivars': <function ivars at
|
1520
|
-
'log': <function log at
|
1521
|
-
'oct_to_int': <function oct_to_int at
|
1522
|
-
'password_generator': <function password_generator at
|
1523
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1524
|
-
'poetry_publish': <function poetry_publish at
|
1525
|
-
'poetry_update_version': <function poetry_update_version at
|
1526
|
-
'print_dir': <function print_dir at
|
1527
|
-
'print_to_last_line': <function print_to_last_line at
|
1528
|
-
'random_bool': <function random_bool at
|
1529
|
-
'restart': <function restart at
|
1530
|
-
'set_timeout': <function set_timeout at
|
1531
|
-
'sets_ordered': <function sets_ordered at
|
1532
|
-
'str_cmp': <function str_cmp at
|
1533
|
-
'text_colorize': <function text_colorize at
|
1465
|
+
{'function': {'avg': <function avg at 0x7bf979fb00>,
|
1466
|
+
'get_filemtime': <function get_filemtime at 0x7bee76fd80>,
|
1467
|
+
'print_colorize': <function print_colorize at 0x7bee76ff60>,
|
1468
|
+
'print_log': <function print_log at 0x7bee76fe20>,
|
1469
|
+
'console_run': <function console_run at 0x7bee76fec0>,
|
1470
|
+
'auto_reload': <function auto_reload at 0x7beec372e0>,
|
1471
|
+
'basename': <function basename at 0x7bee76fce0>,
|
1472
|
+
'chr_to_int': <function chr_to_int at 0x7bee774540>,
|
1473
|
+
'int_to_chr': <function int_to_chr at 0x7bee7745e0>,
|
1474
|
+
'irange': <function irange at 0x7bee774860>,
|
1475
|
+
'batchmaker': <function batchmaker at 0x7bee774220>,
|
1476
|
+
'calculate': <function calculate at 0x7bee774360>,
|
1477
|
+
'batch_calculate': <function batch_calculate at 0x7bee7740e0>,
|
1478
|
+
'bin_to_int': <function bin_to_int at 0x7bee774180>,
|
1479
|
+
'is_empty': <function is_empty at 0x7bee774fe0>,
|
1480
|
+
'exit_if_empty': <function exit_if_empty at 0x7bee774ea0>,
|
1481
|
+
'input_char': <function input_char at 0x7bee7744a0>,
|
1482
|
+
'choices': <function choices at 0x7bee775260>,
|
1483
|
+
'chunk_array': <function chunk_array at 0x7bee775300>,
|
1484
|
+
'create_folder': <function create_folder at 0x7bee7753a0>,
|
1485
|
+
'datetime_from_string': <function datetime_from_string at 0x7bee775440>,
|
1486
|
+
'datetime_now': <function datetime_now at 0x7bee7754e0>,
|
1487
|
+
'dict_first': <function dict_first at 0x7bee7776a0>,
|
1488
|
+
'dirname': <function dirname at 0x7bee777740>,
|
1489
|
+
'is_iterable': <function is_iterable at 0x7bee777920>,
|
1490
|
+
'to_str': <function to_str at 0x7bee7779c0>,
|
1491
|
+
'filter_empty': <function filter_empty at 0x7bee7777e0>,
|
1492
|
+
'get_by_index': <function get_by_index at 0x7bee775620>,
|
1493
|
+
'get_class_method': <function get_class_method at 0x7bee777a60>,
|
1494
|
+
'get_filesize': <function get_filesize at 0x7bee777ba0>,
|
1495
|
+
'github_init': <function github_init at 0x7bee777c40>,
|
1496
|
+
'github_pull': <function github_pull at 0x7bee777ce0>,
|
1497
|
+
'github_push': <function github_push at 0x7bee777e20>,
|
1498
|
+
'github_user': <function github_user at 0x7bee777ec0>,
|
1499
|
+
'hex_to_int': <function hex_to_int at 0x7bee777f60>,
|
1500
|
+
'iargv': <function iargv at 0x7bee534040>,
|
1501
|
+
'idumps_html': <function idumps_html at 0x7bee5342c0>,
|
1502
|
+
'idumps': <function idumps at 0x7bee534180>,
|
1503
|
+
'int_to_int': <function int_to_int at 0x7bee5a1120>,
|
1504
|
+
'ienumerate': <function ienumerate at 0x7bee56b4c0>,
|
1505
|
+
'ienv': <function ienv at 0x7bee5a0fe0>,
|
1506
|
+
'iexec': <function iexec at 0x7bee5a11c0>,
|
1507
|
+
'ijoin': <function ijoin at 0x7bee5a1300>,
|
1508
|
+
'iloads_html': <function iloads_html at 0x7bee5a14e0>,
|
1509
|
+
'iloads': <function iloads at 0x7bfa1aa660>,
|
1510
|
+
'int_to_bin': <function int_to_bin at 0x7bee5a1260>,
|
1511
|
+
'int_to_hex': <function int_to_hex at 0x7bee5a1440>,
|
1512
|
+
'int_to_oct': <function int_to_oct at 0x7bee5a1580>,
|
1513
|
+
'is_valid_url': <function is_valid_url at 0x7bee5a1760>,
|
1514
|
+
'iopen': <function iopen at 0x7bee610f40>,
|
1515
|
+
'iprint': <function iprint at 0x7bee5a16c0>,
|
1516
|
+
'ireplace': <function ireplace at 0x7bee5a1a80>,
|
1517
|
+
'iscandir': <function iscandir at 0x7bee4ae2a0>,
|
1518
|
+
'isplit': <function isplit at 0x7bee4ae340>,
|
1519
|
+
'ivars': <function ivars at 0x7bee4ae3e0>,
|
1520
|
+
'log': <function log at 0x7bee4ae480>,
|
1521
|
+
'oct_to_int': <function oct_to_int at 0x7bee4ae520>,
|
1522
|
+
'password_generator': <function password_generator at 0x7bee4ae5c0>,
|
1523
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7bee4ae700>,
|
1524
|
+
'poetry_publish': <function poetry_publish at 0x7bee4ae7a0>,
|
1525
|
+
'poetry_update_version': <function poetry_update_version at 0x7bee4ae8e0>,
|
1526
|
+
'print_dir': <function print_dir at 0x7bee4aeac0>,
|
1527
|
+
'print_to_last_line': <function print_to_last_line at 0x7bee4aeb60>,
|
1528
|
+
'random_bool': <function random_bool at 0x7bee4aec00>,
|
1529
|
+
'restart': <function restart at 0x7bee4aeca0>,
|
1530
|
+
'set_timeout': <function set_timeout at 0x7bee4aed40>,
|
1531
|
+
'sets_ordered': <function sets_ordered at 0x7bee4aede0>,
|
1532
|
+
'str_cmp': <function str_cmp at 0x7bee4aee80>,
|
1533
|
+
'text_colorize': <function text_colorize at 0x7bee4aef20>},
|
1534
1534
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1535
1535
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1536
1536
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1537
1537
|
'variable': {'LINUX': True,
|
1538
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1538
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7bf97e9fd0>,
|
1539
1539
|
'WINDOWS': False},
|
1540
1540
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1541
1541
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1625,7 +1625,7 @@ print(password_generator())
|
|
1625
1625
|
|
1626
1626
|
Output:
|
1627
1627
|
```py
|
1628
|
-
|
1628
|
+
PoH*J>2x
|
1629
1629
|
```
|
1630
1630
|
|
1631
1631
|
## pip_freeze_without_version
|
@@ -1683,7 +1683,7 @@ Output:
|
|
1683
1683
|
__enter__ : https:/www.google.com
|
1684
1684
|
__fspath__ : https:/www.google.com
|
1685
1685
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1686
|
-
__hash__ :
|
1686
|
+
__hash__ : 6161109682065483924
|
1687
1687
|
__init__ : None
|
1688
1688
|
__init_subclass__ : None
|
1689
1689
|
__module__ : pathlib
|
@@ -1696,8 +1696,8 @@ Output:
|
|
1696
1696
|
_cached_cparts : ['https:', 'www.google.com']
|
1697
1697
|
_cparts : ['https:', 'www.google.com']
|
1698
1698
|
_drv :
|
1699
|
-
_flavour : <pathlib._PosixFlavour object at
|
1700
|
-
_hash :
|
1699
|
+
_flavour : <pathlib._PosixFlavour object at 0x7bf95d1150>
|
1700
|
+
_hash : 6161109682065483924
|
1701
1701
|
_parts : ['https:', 'www.google.com']
|
1702
1702
|
_root :
|
1703
1703
|
_str : https:/www.google.com
|
@@ -1719,7 +1719,7 @@ Output:
|
|
1719
1719
|
is_reserved : False
|
1720
1720
|
is_socket : False
|
1721
1721
|
is_symlink : False
|
1722
|
-
iterdir : <generator object Path.iterdir at
|
1722
|
+
iterdir : <generator object Path.iterdir at 0x7bebcd9a80>
|
1723
1723
|
joinpath : https:/www.google.com
|
1724
1724
|
name : www.google.com
|
1725
1725
|
parent : https:
|
@@ -1793,7 +1793,7 @@ x.cancel()
|
|
1793
1793
|
|
1794
1794
|
Output:
|
1795
1795
|
```py
|
1796
|
-
<Timer(Thread-2, started
|
1796
|
+
<Timer(Thread-2, started 532150205680)>
|
1797
1797
|
menghentikan timeout 7
|
1798
1798
|
```
|
1799
1799
|
|
@@ -1811,7 +1811,7 @@ print(list(sets_ordered(array)))
|
|
1811
1811
|
|
1812
1812
|
Output:
|
1813
1813
|
```py
|
1814
|
-
<generator object sets_ordered at
|
1814
|
+
<generator object sets_ordered at 0x7beec0d700>
|
1815
1815
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1816
1816
|
```
|
1817
1817
|
|
@@ -1881,15 +1881,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
1881
1881
|
|
1882
1882
|
Output:
|
1883
1883
|
```py
|
1884
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1884
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7beec0d630>,
|
1885
1885
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1886
1886
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1887
1887
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
1888
|
-
{'a': 100, 'b':
|
1889
|
-
{'a':
|
1890
|
-
{'a':
|
1891
|
-
{'a':
|
1892
|
-
{'a':
|
1888
|
+
{'a': 100, 'b': 123, 'c': 135, 'd': 143}
|
1889
|
+
{'a': 100, 'b': 131, 'c': 135, 'd': 120}
|
1890
|
+
{'a': 100, 'b': 121, 'c': 121, 'd': 122}
|
1891
|
+
{'a': 100, 'b': 117, 'c': 110, 'd': 122}
|
1892
|
+
{'a': 100, 'b': 122, 'c': 115, 'd': 121}
|
1893
1893
|
```
|
1894
1894
|
|
1895
1895
|
## PintUregQuantity
|
@@ -13,7 +13,7 @@ pypipr/batch_calculate.py,sha256=JoaciQk7j-nXSdqlwonRdZ3Qu6uqUYhuA7oxpTC548s,503
|
|
13
13
|
pypipr/batchmaker.py,sha256=y0D-fU0oCJsdffwZZyJMC0iLPjjiv-_43a7hLrChJDM,1110
|
14
14
|
pypipr/bin_to_int.py,sha256=9s935sdD-CC1d7WCsNO3dd8nqTfC8lpkxHB1zQ--mZc,191
|
15
15
|
pypipr/calculate.py,sha256=uSmDH43_x4ifdHN23PLdWKqjx023--1ZE6mf5A2hqg4,696
|
16
|
-
pypipr/choices.py,sha256=
|
16
|
+
pypipr/choices.py,sha256=qhRdquHqPWUKVdYwi7KDDf1_CYJi9i5E52hs2mMxCWs,1473
|
17
17
|
pypipr/choices.py.bak,sha256=hjVToqAIeMoMfL3kJxOERAicEVsQyUGwzbnorhLdMA4,1664
|
18
18
|
pypipr/chr_to_int.py,sha256=5ETJZag1eM8wa2ceIGsmNP-jNufC5bCScghTLcwGEAI,459
|
19
19
|
pypipr/chunk_array.py,sha256=aodjp-daihl-Xd8kPqcpHZICZub7Jx0QBqyoF0bd0dY,385
|
@@ -76,7 +76,7 @@ pypipr/sets_ordered.py,sha256=ve2Nc1eNYD_7QaTf_4otEAvzL1XpZP2MjX0KHSXF5nA,325
|
|
76
76
|
pypipr/str_cmp.py,sha256=2kavWiT4VTddXcBotF1CxDOWSygk5rFrbllKxBjw9dc,377
|
77
77
|
pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
|
78
78
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
79
|
-
pypipr-1.0.
|
80
|
-
pypipr-1.0.
|
81
|
-
pypipr-1.0.
|
82
|
-
pypipr-1.0.
|
79
|
+
pypipr-1.0.129.dist-info/METADATA,sha256=GMLPW34JklFvbUeI0v1F1G1ubtEF6IsgyxvF6IrY2MA,52681
|
80
|
+
pypipr-1.0.129.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
81
|
+
pypipr-1.0.129.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
82
|
+
pypipr-1.0.129.dist-info/RECORD,,
|
File without changes
|
File without changes
|