pypipr 1.0.132__tar.gz → 1.0.133__tar.gz
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-1.0.132 → pypipr-1.0.133}/PKG-INFO +134 -134
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/sqlite_all_tables.py +2 -2
- {pypipr-1.0.132 → pypipr-1.0.133}/pyproject.toml +1 -1
- {pypipr-1.0.132 → pypipr-1.0.133}/readme.md +133 -133
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/__init__.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/avg.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/basename.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/calculate.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/choices.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/choices.py.bak +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/console_run.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/dirname.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/github_init.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/github_push.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/github_user.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iargv.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/idir.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/idumps.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/ienv.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iexec.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iloads.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/input_char.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iopen.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iprint.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/irange.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/isplit.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/ivars.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/log.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/print_log.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/restart.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.132 → pypipr-1.0.133}/pypipr/to_str.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.133
|
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 0x79b3faf740>
|
252
|
+
<generator object int_range at 0x79b3faf740>
|
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 0x79b4031480>
|
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 0x79b403a110>
|
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
|
|
@@ -441,7 +441,7 @@ print(list(chunk_array(arr, 5)))
|
|
441
441
|
|
442
442
|
Output:
|
443
443
|
```py
|
444
|
-
<generator object chunk_array at
|
444
|
+
<generator object chunk_array at 0x79b3faf840>
|
445
445
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
446
446
|
```
|
447
447
|
|
@@ -492,9 +492,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
492
492
|
|
493
493
|
Output:
|
494
494
|
```py
|
495
|
-
2024-05-15 22:
|
496
|
-
2024-05-15 15:
|
497
|
-
2024-05-15 08:
|
495
|
+
2024-05-15 22:52:49.278745+07:00
|
496
|
+
2024-05-15 15:52:49.279485+00:00
|
497
|
+
2024-05-15 08:52:49.280851-07:00
|
498
498
|
```
|
499
499
|
|
500
500
|
## dict_first
|
@@ -600,7 +600,7 @@ iprint(filter_empty(var))
|
|
600
600
|
|
601
601
|
Output:
|
602
602
|
```py
|
603
|
-
<generator object filter_empty at
|
603
|
+
<generator object filter_empty at 0x79b4039e40>
|
604
604
|
[1, '0', True, {}, ['eee']]
|
605
605
|
```
|
606
606
|
|
@@ -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 0x79b403a3e0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x79b4072c00>, <function ExampleGetClassMethod.b at 0x79b4072ca0>, <function ExampleGetClassMethod.c at 0x79b4072de0>, <function ExampleGetClassMethod.d at 0x79b4072e80>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -1059,7 +1059,7 @@ Output:
|
|
1059
1059
|
|
1060
1060
|
## ienumerate
|
1061
1061
|
|
1062
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1062
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x79baa079c0>)`
|
1063
1063
|
|
1064
1064
|
meningkatkan fungsi enumerate() pada python
|
1065
1065
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1072,7 +1072,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1072
1072
|
|
1073
1073
|
Output:
|
1074
1074
|
```py
|
1075
|
-
<generator object ienumerate at
|
1075
|
+
<generator object ienumerate at 0x79b403a4d0>
|
1076
1076
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1077
1077
|
```
|
1078
1078
|
|
@@ -1139,7 +1139,7 @@ print(ijoin(10, ' '))
|
|
1139
1139
|
|
1140
1140
|
Output:
|
1141
1141
|
```py
|
1142
|
-
|
1142
|
+
dfs, asd, weq, qweqw
|
1143
1143
|
,ini,path,seperti,url,
|
1144
1144
|
ini,path,seperti,url
|
1145
1145
|
<li>satu</li>
|
@@ -1185,9 +1185,9 @@ Output:
|
|
1185
1185
|
```py
|
1186
1186
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1187
1187
|
[['Harga Emas Hari Ini - Rabu, 15 Mei 2024'],
|
1188
|
-
['Spot Emas USD↑2.
|
1188
|
+
['Spot Emas USD↑2.380,78 (+26,16) / oz',
|
1189
1189
|
'Kurs IDR↑16.131,00 (+46,00) / USD',
|
1190
|
-
'Emas IDR↑1.
|
1190
|
+
'Emas IDR↑1.234.729 (+17.050) / gr'],
|
1191
1191
|
['LM Antam (Jual)↑1.332.000 (+8.000) / gr',
|
1192
1192
|
'LM Antam (Beli)↑1.223.000 (+8.000) / gr']],
|
1193
1193
|
[['Harga Emas Hari Ini'],
|
@@ -1258,10 +1258,10 @@ Output:
|
|
1258
1258
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1259
1259
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1260
1260
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1261
|
-
['Ounce\xa0(oz)', '2.
|
1262
|
-
['Gram\xa0(gr)', '76,
|
1263
|
-
['Kilogram\xa0(kg)', '76.
|
1264
|
-
['Update harga emas :15 Mei 2024, pukul 22:
|
1261
|
+
['Ounce\xa0(oz)', '2.380,78 (+26,16)', '16.131,00 (+46,00)', '38.404.362'],
|
1262
|
+
['Gram\xa0(gr)', '76,54', '16.131,00', '1.234.729 (+17.050)'],
|
1263
|
+
['Kilogram\xa0(kg)', '76.543,85', '16.131,00', '1.234.728.917'],
|
1264
|
+
['Update harga emas :15 Mei 2024, pukul 22:52Update kurs :15 Mei 2024, pukul '
|
1265
1265
|
'13:10']],
|
1266
1266
|
[['Gram', 'UBS Gold 99.99%'],
|
1267
1267
|
['Jual', 'Beli'],
|
@@ -1307,36 +1307,36 @@ Output:
|
|
1307
1307
|
['Unit', 'USD', 'IDR'],
|
1308
1308
|
['Angka', '+/-', 'Angka', '+/-'],
|
1309
1309
|
['Hari Ini', 'Kurs', '', '', '16.085', '+46+0,29%'],
|
1310
|
-
['oz', '2.354,62', '+26,
|
1311
|
-
['gr', '75,70', '+0,
|
1310
|
+
['oz', '2.354,62', '+26,16+1,11%', '37.874.063', '+530.299+1,40%'],
|
1311
|
+
['gr', '75,70', '+0,84+1,11%', '1.217.679', '+17.050+1,40%'],
|
1312
1312
|
['30 Hari', 'Kurs', '', '', '15.907', '+224+1,41%'],
|
1313
|
-
['oz', '2.359,26', '+
|
1314
|
-
['gr', '75,85', '+0,
|
1313
|
+
['oz', '2.359,26', '+21,52+0,91%', '37.528.749', '+875.613+2,33%'],
|
1314
|
+
['gr', '75,85', '+0,69+0,91%', '1.206.577', '+28.152+2,33%'],
|
1315
1315
|
['2 Bulan', 'Kurs', '', '', '15.582', '+549+3,52%'],
|
1316
|
-
['oz', '2.156,08', '+
|
1317
|
-
['gr', '69,32', '+7,
|
1316
|
+
['oz', '2.156,08', '+224,70+10,42%', '33.596.039', '+4.808.324+14,31%'],
|
1317
|
+
['gr', '69,32', '+7,22+10,42', '1.080.138', '+154.591+14,31%'],
|
1318
1318
|
['6 Bulan', 'Kurs', '', '', '15.595', '+536+3,44%'],
|
1319
|
-
['oz', '1.981,17', '+
|
1320
|
-
['gr', '63,70', '+12,
|
1319
|
+
['oz', '1.981,17', '+399,61+20,17%', '30.896.346', '+7.508.016+24,30%'],
|
1320
|
+
['gr', '63,70', '+12,85+20,17%', '993.341', '+241.388+24,30%'],
|
1321
1321
|
['1 Tahun', 'Kurs', '', '', '15.731', '+400+2,54%'],
|
1322
|
-
['oz', '1.823,86', '+
|
1323
|
-
['gr', '58,64', '+17,
|
1322
|
+
['oz', '1.823,86', '+556,92+30,54%', '28.691.142', '+9.713.221+33,85%'],
|
1323
|
+
['gr', '58,64', '+17,91+30,54%', '922.442', '+312.287+33,85%'],
|
1324
1324
|
['2 Tahun', 'Kurs', '', '', '14.585', '+1.546+10,60%'],
|
1325
|
-
['oz', '1.816,04', '+
|
1326
|
-
['gr', '58,39', '+18,
|
1325
|
+
['oz', '1.816,04', '+564,74+31,10%', '26.486.962', '+11.917.401+44,99%'],
|
1326
|
+
['gr', '58,39', '+18,16+31,10%', '851.576', '+383.153+44,99%'],
|
1327
1327
|
['3 Tahun', 'Kurs', '', '', '14.198', '+1.933+13,61%'],
|
1328
|
-
['oz', '1.843,91', '+
|
1329
|
-
['gr', '59,28', '+17,
|
1328
|
+
['oz', '1.843,91', '+536,87+29,12%', '26.179.834', '+12.224.528+46,69%'],
|
1329
|
+
['gr', '59,28', '+17,26+29,12%', '841.701', '+393.028+46,69%'],
|
1330
1330
|
['5 Tahun', 'Kurs', '', '', '14.469', '+1.662+11,49%'],
|
1331
|
-
['oz', '1.275,87', '+1.
|
1332
|
-
['gr', '41,02', '+35,
|
1331
|
+
['oz', '1.275,87', '+1.104,91+86,60%', '18.460.563', '+19.943.799+108,03%'],
|
1332
|
+
['gr', '41,02', '+35,52+86,60%', '593.521', '+641.208+108,03%']])
|
1333
1333
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1334
1334
|
[[''],
|
1335
1335
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1336
|
-
['USD', '76,
|
1336
|
+
['USD', '76,54↑', '+0,84+1,11%'],
|
1337
1337
|
['KURS', '15.947,95↓', '-155,10-0,96%'],
|
1338
|
-
['IDR', '1.
|
1339
|
-
['Rabu, 15 Mei 2024 22:
|
1338
|
+
['IDR', '1.220.717,56↑', '+1.671,73+0,14%'],
|
1339
|
+
['Rabu, 15 Mei 2024 22:52']],
|
1340
1340
|
[[''],
|
1341
1341
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1342
1342
|
'Hari Ini',
|
@@ -1347,19 +1347,19 @@ Output:
|
|
1347
1347
|
'']],
|
1348
1348
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1349
1349
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1350
|
-
['USD', '75,70', '75,70 - 76,
|
1350
|
+
['USD', '75,70', '75,70 - 76,54', '76,12'],
|
1351
1351
|
['KURS', '16.103,05', '15.947,95 - 16.103,05', '16.025,50'],
|
1352
|
-
['IDR', '1.219.045,83', '1.219.045,83 - 1.
|
1352
|
+
['IDR', '1.219.045,83', '1.219.045,83 - 1.220.717,56', '1.219.881,70'],
|
1353
1353
|
[''],
|
1354
1354
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1355
|
-
['USD', '66,32', '64,07 - 77,14', '+10,
|
1355
|
+
['USD', '66,32', '64,07 - 77,14', '+10,22 (15,41%)'],
|
1356
1356
|
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+557,85 (3,62%)'],
|
1357
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1357
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+199.988,03 (19,59%)'],
|
1358
1358
|
[''],
|
1359
1359
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1360
|
-
['USD', '64,66', '58,43 - 77,14', '+11,
|
1360
|
+
['USD', '64,66', '58,43 - 77,14', '+11,88 (18,37%)'],
|
1361
1361
|
['KURS', '14.844,45', '14.796,95 - 16.307,80', '+1.103,50 (7,43%)'],
|
1362
|
-
['IDR', '959.794,03', '912.925,68 - 1.256.829,06', '+
|
1362
|
+
['IDR', '959.794,03', '912.925,68 - 1.256.829,06', '+260.923,53 (27,19%)']])
|
1363
1363
|
```
|
1364
1364
|
|
1365
1365
|
## iloads
|
@@ -1489,7 +1489,7 @@ Output:
|
|
1489
1489
|
```py
|
1490
1490
|
8
|
1491
1491
|
['mana', 'aja']
|
1492
|
-
[<Element a at
|
1492
|
+
[<Element a at 0x79b40885a0>, <Element a at 0x79b3ee44b0>, <Element a at 0x79b3ee4550>, <Element a at 0x79b3ee45a0>, <Element a at 0x79b3ee45f0>, <Element a at 0x79b3ee4640>, <Element a at 0x79b3ee4690>, <Element a at 0x79b3ee46e0>, <Element a at 0x79b3ee4730>, <Element a at 0x79b3ee4780>, <Element a at 0x79b3ee47d0>, <Element a at 0x79b3ee4820>, <Element a at 0x79b3ee4870>, <Element a at 0x79b3ee48c0>, <Element a at 0x79b3ee4910>, <Element a at 0x79b3ee4960>, <Element a at 0x79b3ee49b0>, <Element a at 0x79b3ee4a00>]
|
1493
1493
|
False
|
1494
1494
|
```
|
1495
1495
|
|
@@ -1551,7 +1551,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1551
1551
|
|
1552
1552
|
Output:
|
1553
1553
|
```py
|
1554
|
-
<generator object iscandir at
|
1554
|
+
<generator object iscandir at 0x79b3fafa40>
|
1555
1555
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1556
1556
|
```
|
1557
1557
|
|
@@ -1584,82 +1584,82 @@ iprint(ivars(__import__('pypipr')))
|
|
1584
1584
|
|
1585
1585
|
Output:
|
1586
1586
|
```py
|
1587
|
-
{'function': {'avg': <function avg at
|
1588
|
-
'get_filemtime': <function get_filemtime at
|
1589
|
-
'print_colorize': <function print_colorize at
|
1590
|
-
'print_log': <function print_log at
|
1591
|
-
'console_run': <function console_run at
|
1592
|
-
'auto_reload': <function auto_reload at
|
1593
|
-
'basename': <function basename at
|
1594
|
-
'chr_to_int': <function chr_to_int at
|
1595
|
-
'int_to_chr': <function int_to_chr at
|
1596
|
-
'irange': <function irange at
|
1597
|
-
'batchmaker': <function batchmaker at
|
1598
|
-
'calculate': <function calculate at
|
1599
|
-
'batch_calculate': <function batch_calculate at
|
1600
|
-
'bin_to_int': <function bin_to_int at
|
1601
|
-
'is_empty': <function is_empty at
|
1602
|
-
'exit_if_empty': <function exit_if_empty at
|
1603
|
-
'input_char': <function input_char at
|
1604
|
-
'choices': <function choices at
|
1605
|
-
'chunk_array': <function chunk_array at
|
1606
|
-
'create_folder': <function create_folder at
|
1607
|
-
'datetime_from_string': <function datetime_from_string at
|
1608
|
-
'datetime_now': <function datetime_now at
|
1609
|
-
'dict_first': <function dict_first at
|
1610
|
-
'dirname': <function dirname at
|
1611
|
-
'is_iterable': <function is_iterable at
|
1612
|
-
'to_str': <function to_str at
|
1613
|
-
'filter_empty': <function filter_empty at
|
1614
|
-
'get_by_index': <function get_by_index at
|
1615
|
-
'get_class_method': <function get_class_method at
|
1616
|
-
'get_filesize': <function get_filesize at
|
1617
|
-
'github_init': <function github_init at
|
1618
|
-
'github_pull': <function github_pull at
|
1619
|
-
'github_push': <function github_push at
|
1620
|
-
'github_user': <function github_user at
|
1621
|
-
'hex_to_int': <function hex_to_int at
|
1622
|
-
'iargv': <function iargv at
|
1623
|
-
'idir': <function idir at
|
1624
|
-
'idumps_html': <function idumps_html at
|
1625
|
-
'idumps': <function idumps at
|
1626
|
-
'int_to_int': <function int_to_int at
|
1627
|
-
'ienumerate': <function ienumerate at
|
1628
|
-
'ienv': <function ienv at
|
1629
|
-
'iexec': <function iexec at
|
1630
|
-
'ijoin': <function ijoin at
|
1631
|
-
'iloads_html': <function iloads_html at
|
1632
|
-
'iloads': <function iloads at
|
1633
|
-
'int_to_bin': <function int_to_bin at
|
1634
|
-
'int_to_hex': <function int_to_hex at
|
1635
|
-
'int_to_oct': <function int_to_oct at
|
1636
|
-
'is_valid_url': <function is_valid_url at
|
1637
|
-
'iopen': <function iopen at
|
1638
|
-
'iprint': <function iprint at
|
1639
|
-
'ireplace': <function ireplace at
|
1640
|
-
'iscandir': <function iscandir at
|
1641
|
-
'isplit': <function isplit at
|
1642
|
-
'ivars': <function ivars at
|
1643
|
-
'log': <function log at
|
1644
|
-
'oct_to_int': <function oct_to_int at
|
1645
|
-
'password_generator': <function password_generator at
|
1646
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1647
|
-
'poetry_publish': <function poetry_publish at
|
1648
|
-
'poetry_update_version': <function poetry_update_version at
|
1649
|
-
'print_dir': <function print_dir at
|
1650
|
-
'print_to_last_line': <function print_to_last_line at
|
1651
|
-
'random_bool': <function random_bool at
|
1652
|
-
'restart': <function restart at
|
1653
|
-
'set_timeout': <function set_timeout at
|
1654
|
-
'sets_ordered': <function sets_ordered at
|
1655
|
-
'sqlite_all_tables': <function sqlite_all_tables at
|
1656
|
-
'str_cmp': <function str_cmp at
|
1657
|
-
'text_colorize': <function text_colorize at
|
1587
|
+
{'function': {'avg': <function avg at 0x79be9e0040>,
|
1588
|
+
'get_filemtime': <function get_filemtime at 0x79babbf060>,
|
1589
|
+
'print_colorize': <function print_colorize at 0x79babbf240>,
|
1590
|
+
'print_log': <function print_log at 0x79babbf100>,
|
1591
|
+
'console_run': <function console_run at 0x79babbf1a0>,
|
1592
|
+
'auto_reload': <function auto_reload at 0x79bb080f40>,
|
1593
|
+
'basename': <function basename at 0x79bab5a980>,
|
1594
|
+
'chr_to_int': <function chr_to_int at 0x79babbf7e0>,
|
1595
|
+
'int_to_chr': <function int_to_chr at 0x79babbf880>,
|
1596
|
+
'irange': <function irange at 0x79babbfb00>,
|
1597
|
+
'batchmaker': <function batchmaker at 0x79babbf4c0>,
|
1598
|
+
'calculate': <function calculate at 0x79babbf600>,
|
1599
|
+
'batch_calculate': <function batch_calculate at 0x79babbf380>,
|
1600
|
+
'bin_to_int': <function bin_to_int at 0x79bb080ea0>,
|
1601
|
+
'is_empty': <function is_empty at 0x79babcc2c0>,
|
1602
|
+
'exit_if_empty': <function exit_if_empty at 0x79babcc180>,
|
1603
|
+
'input_char': <function input_char at 0x79babcc220>,
|
1604
|
+
'choices': <function choices at 0x79babcc540>,
|
1605
|
+
'chunk_array': <function chunk_array at 0x79babcc5e0>,
|
1606
|
+
'create_folder': <function create_folder at 0x79babcc680>,
|
1607
|
+
'datetime_from_string': <function datetime_from_string at 0x79babcc720>,
|
1608
|
+
'datetime_now': <function datetime_now at 0x79babcc0e0>,
|
1609
|
+
'dict_first': <function dict_first at 0x79babcea20>,
|
1610
|
+
'dirname': <function dirname at 0x79babceac0>,
|
1611
|
+
'is_iterable': <function is_iterable at 0x79babceca0>,
|
1612
|
+
'to_str': <function to_str at 0x79babced40>,
|
1613
|
+
'filter_empty': <function filter_empty at 0x79babbf2e0>,
|
1614
|
+
'get_by_index': <function get_by_index at 0x79babceb60>,
|
1615
|
+
'get_class_method': <function get_class_method at 0x79babcede0>,
|
1616
|
+
'get_filesize': <function get_filesize at 0x79babcef20>,
|
1617
|
+
'github_init': <function github_init at 0x79babcefc0>,
|
1618
|
+
'github_pull': <function github_pull at 0x79babcf060>,
|
1619
|
+
'github_push': <function github_push at 0x79babcf1a0>,
|
1620
|
+
'github_user': <function github_user at 0x79babcf240>,
|
1621
|
+
'hex_to_int': <function hex_to_int at 0x79babcf2e0>,
|
1622
|
+
'iargv': <function iargv at 0x79babcf380>,
|
1623
|
+
'idir': <function idir at 0x79babcf420>,
|
1624
|
+
'idumps_html': <function idumps_html at 0x79babcfb00>,
|
1625
|
+
'idumps': <function idumps at 0x79babcf560>,
|
1626
|
+
'int_to_int': <function int_to_int at 0x79baa079c0>,
|
1627
|
+
'ienumerate': <function ienumerate at 0x79ba9fa020>,
|
1628
|
+
'ienv': <function ienv at 0x79baa076a0>,
|
1629
|
+
'iexec': <function iexec at 0x79baa07a60>,
|
1630
|
+
'ijoin': <function ijoin at 0x79baa07ba0>,
|
1631
|
+
'iloads_html': <function iloads_html at 0x79baa07d80>,
|
1632
|
+
'iloads': <function iloads at 0x79bf3a2020>,
|
1633
|
+
'int_to_bin': <function int_to_bin at 0x79baa07b00>,
|
1634
|
+
'int_to_hex': <function int_to_hex at 0x79baa07ce0>,
|
1635
|
+
'int_to_oct': <function int_to_oct at 0x79baa07e20>,
|
1636
|
+
'is_valid_url': <function is_valid_url at 0x79ba83fba0>,
|
1637
|
+
'iopen': <function iopen at 0x79baa18040>,
|
1638
|
+
'iprint': <function iprint at 0x79ba83f6a0>,
|
1639
|
+
'ireplace': <function ireplace at 0x79ba83f7e0>,
|
1640
|
+
'iscandir': <function iscandir at 0x79ba9009a0>,
|
1641
|
+
'isplit': <function isplit at 0x79ba900a40>,
|
1642
|
+
'ivars': <function ivars at 0x79ba900ae0>,
|
1643
|
+
'log': <function log at 0x79ba900b80>,
|
1644
|
+
'oct_to_int': <function oct_to_int at 0x79ba900c20>,
|
1645
|
+
'password_generator': <function password_generator at 0x79ba900cc0>,
|
1646
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x79ba900e00>,
|
1647
|
+
'poetry_publish': <function poetry_publish at 0x79ba900ea0>,
|
1648
|
+
'poetry_update_version': <function poetry_update_version at 0x79ba900fe0>,
|
1649
|
+
'print_dir': <function print_dir at 0x79ba9011c0>,
|
1650
|
+
'print_to_last_line': <function print_to_last_line at 0x79ba901260>,
|
1651
|
+
'random_bool': <function random_bool at 0x79ba901300>,
|
1652
|
+
'restart': <function restart at 0x79ba9013a0>,
|
1653
|
+
'set_timeout': <function set_timeout at 0x79ba901440>,
|
1654
|
+
'sets_ordered': <function sets_ordered at 0x79ba9014e0>,
|
1655
|
+
'sqlite_all_tables': <function sqlite_all_tables at 0x79ba901580>,
|
1656
|
+
'str_cmp': <function str_cmp at 0x79ba901620>,
|
1657
|
+
'text_colorize': <function text_colorize at 0x79ba901120>},
|
1658
1658
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1659
1659
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1660
1660
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1661
1661
|
'variable': {'LINUX': True,
|
1662
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1662
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x79be9eed10>,
|
1663
1663
|
'WINDOWS': False},
|
1664
1664
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1665
1665
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-ZoJyDxLL-py3.11/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1749,7 +1749,7 @@ print(password_generator())
|
|
1749
1749
|
|
1750
1750
|
Output:
|
1751
1751
|
```py
|
1752
|
-
|
1752
|
+
@<i$UuBB
|
1753
1753
|
```
|
1754
1754
|
|
1755
1755
|
## pip_freeze_without_version
|
@@ -1807,7 +1807,7 @@ Output:
|
|
1807
1807
|
__enter__ : https:/www.google.com
|
1808
1808
|
__fspath__ : https:/www.google.com
|
1809
1809
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1810
|
-
__hash__ :
|
1810
|
+
__hash__ : 5926800906210107811
|
1811
1811
|
__init__ : None
|
1812
1812
|
__init_subclass__ : None
|
1813
1813
|
__module__ : pathlib
|
@@ -1820,8 +1820,8 @@ Output:
|
|
1820
1820
|
_cached_cparts : ['https:', 'www.google.com']
|
1821
1821
|
_cparts : ['https:', 'www.google.com']
|
1822
1822
|
_drv :
|
1823
|
-
_flavour : <pathlib._PosixFlavour object at
|
1824
|
-
_hash :
|
1823
|
+
_flavour : <pathlib._PosixFlavour object at 0x79be7b53d0>
|
1824
|
+
_hash : 5926800906210107811
|
1825
1825
|
_parts : ['https:', 'www.google.com']
|
1826
1826
|
_root :
|
1827
1827
|
_str : https:/www.google.com
|
@@ -1843,7 +1843,7 @@ Output:
|
|
1843
1843
|
is_reserved : False
|
1844
1844
|
is_socket : False
|
1845
1845
|
is_symlink : False
|
1846
|
-
iterdir : <generator object Path.iterdir at
|
1846
|
+
iterdir : <generator object Path.iterdir at 0x79b402ef80>
|
1847
1847
|
joinpath : https:/www.google.com
|
1848
1848
|
name : www.google.com
|
1849
1849
|
parent : https:
|
@@ -1917,7 +1917,7 @@ x.cancel()
|
|
1917
1917
|
|
1918
1918
|
Output:
|
1919
1919
|
```py
|
1920
|
-
<Timer(Thread-2, started
|
1920
|
+
<Timer(Thread-2, started 522691681520)>
|
1921
1921
|
menghentikan timeout 7
|
1922
1922
|
```
|
1923
1923
|
|
@@ -1935,13 +1935,13 @@ print(list(sets_ordered(array)))
|
|
1935
1935
|
|
1936
1936
|
Output:
|
1937
1937
|
```py
|
1938
|
-
<generator object sets_ordered at
|
1938
|
+
<generator object sets_ordered at 0x79b40952f0>
|
1939
1939
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1940
1940
|
```
|
1941
1941
|
|
1942
1942
|
## sqlite_all_tables
|
1943
1943
|
|
1944
|
-
`sqlite_all_tables()`
|
1944
|
+
`sqlite_all_tables(filename)`
|
1945
1945
|
|
1946
1946
|
## str_cmp
|
1947
1947
|
|
@@ -2009,15 +2009,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2009
2009
|
|
2010
2010
|
Output:
|
2011
2011
|
```py
|
2012
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2012
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x79b4094930>,
|
2013
2013
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2014
2014
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2015
2015
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2016
|
-
{'a':
|
2017
|
-
{'a': 100, 'b':
|
2018
|
-
{'a':
|
2019
|
-
{'a':
|
2020
|
-
{'a':
|
2016
|
+
{'a': 99, 'b': 126, 'c': 162, 'd': 175}
|
2017
|
+
{'a': 100, 'b': 129, 'c': 134, 'd': 117}
|
2018
|
+
{'a': 100, 'b': 131, 'c': 107, 'd': 119}
|
2019
|
+
{'a': 100, 'b': 124, 'c': 105, 'd': 125}
|
2020
|
+
{'a': 100, 'b': 125, 'c': 126, 'd': 121}
|
2021
2021
|
```
|
2022
2022
|
|
2023
2023
|
## PintUregQuantity
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import sqlite3
|
2
2
|
|
3
3
|
|
4
|
-
def sqlite_all_tables():
|
5
|
-
conn = sqlite3.connect(
|
4
|
+
def sqlite_all_tables(filename):
|
5
|
+
conn = sqlite3.connect(filename)
|
6
6
|
cursor = conn.cursor()
|
7
7
|
cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
|
8
8
|
tables = cursor.fetchall()
|