pypipr 1.0.177__tar.gz → 1.0.178__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.177 → pypipr-1.0.178}/PKG-INFO +151 -151
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iopen.py +1 -1
- {pypipr-1.0.177 → pypipr-1.0.178}/pyproject.toml +1 -1
- {pypipr-1.0.177 → pypipr-1.0.178}/readme.md +150 -150
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/__init__.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/avg.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/basename.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/calculate.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/choices.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/console_run.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/dirname.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/django_clear_migrations.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/django_runserver.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/github_init.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/github_push.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/github_user.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iargv.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/idir.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/idumps.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/ienv.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iexec.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iinput.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iloads.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/input_char.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iprint.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/irange.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/is_html.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/is_raw_string.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/isplit.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/ivars.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/log.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/no_indent.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/path_to_module.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/pip_update_pypipr.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/poetry_shell.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/print_log.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/repath.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/restart.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/sqlite_backup.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/sqlite_delete_table.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/sqlite_get_all_tables.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/sqlite_get_data_table.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/tiles.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/to_str.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/traceback_filename.py +0 -0
- {pypipr-1.0.177 → pypipr-1.0.178}/pypipr/traceback_framename.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.178
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -249,8 +249,8 @@ iprint(irange("z", "a", 4))
|
|
249
249
|
|
250
250
|
Output:
|
251
251
|
```py
|
252
|
-
<generator object int_range at
|
253
|
-
<generator object int_range at
|
252
|
+
<generator object int_range at 0x7369a9a940>
|
253
|
+
<generator object int_range at 0x7369a9aa40>
|
254
254
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
255
255
|
[2, 5, 8]
|
256
256
|
[]
|
@@ -282,7 +282,7 @@ print(list(batchmaker(s)))
|
|
282
282
|
|
283
283
|
Output:
|
284
284
|
```py
|
285
|
-
<generator object batchmaker at
|
285
|
+
<generator object batchmaker at 0x7369a47d00>
|
286
286
|
['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 1 dan 10 dan j dan saja.']
|
287
287
|
```
|
288
288
|
|
@@ -336,7 +336,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
336
336
|
|
337
337
|
Output:
|
338
338
|
```py
|
339
|
-
<generator object batch_calculate at
|
339
|
+
<generator object batch_calculate at 0x7369aa3e60>
|
340
340
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('1 m ** 3', <Quantity(1, 'meter ** 3')>)]
|
341
341
|
```
|
342
342
|
|
@@ -442,7 +442,7 @@ print(list(chunk_array(arr, 5)))
|
|
442
442
|
|
443
443
|
Output:
|
444
444
|
```py
|
445
|
-
<generator object chunk_array at
|
445
|
+
<generator object chunk_array at 0x7369a9f2e0>
|
446
446
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
447
447
|
```
|
448
448
|
|
@@ -493,9 +493,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
493
493
|
|
494
494
|
Output:
|
495
495
|
```py
|
496
|
-
2025-05-08 09:
|
497
|
-
2025-05-08 02:
|
498
|
-
2025-05-07 19:
|
496
|
+
2025-05-08 09:24:11.974439+07:00
|
497
|
+
2025-05-08 02:24:11.975894+00:00
|
498
|
+
2025-05-07 19:24:11.978594-07:00
|
499
499
|
```
|
500
500
|
|
501
501
|
## dict_first
|
@@ -614,7 +614,7 @@ iprint(filter_empty(var))
|
|
614
614
|
|
615
615
|
Output:
|
616
616
|
```py
|
617
|
-
<generator object filter_empty at
|
617
|
+
<generator object filter_empty at 0x7369a9f4c0>
|
618
618
|
[1, '0', True, {}, ['eee']]
|
619
619
|
```
|
620
620
|
|
@@ -661,8 +661,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
661
661
|
|
662
662
|
Output:
|
663
663
|
```py
|
664
|
-
<generator object get_class_method at
|
665
|
-
[<function ExampleGetClassMethod.a at
|
664
|
+
<generator object get_class_method at 0x73693f0d60>
|
665
|
+
[<function ExampleGetClassMethod.a at 0x73693e3ba0>, <function ExampleGetClassMethod.b at 0x73693e3a60>, <function ExampleGetClassMethod.c at 0x73693e3b00>, <function ExampleGetClassMethod.d at 0x73693e3ce0>]
|
666
666
|
```
|
667
667
|
|
668
668
|
## get_filesize
|
@@ -1090,7 +1090,7 @@ Output:
|
|
1090
1090
|
|
1091
1091
|
## ienumerate
|
1092
1092
|
|
1093
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1093
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x736dc26f20>)`
|
1094
1094
|
|
1095
1095
|
meningkatkan fungsi enumerate() pada python
|
1096
1096
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1103,7 +1103,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1103
1103
|
|
1104
1104
|
Output:
|
1105
1105
|
```py
|
1106
|
-
<generator object ienumerate at
|
1106
|
+
<generator object ienumerate at 0x7369a9f4c0>
|
1107
1107
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1108
1108
|
```
|
1109
1109
|
|
@@ -1180,7 +1180,7 @@ print(ijoin(10, ' '))
|
|
1180
1180
|
|
1181
1181
|
Output:
|
1182
1182
|
```py
|
1183
|
-
|
1183
|
+
weq, asd, qweqw, dfs
|
1184
1184
|
,ini,path,seperti,url,
|
1185
1185
|
ini,path,seperti,url
|
1186
1186
|
<li>satu</li>
|
@@ -1226,7 +1226,7 @@ Output:
|
|
1226
1226
|
```py
|
1227
1227
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1228
1228
|
[['Harga Emas Hari Ini - Kamis, 08 Mei 2025'],
|
1229
|
-
['Spot Emas USD↑3.412,
|
1229
|
+
['Spot Emas USD↑3.412,70 (+24,46) / oz',
|
1230
1230
|
'Kurs IDR1,00 / USD',
|
1231
1231
|
'Emas IDR↑110 (+1) / gr'],
|
1232
1232
|
['LM Antam (Jual)↓1.513.000 (-30.000) / gr',
|
@@ -1251,10 +1251,10 @@ Output:
|
|
1251
1251
|
'Update harga LM Pegadaian :31 Desember 1969']],
|
1252
1252
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1253
1253
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1254
|
-
['Ounce\xa0(oz)', '3.412,
|
1255
|
-
['Gram\xa0(gr)', '109,
|
1256
|
-
['Kilogram\xa0(kg)', '109.
|
1257
|
-
['Update harga emas :08 Mei 2025, pukul 09:
|
1254
|
+
['Ounce\xa0(oz)', '3.412,70 (+24,46)', '1,00', '3.413'],
|
1255
|
+
['Gram\xa0(gr)', '109,72', '1,00', '110 (+1)'],
|
1256
|
+
['Kilogram\xa0(kg)', '109.720,85', '1,00', '109.721'],
|
1257
|
+
['Update harga emas :08 Mei 2025, pukul 09:24Update kurs :14 Maret 2025, '
|
1258
1258
|
'pukul 10:13']],
|
1259
1259
|
[['Gram', 'UBS Gold 99.99%'],
|
1260
1260
|
['Jual', 'Beli'],
|
@@ -1292,36 +1292,36 @@ Output:
|
|
1292
1292
|
['Unit', 'USD', 'IDR'],
|
1293
1293
|
['Angka', '+/-', 'Angka', '+/-'],
|
1294
1294
|
['Hari Ini', 'Kurs', '', '', '1', '%'],
|
1295
|
-
['oz', '3.388,24', '+24,
|
1296
|
-
['gr', '108,93', '+0,
|
1295
|
+
['oz', '3.388,24', '+24,46+0,72%', '3.388', '+24+0,72%'],
|
1296
|
+
['gr', '108,93', '+0,79+0,72%', '109', '+1+0,72%'],
|
1297
1297
|
['30 Hari', 'Kurs', '', '', '1', '%'],
|
1298
|
-
['oz', '2.987,14', '+425,
|
1299
|
-
['gr', '96,04', '+13,
|
1298
|
+
['oz', '2.987,14', '+425,56+14,25%', '2.987', '+426+14,25%'],
|
1299
|
+
['gr', '96,04', '+13,68+14,25%', '96', '+14+14,25%'],
|
1300
1300
|
['2 Bulan', 'Kurs', '', '', '16.315', '-16.314-99,99%'],
|
1301
|
-
['oz', '2.911,17', '+501,
|
1302
|
-
['gr', '93,60', '+16,
|
1301
|
+
['oz', '2.911,17', '+501,53+17,23%', '47.495.739', '-47.492.326-99,99%'],
|
1302
|
+
['gr', '93,60', '+16,12+17,23', '1.527.023', '-1.526.914-99,99%'],
|
1303
1303
|
['6 Bulan', 'Kurs', '', '', '15.767', '-15.766-99,99%'],
|
1304
|
-
['oz', '2.684,64', '+
|
1305
|
-
['gr', '86,31', '+23,
|
1304
|
+
['oz', '2.684,64', '+728,06+27,12%', '42.328.719', '-42.325.306-99,99%'],
|
1305
|
+
['gr', '86,31', '+23,41+27,12%', '1.360.900', '-1.360.790-99,99%'],
|
1306
1306
|
['1 Tahun', 'Kurs', '', '', '16.054', '-16.053-99,99%'],
|
1307
|
-
['oz', '2.317,41', '+1.
|
1308
|
-
['gr', '74,51', '+35,
|
1307
|
+
['oz', '2.317,41', '+1.095,29+47,26%', '37.203.700', '-37.200.287-99,99%'],
|
1308
|
+
['gr', '74,51', '+35,21+47,26%', '1.196.127', '-1.196.017-99,99%'],
|
1309
1309
|
['2 Tahun', 'Kurs', '', '', '15.731', '-15.730-99,99%'],
|
1310
|
-
['oz', '1.823,86', '+1.588,
|
1311
|
-
['gr', '58,64', '+51,
|
1310
|
+
['oz', '1.823,86', '+1.588,84+87,11%', '28.691.142', '-28.687.729-99,99%'],
|
1311
|
+
['gr', '58,64', '+51,08+87,11%', '922.442', '-922.332-99,99%'],
|
1312
1312
|
['3 Tahun', 'Kurs', '', '', '14.480', '-14.479-99,99%'],
|
1313
|
-
['oz', '1.861,38', '+1.
|
1314
|
-
['gr', '59,84', '+49,
|
1313
|
+
['oz', '1.861,38', '+1.551,32+83,34%', '26.952.782', '-26.949.370-99,99%'],
|
1314
|
+
['gr', '59,84', '+49,88+83,34%', '866.552', '-866.442-99,99%'],
|
1315
1315
|
['5 Tahun', 'Kurs', '', '', '15.009', '-15.008-99,99%'],
|
1316
|
-
['oz', '1.702,22', '+1.710,
|
1317
|
-
['gr', '54,73', '+54,
|
1316
|
+
['oz', '1.702,22', '+1.710,48+100,49%', '25.548.637', '-25.545.224-99,99%'],
|
1317
|
+
['gr', '54,73', '+54,99+100,49%', '821.408', '-821.298-99,99%']])
|
1318
1318
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1319
1319
|
[[''],
|
1320
1320
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1321
|
-
['USD', '109,
|
1321
|
+
['USD', '109,72↑', '+0,79+0,73%'],
|
1322
1322
|
['KURS', '16.558,35↑', '+89,85+0,55%'],
|
1323
|
-
['IDR', '1.816.
|
1324
|
-
['Kamis, 08 Mei 2025 09:
|
1323
|
+
['IDR', '1.816.796,28↑', '+22.809,36+1,27%'],
|
1324
|
+
['Kamis, 08 Mei 2025 09:24']],
|
1325
1325
|
[[''],
|
1326
1326
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1327
1327
|
'Hari Ini',
|
@@ -1332,25 +1332,25 @@ Output:
|
|
1332
1332
|
'']],
|
1333
1333
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1334
1334
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1335
|
-
['USD', '108,93', '108,93 - 109,
|
1335
|
+
['USD', '108,93', '108,93 - 109,72', '109,33'],
|
1336
1336
|
['KURS', '16.468,50', '16.468,50 - 16.558,35', '16.513,43'],
|
1337
|
-
['IDR', '1.793.986,92', '1.793.986,92 - 1.816.
|
1337
|
+
['IDR', '1.793.986,92', '1.793.986,92 - 1.816.796,28', '1.805.391,60'],
|
1338
1338
|
[''],
|
1339
1339
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1340
|
-
['USD', '84,42', '84,38 - 109,73', '+25,
|
1340
|
+
['USD', '84,42', '84,38 - 109,73', '+25,30 (29,97%)'],
|
1341
1341
|
['KURS', '16.220,76', '16.156,70 - 16.877,75', '+337,59 (2,08%)'],
|
1342
1342
|
['IDR',
|
1343
1343
|
'1.369.306,75',
|
1344
1344
|
'1.368.695,74 - 1.850.462,40',
|
1345
|
-
'+447.
|
1345
|
+
'+447.489,53 (32,68%)'],
|
1346
1346
|
[''],
|
1347
1347
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1348
|
-
['USD', '74,37', '73,75 - 109,73', '+35,
|
1348
|
+
['USD', '74,37', '73,75 - 109,73', '+35,35 (47,53%)'],
|
1349
1349
|
['KURS', '16.067,00', '15.100,00 - 16.877,75', '+491,35 (3,06%)'],
|
1350
1350
|
['IDR',
|
1351
1351
|
'1.194.982,56',
|
1352
1352
|
'1.197.616,87 - 1.850.462,40',
|
1353
|
-
'+621.
|
1353
|
+
'+621.813,72 (52,04%)']])
|
1354
1354
|
```
|
1355
1355
|
|
1356
1356
|
## iloads
|
@@ -1470,7 +1470,7 @@ Tulis URL :
|
|
1470
1470
|
```python
|
1471
1471
|
# FILE
|
1472
1472
|
print(iopen("__iopen.txt", "mana aja"))
|
1473
|
-
print(iopen("__iopen.txt", regex="(
|
1473
|
+
print(iopen("__iopen.txt", regex="([a-zA-Z])"))
|
1474
1474
|
# URL
|
1475
1475
|
print(iopen("https://www.google.com/", css_select="a"))
|
1476
1476
|
print(iopen("https://www.google.com/", dict(coba="dulu"), xpath="//a"))
|
@@ -1479,8 +1479,8 @@ print(iopen("https://www.google.com/", dict(coba="dulu"), xpath="//a"))
|
|
1479
1479
|
Output:
|
1480
1480
|
```py
|
1481
1481
|
8
|
1482
|
-
['
|
1483
|
-
[<Element a at
|
1482
|
+
['m', 'a', 'n', 'a', 'a', 'j', 'a']
|
1483
|
+
[<Element a at 0x736942a800>, <Element a at 0x736942a8a0>, <Element a at 0x736942ab20>, <Element a at 0x736942abc0>, <Element a at 0x736942ac60>, <Element a at 0x736942ad50>, <Element a at 0x736942afd0>, <Element a at 0x736942b160>, <Element a at 0x736942b250>, <Element a at 0x736942bb10>, <Element a at 0x736942bc50>, <Element a at 0x736942bcf0>, <Element a at 0x736942bd90>, <Element a at 0x736942bed0>, <Element a at 0x736942bf20>, <Element a at 0x736942bf70>, <Element a at 0x736942bfc0>, <Element a at 0x736945c050>]
|
1484
1484
|
False
|
1485
1485
|
```
|
1486
1486
|
|
@@ -1550,7 +1550,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1550
1550
|
|
1551
1551
|
Output:
|
1552
1552
|
```py
|
1553
|
-
<generator object iscandir at
|
1553
|
+
<generator object iscandir at 0x7369a9f3d0>
|
1554
1554
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1555
1555
|
```
|
1556
1556
|
|
@@ -1583,98 +1583,98 @@ iprint(ivars(__import__('pypipr')))
|
|
1583
1583
|
|
1584
1584
|
Output:
|
1585
1585
|
```py
|
1586
|
-
{'function': {'avg': <function avg at
|
1587
|
-
'get_filemtime': <function get_filemtime at
|
1588
|
-
'print_colorize': <function print_colorize at
|
1589
|
-
'print_log': <function print_log at
|
1590
|
-
'console_run': <function console_run at
|
1591
|
-
'auto_reload': <function auto_reload at
|
1592
|
-
'basename': <function basename at
|
1593
|
-
'chr_to_int': <function chr_to_int at
|
1594
|
-
'int_to_chr': <function int_to_chr at
|
1595
|
-
'irange': <function irange at
|
1596
|
-
'batchmaker': <function batchmaker at
|
1597
|
-
'calculate': <function calculate at
|
1598
|
-
'batch_calculate': <function batch_calculate at
|
1599
|
-
'bin_to_int': <function bin_to_int at
|
1600
|
-
'is_empty': <function is_empty at
|
1601
|
-
'exit_if_empty': <function exit_if_empty at
|
1602
|
-
'input_char': <function input_char at
|
1603
|
-
'choices': <function choices at
|
1604
|
-
'chunk_array': <function chunk_array at
|
1605
|
-
'create_folder': <function create_folder at
|
1606
|
-
'datetime_from_string': <function datetime_from_string at
|
1607
|
-
'datetime_now': <function datetime_now at
|
1608
|
-
'dict_first': <function dict_first at
|
1609
|
-
'dirname': <function dirname at
|
1610
|
-
'django_clear_migrations': <function django_clear_migrations at
|
1611
|
-
'django_runserver': <function django_runserver at
|
1612
|
-
'is_iterable': <function is_iterable at
|
1613
|
-
'to_str': <function to_str at
|
1614
|
-
'filter_empty': <function filter_empty at
|
1615
|
-
'get_by_index': <function get_by_index at
|
1616
|
-
'get_class_method': <function get_class_method at
|
1617
|
-
'get_filesize': <function get_filesize at
|
1618
|
-
'github_init': <function github_init at
|
1619
|
-
'github_pull': <function github_pull at
|
1620
|
-
'github_push': <function github_push at
|
1621
|
-
'github_user': <function github_user at
|
1622
|
-
'hex_to_int': <function hex_to_int at
|
1623
|
-
'iargv': <function iargv at
|
1624
|
-
'idir': <function idir at
|
1625
|
-
'idumps_html': <function idumps_html at
|
1626
|
-
'idumps': <function idumps at
|
1627
|
-
'int_to_int': <function int_to_int at
|
1628
|
-
'ienumerate': <function ienumerate at
|
1629
|
-
'ienv': <function ienv at
|
1630
|
-
'iexec': <function iexec at
|
1631
|
-
'iinput': <function iinput at
|
1632
|
-
'ijoin': <function ijoin at
|
1633
|
-
'iloads_html': <function iloads_html at
|
1634
|
-
'iloads': <function iloads at
|
1635
|
-
'int_to_bin': <function int_to_bin at
|
1636
|
-
'int_to_hex': <function int_to_hex at
|
1637
|
-
'int_to_oct': <function int_to_oct at
|
1638
|
-
'is_valid_url': <function is_valid_url at
|
1639
|
-
'iopen': <function iopen at
|
1640
|
-
'iprint': <function iprint at
|
1641
|
-
'is_raw_string': <function is_raw_string at
|
1642
|
-
'ireplace': <function ireplace at
|
1643
|
-
'is_html': <function is_html at
|
1644
|
-
'iscandir': <function iscandir at
|
1645
|
-
'isplit': <function isplit at
|
1646
|
-
'ivars': <function ivars at
|
1647
|
-
'log': <function log at
|
1648
|
-
'no_indent': <function no_indent at
|
1649
|
-
'oct_to_int': <function oct_to_int at
|
1650
|
-
'password_generator': <function password_generator at
|
1651
|
-
'path_to_module': <function path_to_module at
|
1652
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1653
|
-
'pip_update_pypipr': <function pip_update_pypipr at
|
1654
|
-
'poetry_publish': <function poetry_publish at
|
1655
|
-
'poetry_shell': <function poetry_shell at
|
1656
|
-
'poetry_update_version': <function poetry_update_version at
|
1657
|
-
'print_dir': <function print_dir at
|
1658
|
-
'print_to_last_line': <function print_to_last_line at
|
1659
|
-
'random_bool': <function random_bool at
|
1660
|
-
'repath': <function repath at
|
1661
|
-
'restart': <function restart at
|
1662
|
-
'set_timeout': <function set_timeout at
|
1663
|
-
'sets_ordered': <function sets_ordered at
|
1664
|
-
'sqlite_backup': <function sqlite_backup at
|
1665
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1666
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1667
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1668
|
-
'str_cmp': <function str_cmp at
|
1669
|
-
'text_colorize': <function text_colorize at
|
1670
|
-
'tiles': <function tiles at
|
1671
|
-
'traceback_filename': <function traceback_filename at
|
1672
|
-
'traceback_framename': <function traceback_framename at
|
1586
|
+
{'function': {'avg': <function avg at 0x7370768720>,
|
1587
|
+
'get_filemtime': <function get_filemtime at 0x736dd320c0>,
|
1588
|
+
'print_colorize': <function print_colorize at 0x736dd322a0>,
|
1589
|
+
'print_log': <function print_log at 0x736dd32160>,
|
1590
|
+
'console_run': <function console_run at 0x736dd30720>,
|
1591
|
+
'auto_reload': <function auto_reload at 0x736ddd7a60>,
|
1592
|
+
'basename': <function basename at 0x736dd32340>,
|
1593
|
+
'chr_to_int': <function chr_to_int at 0x736dd328e0>,
|
1594
|
+
'int_to_chr': <function int_to_chr at 0x736dd32980>,
|
1595
|
+
'irange': <function irange at 0x736dd32e80>,
|
1596
|
+
'batchmaker': <function batchmaker at 0x736dd32660>,
|
1597
|
+
'calculate': <function calculate at 0x736dd32200>,
|
1598
|
+
'batch_calculate': <function batch_calculate at 0x736dd323e0>,
|
1599
|
+
'bin_to_int': <function bin_to_int at 0x736dd325c0>,
|
1600
|
+
'is_empty': <function is_empty at 0x736dd33740>,
|
1601
|
+
'exit_if_empty': <function exit_if_empty at 0x736dd33600>,
|
1602
|
+
'input_char': <function input_char at 0x736dd336a0>,
|
1603
|
+
'choices': <function choices at 0x736dd339c0>,
|
1604
|
+
'chunk_array': <function chunk_array at 0x736dd33a60>,
|
1605
|
+
'create_folder': <function create_folder at 0x736dd33b00>,
|
1606
|
+
'datetime_from_string': <function datetime_from_string at 0x736dd33ba0>,
|
1607
|
+
'datetime_now': <function datetime_now at 0x736dd33c40>,
|
1608
|
+
'dict_first': <function dict_first at 0x736dd21ee0>,
|
1609
|
+
'dirname': <function dirname at 0x736dd22020>,
|
1610
|
+
'django_clear_migrations': <function django_clear_migrations at 0x736dd220c0>,
|
1611
|
+
'django_runserver': <function django_runserver at 0x736dd223e0>,
|
1612
|
+
'is_iterable': <function is_iterable at 0x736dd227a0>,
|
1613
|
+
'to_str': <function to_str at 0x736dd228e0>,
|
1614
|
+
'filter_empty': <function filter_empty at 0x736dd22660>,
|
1615
|
+
'get_by_index': <function get_by_index at 0x736dd22840>,
|
1616
|
+
'get_class_method': <function get_class_method at 0x736dd22980>,
|
1617
|
+
'get_filesize': <function get_filesize at 0x736dd22ac0>,
|
1618
|
+
'github_init': <function github_init at 0x736dd22b60>,
|
1619
|
+
'github_pull': <function github_pull at 0x736dd22c00>,
|
1620
|
+
'github_push': <function github_push at 0x736dd22d40>,
|
1621
|
+
'github_user': <function github_user at 0x736dd22de0>,
|
1622
|
+
'hex_to_int': <function hex_to_int at 0x736dd22e80>,
|
1623
|
+
'iargv': <function iargv at 0x736dd22f20>,
|
1624
|
+
'idir': <function idir at 0x736dd22fc0>,
|
1625
|
+
'idumps_html': <function idumps_html at 0x736dc26a20>,
|
1626
|
+
'idumps': <function idumps at 0x736dd23060>,
|
1627
|
+
'int_to_int': <function int_to_int at 0x736dc26f20>,
|
1628
|
+
'ienumerate': <function ienumerate at 0x736dc11260>,
|
1629
|
+
'ienv': <function ienv at 0x736dc26de0>,
|
1630
|
+
'iexec': <function iexec at 0x736dc26fc0>,
|
1631
|
+
'iinput': <function iinput at 0x736dc27060>,
|
1632
|
+
'ijoin': <function ijoin at 0x736dc27100>,
|
1633
|
+
'iloads_html': <function iloads_html at 0x736dc27420>,
|
1634
|
+
'iloads': <function iloads at 0x7370b61260>,
|
1635
|
+
'int_to_bin': <function int_to_bin at 0x736dc271a0>,
|
1636
|
+
'int_to_hex': <function int_to_hex at 0x736dc27240>,
|
1637
|
+
'int_to_oct': <function int_to_oct at 0x736dc274c0>,
|
1638
|
+
'is_valid_url': <function is_valid_url at 0x736dc27740>,
|
1639
|
+
'iopen': <function iopen at 0x736d9e32e0>,
|
1640
|
+
'iprint': <function iprint at 0x736da362a0>,
|
1641
|
+
'is_raw_string': <function is_raw_string at 0x7369b5cc20>,
|
1642
|
+
'ireplace': <function ireplace at 0x7369b53100>,
|
1643
|
+
'is_html': <function is_html at 0x7369b5cb80>,
|
1644
|
+
'iscandir': <function iscandir at 0x7369b5ccc0>,
|
1645
|
+
'isplit': <function isplit at 0x7369b5cd60>,
|
1646
|
+
'ivars': <function ivars at 0x7369b5ce00>,
|
1647
|
+
'log': <function log at 0x7369b5cea0>,
|
1648
|
+
'no_indent': <function no_indent at 0x7369b5cf40>,
|
1649
|
+
'oct_to_int': <function oct_to_int at 0x7369b5cfe0>,
|
1650
|
+
'password_generator': <function password_generator at 0x7369b5d080>,
|
1651
|
+
'path_to_module': <function path_to_module at 0x7369b5d120>,
|
1652
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7369b5d1c0>,
|
1653
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x7369b5d260>,
|
1654
|
+
'poetry_publish': <function poetry_publish at 0x7369b5d300>,
|
1655
|
+
'poetry_shell': <function poetry_shell at 0x7369b5d3a0>,
|
1656
|
+
'poetry_update_version': <function poetry_update_version at 0x7369b5d4e0>,
|
1657
|
+
'print_dir': <function print_dir at 0x7369b5d620>,
|
1658
|
+
'print_to_last_line': <function print_to_last_line at 0x7369b5d6c0>,
|
1659
|
+
'random_bool': <function random_bool at 0x7369b5d760>,
|
1660
|
+
'repath': <function repath at 0x7369b5d8a0>,
|
1661
|
+
'restart': <function restart at 0x7369b5d940>,
|
1662
|
+
'set_timeout': <function set_timeout at 0x7369b5d9e0>,
|
1663
|
+
'sets_ordered': <function sets_ordered at 0x7369b5da80>,
|
1664
|
+
'sqlite_backup': <function sqlite_backup at 0x7369b5db20>,
|
1665
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x7369b5dbc0>,
|
1666
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x7369b5dc60>,
|
1667
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x7369b5dd00>,
|
1668
|
+
'str_cmp': <function str_cmp at 0x7369b5e5c0>,
|
1669
|
+
'text_colorize': <function text_colorize at 0x7369b5e660>,
|
1670
|
+
'tiles': <function tiles at 0x7369b5e700>,
|
1671
|
+
'traceback_filename': <function traceback_filename at 0x7369b5e7a0>,
|
1672
|
+
'traceback_framename': <function traceback_framename at 0x7369b5e840>},
|
1673
1673
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1674
1674
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1675
1675
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1676
1676
|
'variable': {'LINUX': True,
|
1677
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1677
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7370760d40>,
|
1678
1678
|
'WINDOWS': False},
|
1679
1679
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.12/asyncio/__init__.py'>,
|
1680
1680
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/colorama/__init__.py'>,
|
@@ -1769,7 +1769,7 @@ print(password_generator())
|
|
1769
1769
|
|
1770
1770
|
Output:
|
1771
1771
|
```py
|
1772
|
-
|
1772
|
+
le]{j9}{
|
1773
1773
|
```
|
1774
1774
|
|
1775
1775
|
## path_to_module
|
@@ -1858,7 +1858,7 @@ Output:
|
|
1858
1858
|
__enter__ : https:/www.google.com
|
1859
1859
|
__fspath__ : https:/www.google.com
|
1860
1860
|
__getstate__ : (None, {'_raw_paths': ['https://www.google.com/'], '_drv': '', '_root': '', '_tail_cached': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1861
|
-
__hash__ :
|
1861
|
+
__hash__ : 6166326694279593436
|
1862
1862
|
__init__ : None
|
1863
1863
|
__init_subclass__ : None
|
1864
1864
|
__module__ : pathlib
|
@@ -1870,7 +1870,7 @@ Output:
|
|
1870
1870
|
__subclasshook__ : NotImplemented
|
1871
1871
|
_drv :
|
1872
1872
|
_flavour : <module 'posixpath' (frozen)>
|
1873
|
-
_hash :
|
1873
|
+
_hash : 6166326694279593436
|
1874
1874
|
_lines : https:
|
1875
1875
|
www.google.com
|
1876
1876
|
_lines_cached : https:
|
@@ -1904,7 +1904,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1904
1904
|
is_reserved : False
|
1905
1905
|
is_socket : False
|
1906
1906
|
is_symlink : False
|
1907
|
-
iterdir : <generator object Path.iterdir at
|
1907
|
+
iterdir : <generator object Path.iterdir at 0x7369414110>
|
1908
1908
|
joinpath : .
|
1909
1909
|
name :
|
1910
1910
|
parent : https:/www.google.com
|
@@ -1915,7 +1915,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1915
1915
|
stem :
|
1916
1916
|
suffix :
|
1917
1917
|
suffixes : []
|
1918
|
-
walk : <generator object Path.walk at
|
1918
|
+
walk : <generator object Path.walk at 0x7369c274c0>
|
1919
1919
|
with_segments : .
|
1920
1920
|
```
|
1921
1921
|
|
@@ -1957,7 +1957,7 @@ print(random_bool())
|
|
1957
1957
|
|
1958
1958
|
Output:
|
1959
1959
|
```py
|
1960
|
-
|
1960
|
+
True
|
1961
1961
|
```
|
1962
1962
|
|
1963
1963
|
## repath
|
@@ -1995,7 +1995,7 @@ x.cancel()
|
|
1995
1995
|
|
1996
1996
|
Output:
|
1997
1997
|
```py
|
1998
|
-
<Timer(Thread-2, started
|
1998
|
+
<Timer(Thread-2, started 495659760880)>
|
1999
1999
|
menghentikan timeout 7
|
2000
2000
|
```
|
2001
2001
|
|
@@ -2013,7 +2013,7 @@ print(list(sets_ordered(array)))
|
|
2013
2013
|
|
2014
2014
|
Output:
|
2015
2015
|
```py
|
2016
|
-
<generator object sets_ordered at
|
2016
|
+
<generator object sets_ordered at 0x7369416c20>
|
2017
2017
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
2018
2018
|
```
|
2019
2019
|
|
@@ -2135,15 +2135,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2135
2135
|
|
2136
2136
|
Output:
|
2137
2137
|
```py
|
2138
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2138
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7369af8a00>,
|
2139
2139
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2140
2140
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2141
2141
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2142
|
-
{'a':
|
2143
|
-
{'a':
|
2144
|
-
{'a': 102, 'b':
|
2145
|
-
{'a':
|
2146
|
-
{'a':
|
2142
|
+
{'a': 121, 'b': 154, 'c': 100, 'd': 245}
|
2143
|
+
{'a': 105, 'b': 158, 'c': 100, 'd': 219}
|
2144
|
+
{'a': 102, 'b': 156, 'c': 100, 'd': 206}
|
2145
|
+
{'a': 103, 'b': 151, 'c': 99, 'd': 195}
|
2146
|
+
{'a': 111, 'b': 159, 'c': 100, 'd': 229}
|
2147
2147
|
```
|
2148
2148
|
|
2149
2149
|
## PintUregQuantity
|
@@ -36,7 +36,7 @@ def iopen(path, data=None, regex=None, css_select=None, xpath=None, file_append=
|
|
36
36
|
```python
|
37
37
|
# FILE
|
38
38
|
print(iopen("__iopen.txt", "mana aja"))
|
39
|
-
print(iopen("__iopen.txt", regex="(
|
39
|
+
print(iopen("__iopen.txt", regex="([a-zA-Z])"))
|
40
40
|
# URL
|
41
41
|
print(iopen("https://www.google.com/", css_select="a"))
|
42
42
|
print(iopen("https://www.google.com/", dict(coba="dulu"), xpath="//a"))
|