pypipr 1.0.159__tar.gz → 1.0.161__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.159 → pypipr-1.0.161}/PKG-INFO +170 -155
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/__init__.py +3 -1
- pypipr-1.0.161/pypipr/iinput.py +21 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pyproject.toml +1 -1
- {pypipr-1.0.159 → pypipr-1.0.161}/readme.md +169 -154
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/TextCase.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/avg.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/basename.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/calculate.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/choices.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/console_run.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/dirname.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/django_clear_migrations.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/django_runserver.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/github_init.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/github_push.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/github_user.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iargv.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/idir.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/idumps.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/ienv.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iexec.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iloads.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/input_char.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iopen.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iprint.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/irange.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/is_html.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/is_raw_string.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/isplit.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/ivars.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/log.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/pip_update_pypipr.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/print_log.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/repath.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/restart.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/sqlite_backup.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/sqlite_delete_table.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/sqlite_get_all_tables.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/sqlite_get_data_table.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/tiles.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/to_str.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/traceback_filename.py +0 -0
- {pypipr-1.0.159 → pypipr-1.0.161}/pypipr/traceback_framename.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.161
|
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 0x6fae9a6940>
|
252
|
+
<generator object int_range at 0x6fae9a6a40>
|
253
253
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
254
254
|
[2, 5, 8]
|
255
255
|
[]
|
@@ -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 0x6fae9b71c0>
|
285
285
|
['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.']
|
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 0x6fae9cf300>
|
339
339
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('1 m ** 3', <Quantity(1, 'meter ** 3')>)]
|
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 0x6fae9b2e30>
|
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
|
-
2025-04-
|
496
|
-
2025-04-
|
497
|
-
2025-04-
|
495
|
+
2025-04-07 13:17:05.107226+07:00
|
496
|
+
2025-04-07 06:17:05.110326+00:00
|
497
|
+
2025-04-06 23:17:05.115008-07:00
|
498
498
|
```
|
499
499
|
|
500
500
|
## dict_first
|
@@ -608,7 +608,7 @@ iprint(filter_empty(var))
|
|
608
608
|
|
609
609
|
Output:
|
610
610
|
```py
|
611
|
-
<generator object filter_empty at
|
611
|
+
<generator object filter_empty at 0x6fae9b3010>
|
612
612
|
[1, '0', True, {}, ['eee']]
|
613
613
|
```
|
614
614
|
|
@@ -655,8 +655,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
655
655
|
|
656
656
|
Output:
|
657
657
|
```py
|
658
|
-
<generator object get_class_method at
|
659
|
-
[<function ExampleGetClassMethod.a at
|
658
|
+
<generator object get_class_method at 0x6fae9cfe60>
|
659
|
+
[<function ExampleGetClassMethod.a at 0x6fac19ade0>, <function ExampleGetClassMethod.b at 0x6fac19aca0>, <function ExampleGetClassMethod.c at 0x6fac19ac00>, <function ExampleGetClassMethod.d at 0x6fac19ae80>]
|
660
660
|
```
|
661
661
|
|
662
662
|
## get_filesize
|
@@ -817,6 +817,7 @@ Output:
|
|
817
817
|
'ienumerate',
|
818
818
|
'ienv',
|
819
819
|
'iexec',
|
820
|
+
'iinput',
|
820
821
|
'ijoin',
|
821
822
|
'iloads',
|
822
823
|
'iloads_html',
|
@@ -880,6 +881,7 @@ Output:
|
|
880
881
|
'text_colorize',
|
881
882
|
'textwrap',
|
882
883
|
'threading',
|
884
|
+
'tiles',
|
883
885
|
'time',
|
884
886
|
'to_str',
|
885
887
|
'traceback',
|
@@ -1080,7 +1082,7 @@ Output:
|
|
1080
1082
|
|
1081
1083
|
## ienumerate
|
1082
1084
|
|
1083
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1085
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x6fb0c7e5c0>)`
|
1084
1086
|
|
1085
1087
|
meningkatkan fungsi enumerate() pada python
|
1086
1088
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1093,7 +1095,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1093
1095
|
|
1094
1096
|
Output:
|
1095
1097
|
```py
|
1096
|
-
<generator object ienumerate at
|
1098
|
+
<generator object ienumerate at 0x6fae9b3010>
|
1097
1099
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1098
1100
|
```
|
1099
1101
|
|
@@ -1136,6 +1138,13 @@ Output:
|
|
1136
1138
|
|
1137
1139
|
```
|
1138
1140
|
|
1141
|
+
## iinput
|
1142
|
+
|
1143
|
+
`iinput(msg=None)`
|
1144
|
+
|
1145
|
+
improve input() function, dengan mengecek argv terlebih dahulu,
|
1146
|
+
jika tersedia maka gunakan argv,
|
1147
|
+
|
1139
1148
|
## ijoin
|
1140
1149
|
|
1141
1150
|
`ijoin(iterable, separator='', start='', end='', remove_empty=False, recursive=True, recursive_flat=False, str_strip=False)`
|
@@ -1160,7 +1169,7 @@ print(ijoin(10, ' '))
|
|
1160
1169
|
|
1161
1170
|
Output:
|
1162
1171
|
```py
|
1163
|
-
|
1172
|
+
dfs, qweqw, weq, asd
|
1164
1173
|
,ini,path,seperti,url,
|
1165
1174
|
ini,path,seperti,url
|
1166
1175
|
<li>satu</li>
|
@@ -1205,10 +1214,10 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1205
1214
|
Output:
|
1206
1215
|
```py
|
1207
1216
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1208
|
-
[['Harga Emas Hari Ini -
|
1209
|
-
['Spot Emas USD↓3.
|
1217
|
+
[['Harga Emas Hari Ini - Senin, 07 April 2025'],
|
1218
|
+
['Spot Emas USD↓3.027,41 (-10,24) / oz',
|
1210
1219
|
'Kurs IDR1,00 / USD',
|
1211
|
-
'Emas IDR↓
|
1220
|
+
'Emas IDR↓97 (-0) / gr'],
|
1212
1221
|
['LM Antam (Jual)↓1.513.000 (-30.000) / gr',
|
1213
1222
|
'LM Antam (Beli)↓1.366.000 (-30.000) / gr']],
|
1214
1223
|
[['Harga Emas Hari Ini'],
|
@@ -1231,10 +1240,10 @@ Output:
|
|
1231
1240
|
'Update harga LM Pegadaian :31 Desember 1969']],
|
1232
1241
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1233
1242
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1234
|
-
['Ounce\xa0(oz)', '3.
|
1235
|
-
['Gram\xa0(gr)', '
|
1236
|
-
['Kilogram\xa0(kg)', '
|
1237
|
-
['Update harga emas :
|
1243
|
+
['Ounce\xa0(oz)', '3.027,41 (-10,24)', '1,00', '3.027'],
|
1244
|
+
['Gram\xa0(gr)', '97,33', '1,00', '97 (-0)'],
|
1245
|
+
['Kilogram\xa0(kg)', '97.333,49', '1,00', '97.333'],
|
1246
|
+
['Update harga emas :07 April 2025, pukul 13:17Update kurs :14 Maret 2025, '
|
1238
1247
|
'pukul 10:13']],
|
1239
1248
|
[['Gram', 'UBS Gold 99.99%'],
|
1240
1249
|
['Jual', 'Beli'],
|
@@ -1272,36 +1281,36 @@ Output:
|
|
1272
1281
|
['Unit', 'USD', 'IDR'],
|
1273
1282
|
['Angka', '+/-', 'Angka', '+/-'],
|
1274
1283
|
['Hari Ini', 'Kurs', '', '', '1', '%'],
|
1275
|
-
['oz', '3.
|
1276
|
-
['gr', '
|
1277
|
-
['30 Hari', 'Kurs', '', '', '16.
|
1278
|
-
['oz', '2.
|
1279
|
-
['gr', '93,
|
1280
|
-
['2 Bulan', 'Kurs', '', '', '16.
|
1281
|
-
['oz', '2.
|
1282
|
-
['gr', '
|
1283
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1284
|
-
['oz', '2.
|
1285
|
-
['gr', '
|
1286
|
-
['1 Tahun', 'Kurs', '', '', '15.
|
1287
|
-
['oz', '2.
|
1288
|
-
['gr', '
|
1284
|
+
['oz', '3.037,65', '-10,24-0,34%', '3.038', '-10-0,34%'],
|
1285
|
+
['gr', '97,66', '-0,33-0,34%', '98', '-0-0,34%'],
|
1286
|
+
['30 Hari', 'Kurs', '', '', '16.315', '-16.314-99,99%'],
|
1287
|
+
['oz', '2.911,17', '+116,24+3,99%', '47.495.739', '-47.492.711-99,99%'],
|
1288
|
+
['gr', '93,60', '+3,74+3,99%', '1.527.023', '-1.526.926-99,99%'],
|
1289
|
+
['2 Bulan', 'Kurs', '', '', '16.308', '-16.307-99,99%'],
|
1290
|
+
['oz', '2.849,65', '+177,76+6,24%', '46.472.092', '-46.469.065-99,99%'],
|
1291
|
+
['gr', '91,62', '+5,72+6,24', '1.494.112', '-1.494.015-99,99%'],
|
1292
|
+
['6 Bulan', 'Kurs', '', '', '15.671', '-15.670-99,99%'],
|
1293
|
+
['oz', '2.609,31', '+418,10+16,02%', '40.890.497', '-40.887.470-99,99%'],
|
1294
|
+
['gr', '83,89', '+13,44+16,02%', '1.314.660', '-1.314.563-99,99%'],
|
1295
|
+
['1 Tahun', 'Kurs', '', '', '15.907', '-15.906-99,99%'],
|
1296
|
+
['oz', '2.329,93', '+697,48+29,94%', '37.062.197', '-37.059.169-99,99%'],
|
1297
|
+
['gr', '74,91', '+22,42+29,94%', '1.191.577', '-1.191.480-99,99%'],
|
1289
1298
|
['2 Tahun', 'Kurs', '', '', '15.731', '-15.730-99,99%'],
|
1290
|
-
['oz', '1.823,86', '+1.
|
1291
|
-
['gr', '58,64', '+
|
1292
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1293
|
-
['oz', '1.
|
1294
|
-
['gr', '62,
|
1295
|
-
['5 Tahun', 'Kurs', '', '', '16.
|
1296
|
-
['oz', '1.
|
1297
|
-
['gr', '
|
1299
|
+
['oz', '1.823,86', '+1.203,55+65,99%', '28.691.142', '-28.688.114-99,99%'],
|
1300
|
+
['gr', '58,64', '+38,70+65,99%', '922.442', '-922.344-99,99%'],
|
1301
|
+
['3 Tahun', 'Kurs', '', '', '14.359', '-14.358-99,99%'],
|
1302
|
+
['oz', '1.941,36', '+1.086,05+55,94%', '27.876.008', '-27.872.980-99,99%'],
|
1303
|
+
['gr', '62,42', '+34,92+55,94%', '896.234', '-896.137-99,99%'],
|
1304
|
+
['5 Tahun', 'Kurs', '', '', '16.245', '-16.244-99,99%'],
|
1305
|
+
['oz', '1.650,14', '+1.377,27+83,46%', '26.806.541', '-26.803.513-99,99%'],
|
1306
|
+
['gr', '53,05', '+44,28+83,46%', '861.850', '-861.753-99,99%']])
|
1298
1307
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1299
1308
|
[[''],
|
1300
1309
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1301
|
-
['USD', '
|
1310
|
+
['USD', '97,33↓', '-0,33-0,34%'],
|
1302
1311
|
['KURS', '16.355,25↓', '%'],
|
1303
|
-
['IDR', '1.
|
1304
|
-
['
|
1312
|
+
['IDR', '1.591.913,59↓', '-5.384,54-0,34%'],
|
1313
|
+
['Senin, 07 April 2025 13:17']],
|
1305
1314
|
[[''],
|
1306
1315
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1307
1316
|
'Hari Ini',
|
@@ -1312,25 +1321,25 @@ Output:
|
|
1312
1321
|
'']],
|
1313
1322
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1314
1323
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1315
|
-
['USD', '
|
1324
|
+
['USD', '97,66', '97,33 - 97,66', '97,50'],
|
1316
1325
|
['KURS', '16.355,25', '16.355,25 - 16.355,25', '16.355,25'],
|
1317
|
-
['IDR', '1.
|
1326
|
+
['IDR', '1.597.298,13', '1.591.913,59 - 1.597.298,13', '1.594.605,86'],
|
1318
1327
|
[''],
|
1319
1328
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1320
|
-
['USD', '84,42', '84,38 - 100,65', '+
|
1329
|
+
['USD', '84,42', '84,38 - 100,65', '+12,91 (15,29%)'],
|
1321
1330
|
['KURS', '16.220,76', '16.156,70 - 16.387,00', '+134,49 (0,83%)'],
|
1322
1331
|
['IDR',
|
1323
1332
|
'1.369.306,75',
|
1324
1333
|
'1.368.695,74 - 1.646.100,73',
|
1325
|
-
'+
|
1334
|
+
'+222.606,84 (16,26%)'],
|
1326
1335
|
[''],
|
1327
1336
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1328
|
-
['USD', '
|
1329
|
-
['KURS', '15.
|
1337
|
+
['USD', '74,91', '73,75 - 100,65', '+22,42 (29,93%)'],
|
1338
|
+
['KURS', '15.887,75', '15.100,00 - 16.509,65', '+467,50 (2,94%)'],
|
1330
1339
|
['IDR',
|
1331
|
-
'1.
|
1332
|
-
'1.
|
1333
|
-
'+
|
1340
|
+
'1.190.135,29',
|
1341
|
+
'1.181.943,88 - 1.646.100,73',
|
1342
|
+
'+401.778,30 (33,76%)']])
|
1334
1343
|
```
|
1335
1344
|
|
1336
1345
|
## iloads
|
@@ -1460,7 +1469,7 @@ Output:
|
|
1460
1469
|
```py
|
1461
1470
|
8
|
1462
1471
|
['mana', 'aja']
|
1463
|
-
[<Element a at
|
1472
|
+
[<Element a at 0x6fac1a56d0>, <Element a at 0x6fac1dfca0>, <Element a at 0x6fac1dfcf0>, <Element a at 0x6fac1dfd40>, <Element a at 0x6fac1dfd90>, <Element a at 0x6fac1dfde0>, <Element a at 0x6fac1dfe30>, <Element a at 0x6fac1dfe80>, <Element a at 0x6fac1dfed0>, <Element a at 0x6fac1dff20>, <Element a at 0x6fac1dff70>, <Element a at 0x6fac1dffc0>, <Element a at 0x6fac1fc050>, <Element a at 0x6fac1fc0a0>, <Element a at 0x6fac1fc0f0>, <Element a at 0x6fac1fc140>, <Element a at 0x6fac1fc190>, <Element a at 0x6fac1fc1e0>]
|
1464
1473
|
False
|
1465
1474
|
```
|
1466
1475
|
|
@@ -1530,7 +1539,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1530
1539
|
|
1531
1540
|
Output:
|
1532
1541
|
```py
|
1533
|
-
<generator object iscandir at
|
1542
|
+
<generator object iscandir at 0x6fae9b2f20>
|
1534
1543
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1535
1544
|
```
|
1536
1545
|
|
@@ -1563,94 +1572,96 @@ iprint(ivars(__import__('pypipr')))
|
|
1563
1572
|
|
1564
1573
|
Output:
|
1565
1574
|
```py
|
1566
|
-
{'function': {'avg': <function avg at
|
1567
|
-
'get_filemtime': <function get_filemtime at
|
1568
|
-
'print_colorize': <function print_colorize at
|
1569
|
-
'print_log': <function print_log at
|
1570
|
-
'console_run': <function console_run at
|
1571
|
-
'auto_reload': <function auto_reload at
|
1572
|
-
'basename': <function basename at
|
1573
|
-
'chr_to_int': <function chr_to_int at
|
1574
|
-
'int_to_chr': <function int_to_chr at
|
1575
|
-
'irange': <function irange at
|
1576
|
-
'batchmaker': <function batchmaker at
|
1577
|
-
'calculate': <function calculate at
|
1578
|
-
'batch_calculate': <function batch_calculate at
|
1579
|
-
'bin_to_int': <function bin_to_int at
|
1580
|
-
'is_empty': <function is_empty at
|
1581
|
-
'exit_if_empty': <function exit_if_empty at
|
1582
|
-
'input_char': <function input_char at
|
1583
|
-
'choices': <function choices at
|
1584
|
-
'chunk_array': <function chunk_array at
|
1585
|
-
'create_folder': <function create_folder at
|
1586
|
-
'datetime_from_string': <function datetime_from_string at
|
1587
|
-
'datetime_now': <function datetime_now at
|
1588
|
-
'dict_first': <function dict_first at
|
1589
|
-
'dirname': <function dirname at
|
1590
|
-
'django_clear_migrations': <function django_clear_migrations at
|
1591
|
-
'django_runserver': <function django_runserver at
|
1592
|
-
'is_iterable': <function is_iterable at
|
1593
|
-
'to_str': <function to_str at
|
1594
|
-
'filter_empty': <function filter_empty at
|
1595
|
-
'get_by_index': <function get_by_index at
|
1596
|
-
'get_class_method': <function get_class_method at
|
1597
|
-
'get_filesize': <function get_filesize at
|
1598
|
-
'github_init': <function github_init at
|
1599
|
-
'github_pull': <function github_pull at
|
1600
|
-
'github_push': <function github_push at
|
1601
|
-
'github_user': <function github_user at
|
1602
|
-
'hex_to_int': <function hex_to_int at
|
1603
|
-
'iargv': <function iargv at
|
1604
|
-
'idir': <function idir at
|
1605
|
-
'idumps_html': <function idumps_html at
|
1606
|
-
'idumps': <function idumps at
|
1607
|
-
'int_to_int': <function int_to_int at
|
1608
|
-
'ienumerate': <function ienumerate at
|
1609
|
-
'ienv': <function ienv at
|
1610
|
-
'iexec': <function iexec at
|
1611
|
-
'
|
1612
|
-
'
|
1613
|
-
'
|
1614
|
-
'
|
1615
|
-
'
|
1616
|
-
'
|
1617
|
-
'
|
1618
|
-
'
|
1619
|
-
'
|
1620
|
-
'
|
1621
|
-
'
|
1622
|
-
'
|
1623
|
-
'
|
1624
|
-
'
|
1625
|
-
'
|
1626
|
-
'
|
1627
|
-
'
|
1628
|
-
'
|
1629
|
-
'
|
1630
|
-
'
|
1631
|
-
'
|
1632
|
-
'
|
1633
|
-
'
|
1634
|
-
'
|
1635
|
-
'
|
1636
|
-
'
|
1637
|
-
'
|
1638
|
-
'
|
1639
|
-
'
|
1640
|
-
'
|
1641
|
-
'
|
1642
|
-
'
|
1643
|
-
'
|
1644
|
-
'
|
1645
|
-
'
|
1646
|
-
'
|
1647
|
-
'
|
1575
|
+
{'function': {'avg': <function avg at 0x6fb3fe8680>,
|
1576
|
+
'get_filemtime': <function get_filemtime at 0x6fb0bcd3a0>,
|
1577
|
+
'print_colorize': <function print_colorize at 0x6fb0bcd580>,
|
1578
|
+
'print_log': <function print_log at 0x6fb12ab4c0>,
|
1579
|
+
'console_run': <function console_run at 0x6fb0bcd440>,
|
1580
|
+
'auto_reload': <function auto_reload at 0x6fb0bccd60>,
|
1581
|
+
'basename': <function basename at 0x6fb0bcd620>,
|
1582
|
+
'chr_to_int': <function chr_to_int at 0x6fb0bcdbc0>,
|
1583
|
+
'int_to_chr': <function int_to_chr at 0x6fb0bcdc60>,
|
1584
|
+
'irange': <function irange at 0x6fb0bce160>,
|
1585
|
+
'batchmaker': <function batchmaker at 0x6fb0bcd940>,
|
1586
|
+
'calculate': <function calculate at 0x6fb0bcd4e0>,
|
1587
|
+
'batch_calculate': <function batch_calculate at 0x6fb0bcd6c0>,
|
1588
|
+
'bin_to_int': <function bin_to_int at 0x6fb0bcd8a0>,
|
1589
|
+
'is_empty': <function is_empty at 0x6fb0bcea20>,
|
1590
|
+
'exit_if_empty': <function exit_if_empty at 0x6fb0bce8e0>,
|
1591
|
+
'input_char': <function input_char at 0x6fb0bce980>,
|
1592
|
+
'choices': <function choices at 0x6fb0bceca0>,
|
1593
|
+
'chunk_array': <function chunk_array at 0x6fb0bced40>,
|
1594
|
+
'create_folder': <function create_folder at 0x6fb0bcede0>,
|
1595
|
+
'datetime_from_string': <function datetime_from_string at 0x6fb0bcee80>,
|
1596
|
+
'datetime_now': <function datetime_now at 0x6fb0bcef20>,
|
1597
|
+
'dict_first': <function dict_first at 0x6fb0bed1c0>,
|
1598
|
+
'dirname': <function dirname at 0x6fb0bed260>,
|
1599
|
+
'django_clear_migrations': <function django_clear_migrations at 0x6fb0bed300>,
|
1600
|
+
'django_runserver': <function django_runserver at 0x6fb0bed620>,
|
1601
|
+
'is_iterable': <function is_iterable at 0x6fb0bed9e0>,
|
1602
|
+
'to_str': <function to_str at 0x6fb0bedb20>,
|
1603
|
+
'filter_empty': <function filter_empty at 0x6fb0bed8a0>,
|
1604
|
+
'get_by_index': <function get_by_index at 0x6fb0beda80>,
|
1605
|
+
'get_class_method': <function get_class_method at 0x6fb0bedbc0>,
|
1606
|
+
'get_filesize': <function get_filesize at 0x6fb0bedd00>,
|
1607
|
+
'github_init': <function github_init at 0x6fb0bedda0>,
|
1608
|
+
'github_pull': <function github_pull at 0x6fb0bede40>,
|
1609
|
+
'github_push': <function github_push at 0x6fb0bedf80>,
|
1610
|
+
'github_user': <function github_user at 0x6fb0bee020>,
|
1611
|
+
'hex_to_int': <function hex_to_int at 0x6fb0bee0c0>,
|
1612
|
+
'iargv': <function iargv at 0x6fb0bee160>,
|
1613
|
+
'idir': <function idir at 0x6fb0bee200>,
|
1614
|
+
'idumps_html': <function idumps_html at 0x6fb0c7e0c0>,
|
1615
|
+
'idumps': <function idumps at 0x6fb0bee2a0>,
|
1616
|
+
'int_to_int': <function int_to_int at 0x6fb0c7e5c0>,
|
1617
|
+
'ienumerate': <function ienumerate at 0x6fb0c5c900>,
|
1618
|
+
'ienv': <function ienv at 0x6fb0c7e480>,
|
1619
|
+
'iexec': <function iexec at 0x6fb0c7e660>,
|
1620
|
+
'iinput': <function iinput at 0x6fb0c7e8e0>,
|
1621
|
+
'ijoin': <function ijoin at 0x6fb0c7e980>,
|
1622
|
+
'iloads_html': <function iloads_html at 0x6fb0c7ec00>,
|
1623
|
+
'iloads': <function iloads at 0x6fb4a31260>,
|
1624
|
+
'int_to_bin': <function int_to_bin at 0x6fb0c7e700>,
|
1625
|
+
'int_to_hex': <function int_to_hex at 0x6fb0c7ea20>,
|
1626
|
+
'int_to_oct': <function int_to_oct at 0x6fb0c7eca0>,
|
1627
|
+
'is_valid_url': <function is_valid_url at 0x6fb0c7ef20>,
|
1628
|
+
'iopen': <function iopen at 0x6fb0a1aac0>,
|
1629
|
+
'iprint': <function iprint at 0x6fb0a6da80>,
|
1630
|
+
'is_raw_string': <function is_raw_string at 0x6faeb94360>,
|
1631
|
+
'ireplace': <function ireplace at 0x6faeb7a840>,
|
1632
|
+
'is_html': <function is_html at 0x6faeb942c0>,
|
1633
|
+
'iscandir': <function iscandir at 0x6faeb94400>,
|
1634
|
+
'isplit': <function isplit at 0x6faeb944a0>,
|
1635
|
+
'ivars': <function ivars at 0x6faeb94540>,
|
1636
|
+
'log': <function log at 0x6faeb945e0>,
|
1637
|
+
'oct_to_int': <function oct_to_int at 0x6faeb94680>,
|
1638
|
+
'password_generator': <function password_generator at 0x6faeb94720>,
|
1639
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x6faeb947c0>,
|
1640
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x6faeb94860>,
|
1641
|
+
'poetry_publish': <function poetry_publish at 0x6faeb94900>,
|
1642
|
+
'poetry_update_version': <function poetry_update_version at 0x6faeb94a40>,
|
1643
|
+
'print_dir': <function print_dir at 0x6faeb94b80>,
|
1644
|
+
'print_to_last_line': <function print_to_last_line at 0x6faeb94c20>,
|
1645
|
+
'random_bool': <function random_bool at 0x6faeb94cc0>,
|
1646
|
+
'repath': <function repath at 0x6faeb94e00>,
|
1647
|
+
'restart': <function restart at 0x6faeb94ea0>,
|
1648
|
+
'set_timeout': <function set_timeout at 0x6faeb94f40>,
|
1649
|
+
'sets_ordered': <function sets_ordered at 0x6faeb94fe0>,
|
1650
|
+
'sqlite_backup': <function sqlite_backup at 0x6faeb95080>,
|
1651
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x6faeb95120>,
|
1652
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x6faeb94d60>,
|
1653
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x6faeb95260>,
|
1654
|
+
'str_cmp': <function str_cmp at 0x6faeb95b20>,
|
1655
|
+
'text_colorize': <function text_colorize at 0x6faeb95bc0>,
|
1656
|
+
'tiles': <function tiles at 0x6faeb95c60>,
|
1657
|
+
'traceback_filename': <function traceback_filename at 0x6faeb95d00>,
|
1658
|
+
'traceback_framename': <function traceback_framename at 0x6faeb95da0>},
|
1648
1659
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1649
1660
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1650
1661
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1651
1662
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1652
1663
|
'variable': {'LINUX': True,
|
1653
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1664
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x6fb11ff260>,
|
1654
1665
|
'WINDOWS': False},
|
1655
1666
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.12/asyncio/__init__.py'>,
|
1656
1667
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-ZoJyDxLL-py3.12/lib/python3.12/site-packages/colorama/__init__.py'>,
|
@@ -1741,7 +1752,7 @@ print(password_generator())
|
|
1741
1752
|
|
1742
1753
|
Output:
|
1743
1754
|
```py
|
1744
|
-
|
1755
|
+
mYt>iWF`
|
1745
1756
|
```
|
1746
1757
|
|
1747
1758
|
## pip_freeze_without_version
|
@@ -1803,7 +1814,7 @@ Output:
|
|
1803
1814
|
__enter__ : https:/www.google.com
|
1804
1815
|
__fspath__ : https:/www.google.com
|
1805
1816
|
__getstate__ : (None, {'_raw_paths': ['https://www.google.com/'], '_drv': '', '_root': '', '_tail_cached': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1806
|
-
__hash__ :
|
1817
|
+
__hash__ : 1277735634047499482
|
1807
1818
|
__init__ : None
|
1808
1819
|
__init_subclass__ : None
|
1809
1820
|
__module__ : pathlib
|
@@ -1815,7 +1826,7 @@ Output:
|
|
1815
1826
|
__subclasshook__ : NotImplemented
|
1816
1827
|
_drv :
|
1817
1828
|
_flavour : <module 'posixpath' (frozen)>
|
1818
|
-
_hash :
|
1829
|
+
_hash : 1277735634047499482
|
1819
1830
|
_lines : https:
|
1820
1831
|
www.google.com
|
1821
1832
|
_lines_cached : https:
|
@@ -1849,7 +1860,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1849
1860
|
is_reserved : False
|
1850
1861
|
is_socket : False
|
1851
1862
|
is_symlink : False
|
1852
|
-
iterdir : <generator object Path.iterdir at
|
1863
|
+
iterdir : <generator object Path.iterdir at 0x6fae9bfe00>
|
1853
1864
|
joinpath : .
|
1854
1865
|
name :
|
1855
1866
|
parent : https:/www.google.com
|
@@ -1860,7 +1871,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1860
1871
|
stem :
|
1861
1872
|
suffix :
|
1862
1873
|
suffixes : []
|
1863
|
-
walk : <generator object Path.walk at
|
1874
|
+
walk : <generator object Path.walk at 0x6faec47ec0>
|
1864
1875
|
with_segments : .
|
1865
1876
|
```
|
1866
1877
|
|
@@ -1902,7 +1913,7 @@ print(random_bool())
|
|
1902
1913
|
|
1903
1914
|
Output:
|
1904
1915
|
```py
|
1905
|
-
|
1916
|
+
True
|
1906
1917
|
```
|
1907
1918
|
|
1908
1919
|
## repath
|
@@ -1940,7 +1951,7 @@ x.cancel()
|
|
1940
1951
|
|
1941
1952
|
Output:
|
1942
1953
|
```py
|
1943
|
-
<Timer(Thread-2, started
|
1954
|
+
<Timer(Thread-2, started 479601868016)>
|
1944
1955
|
menghentikan timeout 7
|
1945
1956
|
```
|
1946
1957
|
|
@@ -1958,7 +1969,7 @@ print(list(sets_ordered(array)))
|
|
1958
1969
|
|
1959
1970
|
Output:
|
1960
1971
|
```py
|
1961
|
-
<generator object sets_ordered at
|
1972
|
+
<generator object sets_ordered at 0x6fac1bec20>
|
1962
1973
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1963
1974
|
```
|
1964
1975
|
|
@@ -2017,6 +2028,10 @@ text_colorize("Print some text")
|
|
2017
2028
|
text_colorize("Print some text", color=colorama.Fore.RED)
|
2018
2029
|
```
|
2019
2030
|
|
2031
|
+
## tiles
|
2032
|
+
|
2033
|
+
`tiles(tile_x=None, tile_y=None, area_x=None, area_y=None, gap_x=None, gap_y=None)`
|
2034
|
+
|
2020
2035
|
## traceback_filename
|
2021
2036
|
|
2022
2037
|
`traceback_filename(stack_level=-3)`
|
@@ -2076,15 +2091,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2076
2091
|
|
2077
2092
|
Output:
|
2078
2093
|
```py
|
2079
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2094
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x6faea08ac0>,
|
2080
2095
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2081
2096
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2082
2097
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2083
|
-
{'a':
|
2084
|
-
{'a':
|
2085
|
-
{'a':
|
2086
|
-
{'a':
|
2087
|
-
{'a':
|
2098
|
+
{'a': 100, 'b': 184, 'c': 189, 'd': 161}
|
2099
|
+
{'a': 100, 'b': 172, 'c': 126, 'd': 165}
|
2100
|
+
{'a': 100, 'b': 180, 'c': 129, 'd': 178}
|
2101
|
+
{'a': 100, 'b': 171, 'c': 116, 'd': 164}
|
2102
|
+
{'a': 100, 'b': 162, 'c': 113, 'd': 162}
|
2088
2103
|
```
|
2089
2104
|
|
2090
2105
|
## PintUregQuantity
|
@@ -41,6 +41,7 @@ from .idumps_html import idumps_html
|
|
41
41
|
from .ienumerate import ienumerate
|
42
42
|
from .ienv import ienv
|
43
43
|
from .iexec import iexec
|
44
|
+
from .iinput import iinput
|
44
45
|
from .ijoin import ijoin
|
45
46
|
from .iloads import iloads
|
46
47
|
from .iloads_html import iloads_html
|
@@ -84,6 +85,7 @@ from .sqlite_get_all_tables import sqlite_get_all_tables
|
|
84
85
|
from .sqlite_get_data_table import sqlite_get_data_table
|
85
86
|
from .str_cmp import str_cmp
|
86
87
|
from .text_colorize import text_colorize
|
88
|
+
from .tiles import tiles
|
87
89
|
from .to_str import to_str
|
88
90
|
from .traceback_filename import traceback_filename
|
89
91
|
from .traceback_framename import traceback_framename
|
@@ -118,4 +120,4 @@ import tzdata
|
|
118
120
|
import uuid
|
119
121
|
import webbrowser
|
120
122
|
import yaml
|
121
|
-
import zoneinfo
|
123
|
+
import zoneinfo
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import sys
|
2
|
+
|
3
|
+
args = sys.argv
|
4
|
+
args_iter = iter(sys.argv)
|
5
|
+
|
6
|
+
|
7
|
+
def iinput(msg=None):
|
8
|
+
"""
|
9
|
+
improve input() function, dengan mengecek argv terlebih dahulu,
|
10
|
+
jika tersedia maka gunakan argv,
|
11
|
+
"""
|
12
|
+
global args_iter
|
13
|
+
|
14
|
+
# RESET: buat iterator baru
|
15
|
+
if msg is None:
|
16
|
+
args_iter = iter(args)
|
17
|
+
|
18
|
+
try:
|
19
|
+
return next(args_iter)
|
20
|
+
except StopIteration:
|
21
|
+
return input(msg)
|