pypipr 1.0.138__tar.gz → 1.0.139__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.138 → pypipr-1.0.139}/PKG-INFO +150 -140
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/sqlite_delete_table.py +4 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/sqlite_get_all_tables.py +5 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/sqlite_get_data_table.py +4 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pyproject.toml +1 -1
- {pypipr-1.0.138 → pypipr-1.0.139}/readme.md +149 -139
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/__init__.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/avg.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/basename.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/calculate.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/choices.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/console_run.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/dirname.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/github_init.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/github_push.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/github_user.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iargv.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/idir.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/idumps.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/ienv.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iexec.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iloads.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/input_char.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iopen.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iprint.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/irange.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/isplit.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/ivars.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/log.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/print_log.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/restart.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.138 → pypipr-1.0.139}/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.139
|
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 0x7202777740>
|
252
|
+
<generator object int_range at 0x7202777740>
|
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 0x72027f9480>
|
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 0x7202802110>
|
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 0x7202777840>
|
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-16
|
496
|
-
2024-05-
|
497
|
-
2024-05-15
|
495
|
+
2024-05-16 07:34:10.455319+07:00
|
496
|
+
2024-05-16 00:34:10.456904+00:00
|
497
|
+
2024-05-15 17:34:10.461001-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 0x7202801e40>
|
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 0x72028023e0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x720283ee80>, <function ExampleGetClassMethod.b at 0x720283ef20>, <function ExampleGetClassMethod.c at 0x720283cea0>, <function ExampleGetClassMethod.d at 0x720283f100>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -1061,7 +1061,7 @@ Output:
|
|
1061
1061
|
|
1062
1062
|
## ienumerate
|
1063
1063
|
|
1064
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1064
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7209feb9c0>)`
|
1065
1065
|
|
1066
1066
|
meningkatkan fungsi enumerate() pada python
|
1067
1067
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1074,7 +1074,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1074
1074
|
|
1075
1075
|
Output:
|
1076
1076
|
```py
|
1077
|
-
<generator object ienumerate at
|
1077
|
+
<generator object ienumerate at 0x72028024d0>
|
1078
1078
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1079
1079
|
```
|
1080
1080
|
|
@@ -1141,7 +1141,7 @@ print(ijoin(10, ' '))
|
|
1141
1141
|
|
1142
1142
|
Output:
|
1143
1143
|
```py
|
1144
|
-
|
1144
|
+
weq, asd, dfs, qweqw
|
1145
1145
|
,ini,path,seperti,url,
|
1146
1146
|
ini,path,seperti,url
|
1147
1147
|
<li>satu</li>
|
@@ -1187,9 +1187,9 @@ Output:
|
|
1187
1187
|
```py
|
1188
1188
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1189
1189
|
[['Harga Emas Hari Ini - Kamis, 16 Mei 2024'],
|
1190
|
-
['Spot Emas
|
1190
|
+
['Spot Emas USD↑2.393,98 (+7,95) / oz',
|
1191
1191
|
'Kurs IDR16.131,00 / USD',
|
1192
|
-
'Emas
|
1192
|
+
'Emas IDR↑1.241.575 (+4.123) / gr'],
|
1193
1193
|
['LM Antam (Jual)↑1.332.000 (+8.000) / gr',
|
1194
1194
|
'LM Antam (Beli)↑1.223.000 (+8.000) / gr']],
|
1195
1195
|
[['Harga Emas Hari Ini'],
|
@@ -1260,10 +1260,10 @@ Output:
|
|
1260
1260
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1261
1261
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1262
1262
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1263
|
-
['Ounce\xa0(oz)', '2.
|
1264
|
-
['Gram\xa0(gr)', '76,
|
1265
|
-
['Kilogram\xa0(kg)', '76.
|
1266
|
-
['Update harga emas :16 Mei 2024, pukul
|
1263
|
+
['Ounce\xa0(oz)', '2.393,98 (+7,95)', '16.131,00', '38.617.291'],
|
1264
|
+
['Gram\xa0(gr)', '76,97', '16.131,00', '1.241.575 (+4.123)'],
|
1265
|
+
['Kilogram\xa0(kg)', '76.968,24', '16.131,00', '1.241.574.750'],
|
1266
|
+
['Update harga emas :16 Mei 2024, pukul 07:34Update kurs :15 Mei 2024, pukul '
|
1267
1267
|
'13:10']],
|
1268
1268
|
[['Gram', 'UBS Gold 99.99%'],
|
1269
1269
|
['Jual', 'Beli'],
|
@@ -1285,36 +1285,36 @@ Output:
|
|
1285
1285
|
['Unit', 'USD', 'IDR'],
|
1286
1286
|
['Angka', '+/-', 'Angka', '+/-'],
|
1287
1287
|
['Hari Ini', 'Kurs', '', '', '16.131', '%'],
|
1288
|
-
['oz', '2.386,03', '%', '38.489.050', '%'],
|
1289
|
-
['gr', '76,71', '%', '1.237.452', '%'],
|
1288
|
+
['oz', '2.386,03', '+7,95+0,33%', '38.489.050', '+128.241+0,33%'],
|
1289
|
+
['gr', '76,71', '+0,26+0,33%', '1.237.452', '+4.123+0,33%'],
|
1290
1290
|
['30 Hari', 'Kurs', '', '', '15.873', '+258+1,63%'],
|
1291
|
-
['oz', '2.397,12', '-
|
1292
|
-
['gr', '77,07', '-0,
|
1291
|
+
['oz', '2.397,12', '-3,14-0,13%', '38.049.486', '+567.806+1,49%'],
|
1292
|
+
['gr', '77,07', '-0,10-0,13%', '1.223.319', '+18.255+1,49%'],
|
1293
1293
|
['2 Bulan', 'Kurs', '', '', '15.582', '+549+3,52%'],
|
1294
|
-
['oz', '2.156,08', '+
|
1295
|
-
['gr', '69,32', '+7,
|
1294
|
+
['oz', '2.156,08', '+237,90+11,03%', '33.596.039', '+5.021.253+14,95%'],
|
1295
|
+
['gr', '69,32', '+7,65+11,03', '1.080.138', '+161.437+14,95%'],
|
1296
1296
|
['6 Bulan', 'Kurs', '', '', '15.595', '+536+3,44%'],
|
1297
|
-
['oz', '1.980,79', '+
|
1298
|
-
['gr', '63,68', '+13,
|
1297
|
+
['oz', '1.980,79', '+413,19+20,86%', '30.890.420', '+7.726.871+25,01%'],
|
1298
|
+
['gr', '63,68', '+13,28+20,86%', '993.150', '+248.425+25,01%'],
|
1299
1299
|
['1 Tahun', 'Kurs', '', '', '15.731', '+400+2,54%'],
|
1300
|
-
['oz', '1.823,86', '+
|
1301
|
-
['gr', '58,64', '+18,
|
1300
|
+
['oz', '1.823,86', '+570,12+31,26%', '28.691.142', '+9.926.150+34,60%'],
|
1301
|
+
['gr', '58,64', '+18,33+31,26%', '922.442', '+319.133+34,60%'],
|
1302
1302
|
['2 Tahun', 'Kurs', '', '', '14.619', '+1.512+10,34%'],
|
1303
|
-
['oz', '1.821,43', '+
|
1304
|
-
['gr', '58,56', '+18,
|
1303
|
+
['oz', '1.821,43', '+572,55+31,43%', '26.627.503', '+11.989.788+45,03%'],
|
1304
|
+
['gr', '58,56', '+18,41+31,43%', '856.094', '+385.481+45,03%'],
|
1305
1305
|
['3 Tahun', 'Kurs', '', '', '14.203', '+1.928+13,57%'],
|
1306
|
-
['oz', '1.867,94', '+
|
1307
|
-
['gr', '60,06', '+16,
|
1306
|
+
['oz', '1.867,94', '+526,04+28,16%', '26.530.370', '+12.086.921+45,56%'],
|
1307
|
+
['gr', '60,06', '+16,91+28,16%', '852.971', '+388.604+45,56%'],
|
1308
1308
|
['5 Tahun', 'Kurs', '', '', '14.469', '+1.662+11,49%'],
|
1309
|
-
['oz', '1.277,78', '+1.
|
1310
|
-
['gr', '41,08', '+35,
|
1309
|
+
['oz', '1.277,78', '+1.116,20+87,35%', '18.488.199', '+20.129.093+108,88%'],
|
1310
|
+
['gr', '41,08', '+35,89+87,35%', '594.409', '+647.165+108,88%']])
|
1311
1311
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1312
1312
|
[[''],
|
1313
1313
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1314
|
-
['USD', '76,
|
1315
|
-
['KURS', '15.
|
1316
|
-
['IDR', '1.
|
1317
|
-
['Kamis, 16 Mei 2024
|
1314
|
+
['USD', '76,97↑', '+0,26+0,34%'],
|
1315
|
+
['KURS', '15.917,00↓', '-13,95-0,09%'],
|
1316
|
+
['IDR', '1.225.103,55↑', '+2.998,22+0,25%'],
|
1317
|
+
['Kamis, 16 Mei 2024 07:34']],
|
1318
1318
|
[[''],
|
1319
1319
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1320
1320
|
'Hari Ini',
|
@@ -1325,19 +1325,19 @@ Output:
|
|
1325
1325
|
'']],
|
1326
1326
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1327
1327
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1328
|
-
['USD', '76,71', '76,71 - 76,
|
1329
|
-
['KURS', '15.930,95', '15.
|
1330
|
-
['IDR', '1.222.105,33', '1.
|
1328
|
+
['USD', '76,71', '76,71 - 76,97', '76,84'],
|
1329
|
+
['KURS', '15.930,95', '15.917,00 - 15.930,95', '15.923,98'],
|
1330
|
+
['IDR', '1.222.105,33', '1.222.105,33 - 1.225.103,55', '1.223.604,44'],
|
1331
1331
|
[''],
|
1332
1332
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1333
|
-
['USD', '66,32', '64,07 - 77,14', '+10,
|
1334
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+526,
|
1335
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1333
|
+
['USD', '66,32', '64,07 - 77,14', '+10,65 (16,06%)'],
|
1334
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+526,90 (3,42%)'],
|
1335
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+204.374,02 (20,02%)'],
|
1336
1336
|
[''],
|
1337
1337
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1338
|
-
['USD', '64,94', '58,43 - 77,14', '+
|
1339
|
-
['KURS', '14.796,95', '14.833,15 - 16.307,80', '+1.
|
1340
|
-
['IDR', '960.842,68', '912.925,68 - 1.256.829,06', '+260
|
1338
|
+
['USD', '64,94', '58,43 - 77,14', '+12,03 (18,52%)'],
|
1339
|
+
['KURS', '14.796,95', '14.833,15 - 16.307,80', '+1.120,05 (7,57%)'],
|
1340
|
+
['IDR', '960.842,68', '912.925,68 - 1.256.829,06', '+264.260,87 (27,50%)']])
|
1341
1341
|
```
|
1342
1342
|
|
1343
1343
|
## iloads
|
@@ -1467,7 +1467,7 @@ Output:
|
|
1467
1467
|
```py
|
1468
1468
|
8
|
1469
1469
|
['mana', 'aja']
|
1470
|
-
[<Element a at
|
1470
|
+
[<Element a at 0x7202850b40>, <Element a at 0x720269c730>, <Element a at 0x720269c7d0>, <Element a at 0x720269c820>, <Element a at 0x720269c870>, <Element a at 0x720269c8c0>, <Element a at 0x720269c910>, <Element a at 0x720269c960>, <Element a at 0x720269c9b0>, <Element a at 0x720269ca00>, <Element a at 0x720269ca50>, <Element a at 0x720269caa0>, <Element a at 0x720269caf0>, <Element a at 0x720269cb40>, <Element a at 0x720269cb90>, <Element a at 0x720269cbe0>, <Element a at 0x720269cc30>, <Element a at 0x720269cc80>]
|
1471
1471
|
False
|
1472
1472
|
```
|
1473
1473
|
|
@@ -1529,7 +1529,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1529
1529
|
|
1530
1530
|
Output:
|
1531
1531
|
```py
|
1532
|
-
<generator object iscandir at
|
1532
|
+
<generator object iscandir at 0x7202777a40>
|
1533
1533
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1534
1534
|
```
|
1535
1535
|
|
@@ -1562,84 +1562,84 @@ iprint(ivars(__import__('pypipr')))
|
|
1562
1562
|
|
1563
1563
|
Output:
|
1564
1564
|
```py
|
1565
|
-
{'function': {'avg': <function avg at
|
1566
|
-
'get_filemtime': <function get_filemtime at
|
1567
|
-
'print_colorize': <function print_colorize at
|
1568
|
-
'print_log': <function print_log at
|
1569
|
-
'console_run': <function console_run at
|
1570
|
-
'auto_reload': <function auto_reload at
|
1571
|
-
'basename': <function basename at
|
1572
|
-
'chr_to_int': <function chr_to_int at
|
1573
|
-
'int_to_chr': <function int_to_chr at
|
1574
|
-
'irange': <function irange at
|
1575
|
-
'batchmaker': <function batchmaker at
|
1576
|
-
'calculate': <function calculate at
|
1577
|
-
'batch_calculate': <function batch_calculate at
|
1578
|
-
'bin_to_int': <function bin_to_int at
|
1579
|
-
'is_empty': <function is_empty at
|
1580
|
-
'exit_if_empty': <function exit_if_empty at
|
1581
|
-
'input_char': <function input_char at
|
1582
|
-
'choices': <function choices at
|
1583
|
-
'chunk_array': <function chunk_array at
|
1584
|
-
'create_folder': <function create_folder at
|
1585
|
-
'datetime_from_string': <function datetime_from_string at
|
1586
|
-
'datetime_now': <function datetime_now at
|
1587
|
-
'dict_first': <function dict_first at
|
1588
|
-
'dirname': <function dirname at
|
1589
|
-
'is_iterable': <function is_iterable at
|
1590
|
-
'to_str': <function to_str at
|
1591
|
-
'filter_empty': <function filter_empty at
|
1592
|
-
'get_by_index': <function get_by_index at
|
1593
|
-
'get_class_method': <function get_class_method at
|
1594
|
-
'get_filesize': <function get_filesize at
|
1595
|
-
'github_init': <function github_init at
|
1596
|
-
'github_pull': <function github_pull at
|
1597
|
-
'github_push': <function github_push at
|
1598
|
-
'github_user': <function github_user at
|
1599
|
-
'hex_to_int': <function hex_to_int at
|
1600
|
-
'iargv': <function iargv at
|
1601
|
-
'idir': <function idir at
|
1602
|
-
'idumps_html': <function idumps_html at
|
1603
|
-
'idumps': <function idumps at
|
1604
|
-
'int_to_int': <function int_to_int at
|
1605
|
-
'ienumerate': <function ienumerate at
|
1606
|
-
'ienv': <function ienv at
|
1607
|
-
'iexec': <function iexec at
|
1608
|
-
'ijoin': <function ijoin at
|
1609
|
-
'iloads_html': <function iloads_html at
|
1610
|
-
'iloads': <function iloads at
|
1611
|
-
'int_to_bin': <function int_to_bin at
|
1612
|
-
'int_to_hex': <function int_to_hex at
|
1613
|
-
'int_to_oct': <function int_to_oct at
|
1614
|
-
'is_valid_url': <function is_valid_url at
|
1615
|
-
'iopen': <function iopen at
|
1616
|
-
'iprint': <function iprint at
|
1617
|
-
'ireplace': <function ireplace at
|
1618
|
-
'iscandir': <function iscandir at
|
1619
|
-
'isplit': <function isplit at
|
1620
|
-
'ivars': <function ivars at
|
1621
|
-
'log': <function log at
|
1622
|
-
'oct_to_int': <function oct_to_int at
|
1623
|
-
'password_generator': <function password_generator at
|
1624
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1625
|
-
'poetry_publish': <function poetry_publish at
|
1626
|
-
'poetry_update_version': <function poetry_update_version at
|
1627
|
-
'print_dir': <function print_dir at
|
1628
|
-
'print_to_last_line': <function print_to_last_line at
|
1629
|
-
'random_bool': <function random_bool at
|
1630
|
-
'restart': <function restart at
|
1631
|
-
'set_timeout': <function set_timeout at
|
1632
|
-
'sets_ordered': <function sets_ordered at
|
1633
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1634
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1635
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1636
|
-
'str_cmp': <function str_cmp at
|
1637
|
-
'text_colorize': <function text_colorize at
|
1565
|
+
{'function': {'avg': <function avg at 0x720d7e0040>,
|
1566
|
+
'get_filemtime': <function get_filemtime at 0x720a22b060>,
|
1567
|
+
'print_colorize': <function print_colorize at 0x720a22b240>,
|
1568
|
+
'print_log': <function print_log at 0x720a22b100>,
|
1569
|
+
'console_run': <function console_run at 0x720a22b1a0>,
|
1570
|
+
'auto_reload': <function auto_reload at 0x720a674f40>,
|
1571
|
+
'basename': <function basename at 0x720a1c6980>,
|
1572
|
+
'chr_to_int': <function chr_to_int at 0x720a22b7e0>,
|
1573
|
+
'int_to_chr': <function int_to_chr at 0x720a22b880>,
|
1574
|
+
'irange': <function irange at 0x720a22bb00>,
|
1575
|
+
'batchmaker': <function batchmaker at 0x720a22b4c0>,
|
1576
|
+
'calculate': <function calculate at 0x720a22b600>,
|
1577
|
+
'batch_calculate': <function batch_calculate at 0x720a22b380>,
|
1578
|
+
'bin_to_int': <function bin_to_int at 0x720a674ea0>,
|
1579
|
+
'is_empty': <function is_empty at 0x720a2382c0>,
|
1580
|
+
'exit_if_empty': <function exit_if_empty at 0x720a238180>,
|
1581
|
+
'input_char': <function input_char at 0x720a238220>,
|
1582
|
+
'choices': <function choices at 0x720a238540>,
|
1583
|
+
'chunk_array': <function chunk_array at 0x720a2385e0>,
|
1584
|
+
'create_folder': <function create_folder at 0x720a238680>,
|
1585
|
+
'datetime_from_string': <function datetime_from_string at 0x720a238720>,
|
1586
|
+
'datetime_now': <function datetime_now at 0x720a2380e0>,
|
1587
|
+
'dict_first': <function dict_first at 0x720a23aa20>,
|
1588
|
+
'dirname': <function dirname at 0x720a23aac0>,
|
1589
|
+
'is_iterable': <function is_iterable at 0x720a23aca0>,
|
1590
|
+
'to_str': <function to_str at 0x720a23ad40>,
|
1591
|
+
'filter_empty': <function filter_empty at 0x720a22b2e0>,
|
1592
|
+
'get_by_index': <function get_by_index at 0x720a23ab60>,
|
1593
|
+
'get_class_method': <function get_class_method at 0x720a23ade0>,
|
1594
|
+
'get_filesize': <function get_filesize at 0x720a23af20>,
|
1595
|
+
'github_init': <function github_init at 0x720a23afc0>,
|
1596
|
+
'github_pull': <function github_pull at 0x720a23b060>,
|
1597
|
+
'github_push': <function github_push at 0x720a23b1a0>,
|
1598
|
+
'github_user': <function github_user at 0x720a23b240>,
|
1599
|
+
'hex_to_int': <function hex_to_int at 0x720a23b2e0>,
|
1600
|
+
'iargv': <function iargv at 0x720a23b380>,
|
1601
|
+
'idir': <function idir at 0x720a23b420>,
|
1602
|
+
'idumps_html': <function idumps_html at 0x720a23bb00>,
|
1603
|
+
'idumps': <function idumps at 0x720a23b560>,
|
1604
|
+
'int_to_int': <function int_to_int at 0x7209feb9c0>,
|
1605
|
+
'ienumerate': <function ienumerate at 0x7209fde020>,
|
1606
|
+
'ienv': <function ienv at 0x7209feb6a0>,
|
1607
|
+
'iexec': <function iexec at 0x7209feba60>,
|
1608
|
+
'ijoin': <function ijoin at 0x7209febba0>,
|
1609
|
+
'iloads_html': <function iloads_html at 0x7209febd80>,
|
1610
|
+
'iloads': <function iloads at 0x720e1a2020>,
|
1611
|
+
'int_to_bin': <function int_to_bin at 0x7209febb00>,
|
1612
|
+
'int_to_hex': <function int_to_hex at 0x7209febce0>,
|
1613
|
+
'int_to_oct': <function int_to_oct at 0x7209febe20>,
|
1614
|
+
'is_valid_url': <function is_valid_url at 0x7209e33ba0>,
|
1615
|
+
'iopen': <function iopen at 0x720a000040>,
|
1616
|
+
'iprint': <function iprint at 0x7209e336a0>,
|
1617
|
+
'ireplace': <function ireplace at 0x7209e337e0>,
|
1618
|
+
'iscandir': <function iscandir at 0x7209ef49a0>,
|
1619
|
+
'isplit': <function isplit at 0x7209ef4a40>,
|
1620
|
+
'ivars': <function ivars at 0x7209ef4ae0>,
|
1621
|
+
'log': <function log at 0x7209ef4b80>,
|
1622
|
+
'oct_to_int': <function oct_to_int at 0x7209ef4c20>,
|
1623
|
+
'password_generator': <function password_generator at 0x7209ef4cc0>,
|
1624
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7209ef4e00>,
|
1625
|
+
'poetry_publish': <function poetry_publish at 0x7209ef4ea0>,
|
1626
|
+
'poetry_update_version': <function poetry_update_version at 0x7209ef4fe0>,
|
1627
|
+
'print_dir': <function print_dir at 0x7209ef51c0>,
|
1628
|
+
'print_to_last_line': <function print_to_last_line at 0x7209ef5260>,
|
1629
|
+
'random_bool': <function random_bool at 0x7209ef5300>,
|
1630
|
+
'restart': <function restart at 0x7209ef53a0>,
|
1631
|
+
'set_timeout': <function set_timeout at 0x7209ef5440>,
|
1632
|
+
'sets_ordered': <function sets_ordered at 0x7209ef54e0>,
|
1633
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x7209ef5580>,
|
1634
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x7209ef5120>,
|
1635
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x7209ef5ee0>,
|
1636
|
+
'str_cmp': <function str_cmp at 0x7209ef5f80>,
|
1637
|
+
'text_colorize': <function text_colorize at 0x7209ef6020>},
|
1638
1638
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1639
1639
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1640
1640
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1641
1641
|
'variable': {'LINUX': True,
|
1642
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1642
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x720d749850>,
|
1643
1643
|
'WINDOWS': False},
|
1644
1644
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1645
1645
|
'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'>,
|
@@ -1729,7 +1729,7 @@ print(password_generator())
|
|
1729
1729
|
|
1730
1730
|
Output:
|
1731
1731
|
```py
|
1732
|
-
|
1732
|
+
+cFAcqE,
|
1733
1733
|
```
|
1734
1734
|
|
1735
1735
|
## pip_freeze_without_version
|
@@ -1787,7 +1787,7 @@ Output:
|
|
1787
1787
|
__enter__ : https:/www.google.com
|
1788
1788
|
__fspath__ : https:/www.google.com
|
1789
1789
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1790
|
-
__hash__ : -
|
1790
|
+
__hash__ : -2598595217708777404
|
1791
1791
|
__init__ : None
|
1792
1792
|
__init_subclass__ : None
|
1793
1793
|
__module__ : pathlib
|
@@ -1800,8 +1800,8 @@ Output:
|
|
1800
1800
|
_cached_cparts : ['https:', 'www.google.com']
|
1801
1801
|
_cparts : ['https:', 'www.google.com']
|
1802
1802
|
_drv :
|
1803
|
-
_flavour : <pathlib._PosixFlavour object at
|
1804
|
-
_hash : -
|
1803
|
+
_flavour : <pathlib._PosixFlavour object at 0x720d58d410>
|
1804
|
+
_hash : -2598595217708777404
|
1805
1805
|
_parts : ['https:', 'www.google.com']
|
1806
1806
|
_root :
|
1807
1807
|
_str : https:/www.google.com
|
@@ -1823,7 +1823,7 @@ Output:
|
|
1823
1823
|
is_reserved : False
|
1824
1824
|
is_socket : False
|
1825
1825
|
is_symlink : False
|
1826
|
-
iterdir : <generator object Path.iterdir at
|
1826
|
+
iterdir : <generator object Path.iterdir at 0x72027f6f80>
|
1827
1827
|
joinpath : https:/www.google.com
|
1828
1828
|
name : www.google.com
|
1829
1829
|
parent : https:
|
@@ -1863,7 +1863,7 @@ print(random_bool())
|
|
1863
1863
|
|
1864
1864
|
Output:
|
1865
1865
|
```py
|
1866
|
-
|
1866
|
+
False
|
1867
1867
|
```
|
1868
1868
|
|
1869
1869
|
## restart
|
@@ -1897,7 +1897,7 @@ x.cancel()
|
|
1897
1897
|
|
1898
1898
|
Output:
|
1899
1899
|
```py
|
1900
|
-
<Timer(Thread-2, started
|
1900
|
+
<Timer(Thread-2, started 489648635120)>
|
1901
1901
|
menghentikan timeout 7
|
1902
1902
|
```
|
1903
1903
|
|
@@ -1915,7 +1915,7 @@ print(list(sets_ordered(array)))
|
|
1915
1915
|
|
1916
1916
|
Output:
|
1917
1917
|
```py
|
1918
|
-
<generator object sets_ordered at
|
1918
|
+
<generator object sets_ordered at 0x72026598a0>
|
1919
1919
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1920
1920
|
```
|
1921
1921
|
|
@@ -1923,14 +1923,24 @@ Output:
|
|
1923
1923
|
|
1924
1924
|
`sqlite_delete_table(filename, tablename)`
|
1925
1925
|
|
1926
|
+
Perintah sederhana untuk menghapus tabel
|
1927
|
+
dari database SQLite.
|
1928
|
+
|
1926
1929
|
## sqlite_get_all_tables
|
1927
1930
|
|
1928
1931
|
`sqlite_get_all_tables(filename)`
|
1929
1932
|
|
1933
|
+
Perintah SQLite untuk menampilkan seluruh tabel
|
1934
|
+
yang ada pada database.
|
1935
|
+
Hanya akan mengembalikan kolom nama tabel saja.
|
1936
|
+
|
1930
1937
|
## sqlite_get_data_table
|
1931
1938
|
|
1932
1939
|
`sqlite_get_data_table(filename, tablename)`
|
1933
1940
|
|
1941
|
+
Perintah SQLite untuk menampilkan seluruh data
|
1942
|
+
pada tabel database
|
1943
|
+
|
1934
1944
|
## str_cmp
|
1935
1945
|
|
1936
1946
|
`str_cmp(t1, t2)`
|
@@ -1997,15 +2007,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
1997
2007
|
|
1998
2008
|
Output:
|
1999
2009
|
```py
|
2000
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2010
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7202658a00>,
|
2001
2011
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2002
2012
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2003
2013
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2004
|
-
{'a':
|
2005
|
-
{'a':
|
2006
|
-
{'a':
|
2007
|
-
{'a':
|
2008
|
-
{'a':
|
2014
|
+
{'a': 130, 'b': 119, 'c': 100, 'd': 193}
|
2015
|
+
{'a': 100, 'b': 123, 'c': 101, 'd': 165}
|
2016
|
+
{'a': 101, 'b': 118, 'c': 100, 'd': 155}
|
2017
|
+
{'a': 114, 'b': 122, 'c': 100, 'd': 145}
|
2018
|
+
{'a': 101, 'b': 119, 'c': 100, 'd': 148}
|
2009
2019
|
```
|
2010
2020
|
|
2011
2021
|
## PintUregQuantity
|
@@ -2,6 +2,11 @@ import sqlite3
|
|
2
2
|
|
3
3
|
|
4
4
|
def sqlite_get_all_tables(filename):
|
5
|
+
"""
|
6
|
+
Perintah SQLite untuk menampilkan seluruh tabel
|
7
|
+
yang ada pada database.
|
8
|
+
Hanya akan mengembalikan kolom nama tabel saja.
|
9
|
+
"""
|
5
10
|
con = sqlite3.connect(filename)
|
6
11
|
cur = con.cursor()
|
7
12
|
cur.execute("SELECT name FROM sqlite_master WHERE type='table' order by name;")
|