pypipr 1.0.140__tar.gz → 1.0.142__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.140 → pypipr-1.0.142}/PKG-INFO +196 -242
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/print_to_last_line.py +4 -3
- pypipr-1.0.142/pypipr/traceback_filename.py +13 -0
- pypipr-1.0.142/pypipr/traceback_framename.py +13 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pyproject.toml +1 -1
- {pypipr-1.0.140 → pypipr-1.0.142}/readme.md +195 -241
- pypipr-1.0.140/pypipr/traceback_filename.py +0 -13
- pypipr-1.0.140/pypipr/traceback_framename.py +0 -13
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/__init__.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/avg.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/basename.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/calculate.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/choices.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/console_run.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/dirname.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/github_init.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/github_push.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/github_user.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iargv.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/idir.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/idumps.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/ienv.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iexec.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iloads.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/input_char.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iopen.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iprint.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/irange.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/isplit.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/ivars.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/log.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/print_log.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/restart.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/sqlite_delete_table.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/sqlite_get_all_tables.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/sqlite_get_data_table.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.140 → pypipr-1.0.142}/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.142
|
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 0x7992437940>
|
252
|
+
<generator object int_range at 0x7992437940>
|
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 0x79924c1480>
|
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 0x79924ca110>
|
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 0x7992437a40>
|
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-
|
496
|
-
2024-05-16
|
497
|
-
2024-05-
|
495
|
+
2024-05-25 23:31:33.469787+07:00
|
496
|
+
2024-05-25 16:31:33.471476+00:00
|
497
|
+
2024-05-25 09:31:33.476526-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 0x79924c9e40>
|
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 0x79924ca3e0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x7992507060>, <function ExampleGetClassMethod.b at 0x7992506fc0>, <function ExampleGetClassMethod.c at 0x79925071a0>, <function ExampleGetClassMethod.d at 0x7992507240>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -1064,7 +1064,7 @@ Output:
|
|
1064
1064
|
|
1065
1065
|
## ienumerate
|
1066
1066
|
|
1067
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1067
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x799dc539c0>)`
|
1068
1068
|
|
1069
1069
|
meningkatkan fungsi enumerate() pada python
|
1070
1070
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1077,7 +1077,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1077
1077
|
|
1078
1078
|
Output:
|
1079
1079
|
```py
|
1080
|
-
<generator object ienumerate at
|
1080
|
+
<generator object ienumerate at 0x79924ca4d0>
|
1081
1081
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1082
1082
|
```
|
1083
1083
|
|
@@ -1144,7 +1144,7 @@ print(ijoin(10, ' '))
|
|
1144
1144
|
|
1145
1145
|
Output:
|
1146
1146
|
```py
|
1147
|
-
|
1147
|
+
qweqw, dfs, asd, weq
|
1148
1148
|
,ini,path,seperti,url,
|
1149
1149
|
ini,path,seperti,url
|
1150
1150
|
<li>satu</li>
|
@@ -1189,119 +1189,62 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1189
1189
|
Output:
|
1190
1190
|
```py
|
1191
1191
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1192
|
-
[['Harga Emas Hari Ini -
|
1193
|
-
['Spot Emas USD↓2.
|
1194
|
-
'Kurs
|
1195
|
-
'Emas IDR↓1.
|
1196
|
-
['LM Antam (Jual)
|
1197
|
-
'LM Antam (Beli)↑1.245.000 (+22.000) / gr']],
|
1192
|
+
[['Harga Emas Hari Ini - Sabtu, 25 Mei 2024'],
|
1193
|
+
['Spot Emas USD↓2.334,20 (-0,64) / oz',
|
1194
|
+
'Kurs IDR16.024,00 / USD',
|
1195
|
+
'Emas IDR↓1.202.541 (-330) / gr'],
|
1196
|
+
['LM Antam (Jual)1.325.000 / gr', 'LM Antam (Beli)1.211.000 / gr']],
|
1198
1197
|
[['Harga Emas Hari Ini'],
|
1199
1198
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1200
1199
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1201
1200
|
['1000',
|
1202
|
-
'1.
|
1203
|
-
'1.
|
1201
|
+
'1.266',
|
1202
|
+
'1.265.600',
|
1204
1203
|
'1.043.040 (+8.200)',
|
1205
1204
|
'1.043.040.000 (+8.200.000)'],
|
1206
1205
|
['500',
|
1207
|
-
'2.
|
1208
|
-
'1.
|
1206
|
+
'2.531',
|
1207
|
+
'1.265.640',
|
1209
1208
|
'1.043.082 (+8.200)',
|
1210
1209
|
'521.541.000 (+4.100.000)'],
|
1211
1210
|
['250',
|
1212
|
-
'5.
|
1213
|
-
'1.
|
1211
|
+
'5.064',
|
1212
|
+
'1.266.060',
|
1214
1213
|
'1.043.512 (+8.200)',
|
1215
1214
|
'260.878.000 (+2.050.000)'],
|
1216
1215
|
['100',
|
1217
|
-
'12.
|
1218
|
-
'1.
|
1216
|
+
'12.671',
|
1217
|
+
'1.267.120',
|
1219
1218
|
'1.044.600 (+8.200)',
|
1220
1219
|
'104.460.000 (+820.000)'],
|
1221
|
-
['50',
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
['
|
1227
|
-
|
1228
|
-
|
1229
|
-
|
1230
|
-
'
|
1231
|
-
['10',
|
1232
|
-
'130.350 (+2.200)',
|
1233
|
-
'1.303.500 (+22.000)',
|
1234
|
-
'1.052.200 (+8.200)',
|
1235
|
-
'10.522.000 (+82.000)'],
|
1236
|
-
['5',
|
1237
|
-
'261.800 (+4.400)',
|
1238
|
-
'1.309.000 (+22.000)',
|
1239
|
-
'1.057.800 (+8.200)',
|
1240
|
-
'5.289.000 (+41.000)'],
|
1241
|
-
['3',
|
1242
|
-
'438.556 (+7.333)',
|
1243
|
-
'1.315.667 (+22.000)',
|
1244
|
-
'1.064.667 (+8.000)',
|
1245
|
-
'3.194.000 (+24.000)'],
|
1246
|
-
['2',
|
1247
|
-
'662.000 (+11.000)',
|
1248
|
-
'1.324.000 (+22.000)',
|
1249
|
-
'1.073.500 (+8.500)',
|
1250
|
-
'2.147.000 (+17.000)'],
|
1251
|
-
['1',
|
1252
|
-
'1.354.000 (+22.000)',
|
1253
|
-
'1.354.000 (+22.000)',
|
1254
|
-
'1.104.000 (+8.000)',
|
1255
|
-
'1.104.000 (+8.000)'],
|
1256
|
-
['0.5',
|
1257
|
-
'2.908.000 (+44.000)',
|
1258
|
-
'1.454.000 (+22.000)',
|
1259
|
-
'1.208.000 (+8.000)',
|
1260
|
-
'604.000 (+4.000)'],
|
1261
|
-
['Update harga LM Antam :16 Mei 2024, pukul 08:18Harga pembelian kembali '
|
1262
|
-
':Rp. 1.245.000/gram (+22.000)',
|
1220
|
+
['50', '25.358', '1.267.900', '1.045.400 (+8.200)', '52.270.000 (+410.000)'],
|
1221
|
+
['25', '50.779', '1.269.480', '1.047.040 (+8.200)', '26.176.000 (+205.000)'],
|
1222
|
+
['10', '127.450', '1.274.500', '1.052.200 (+8.200)', '10.522.000 (+82.000)'],
|
1223
|
+
['5', '256.000', '1.280.000', '1.057.800 (+8.200)', '5.289.000 (+41.000)'],
|
1224
|
+
['3', '428.889', '1.286.667', '1.064.667 (+8.000)', '3.194.000 (+24.000)'],
|
1225
|
+
['2', '647.500', '1.295.000', '1.073.500 (+8.500)', '2.147.000 (+17.000)'],
|
1226
|
+
['1', '1.325.000', '1.325.000', '1.104.000 (+8.000)', '1.104.000 (+8.000)'],
|
1227
|
+
['0.5', '2.850.000', '1.425.000', '1.208.000 (+8.000)', '604.000 (+4.000)'],
|
1228
|
+
['Update harga LM Antam :25 Mei 2024, pukul 08:25Harga pembelian kembali '
|
1229
|
+
':Rp. 1.211.000/gram',
|
1263
1230
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1264
|
-
[['Spot Harga Emas Hari Ini (Market
|
1231
|
+
[['Spot Harga Emas Hari Ini (Market Close)'],
|
1265
1232
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1266
|
-
['Ounce\xa0(oz)', '2.
|
1267
|
-
['Gram\xa0(gr)', '
|
1268
|
-
['Kilogram\xa0(kg)', '
|
1269
|
-
['Update harga emas :
|
1233
|
+
['Ounce\xa0(oz)', '2.334,20 (-0,64)', '16.024,00', '37.403.221'],
|
1234
|
+
['Gram\xa0(gr)', '75,05', '16.024,00', '1.202.541 (-330)'],
|
1235
|
+
['Kilogram\xa0(kg)', '75.046,27', '16.024,00', '1.202.541.474'],
|
1236
|
+
['Update harga emas :25 Mei 2024, pukul 23:31Update kurs :25 Mei 2024, pukul '
|
1270
1237
|
'13:10']],
|
1271
1238
|
[['Gram', 'UBS Gold 99.99%'],
|
1272
1239
|
['Jual', 'Beli'],
|
1273
1240
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1274
|
-
['100',
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
['
|
1280
|
-
|
1281
|
-
'1.294.000 (+22.000)',
|
1282
|
-
'62.895.000 (+250.000)',
|
1283
|
-
'1.257.900 (+5.000)'],
|
1284
|
-
['25',
|
1285
|
-
'32.400.000 (+550.000)',
|
1286
|
-
'1.296.000 (+22.000)',
|
1287
|
-
'31.550.000 (+125.000)',
|
1288
|
-
'1.262.000 (+5.000)'],
|
1289
|
-
['10',
|
1290
|
-
'13.000.000 (+210.000)',
|
1291
|
-
'1.300.000 (+21.000)',
|
1292
|
-
'12.670.000 (+50.000)',
|
1293
|
-
'1.267.000 (+5.000)'],
|
1294
|
-
['5',
|
1295
|
-
'6.525.000 (+105.000)',
|
1296
|
-
'1.305.000 (+21.000)',
|
1297
|
-
'6.387.000 (+25.000)',
|
1298
|
-
'1.277.400 (+5.000)'],
|
1299
|
-
['1',
|
1300
|
-
'1.350.000 (+20.000)',
|
1301
|
-
'1.350.000 (+20.000)',
|
1302
|
-
'1.310.000 (+5.000)',
|
1303
|
-
'1.310.000 (+5.000)'],
|
1304
|
-
['', 'Update :16 Mei 2024, pukul 11:10']],
|
1241
|
+
['100', '126.300.000', '1.263.000', '124.285.000', '1.242.850'],
|
1242
|
+
['50', '63.300.000', '1.266.000', '62.195.000', '1.243.900'],
|
1243
|
+
['25', '31.700.000', '1.268.000', '31.200.000', '1.248.000'],
|
1244
|
+
['10', '12.720.000', '1.272.000', '12.530.000', '1.253.000'],
|
1245
|
+
['5', '6.385.000', '1.277.000', '6.317.000', '1.263.400'],
|
1246
|
+
['1', '1.325.000', '1.325.000', '1.296.000', '1.296.000'],
|
1247
|
+
['', 'Update :24 Mei 2024, pukul 11:40']],
|
1305
1248
|
[['Konversi Satuan'],
|
1306
1249
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1307
1250
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1311,37 +1254,37 @@ Output:
|
|
1311
1254
|
['Waktu', 'Emas'],
|
1312
1255
|
['Unit', 'USD', 'IDR'],
|
1313
1256
|
['Angka', '+/-', 'Angka', '+/-'],
|
1314
|
-
['Hari Ini', 'Kurs', '', '', '16.
|
1315
|
-
['oz', '2.
|
1316
|
-
['gr', '
|
1317
|
-
['30 Hari', 'Kurs', '', '', '
|
1318
|
-
['oz', '2.
|
1319
|
-
['gr', '
|
1320
|
-
['2 Bulan', 'Kurs', '', '', '15.
|
1321
|
-
['oz', '2.
|
1322
|
-
['gr', '
|
1323
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1324
|
-
['oz', '
|
1325
|
-
['gr', '63
|
1326
|
-
['1 Tahun', 'Kurs', '', '', '15.731', '+
|
1327
|
-
['oz', '1.823,86', '+
|
1328
|
-
['gr', '58,64', '+
|
1329
|
-
['2 Tahun', 'Kurs', '', '', '14.
|
1330
|
-
['oz', '1.
|
1331
|
-
['gr', '
|
1332
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1333
|
-
['oz', '1.
|
1334
|
-
['gr', '
|
1335
|
-
['5 Tahun', 'Kurs', '', '', '14.
|
1336
|
-
['oz', '1.
|
1337
|
-
['gr', '41,
|
1257
|
+
['Hari Ini', 'Kurs', '', '', '16.024', '%'],
|
1258
|
+
['oz', '2.334,84', '-0,64-0,03%', '37.413.476', '-10.255-0,03%'],
|
1259
|
+
['gr', '75,07', '-0,02-0,03%', '1.202.871', '-330-0,03%'],
|
1260
|
+
['30 Hari', 'Kurs', '', '', '16.161', '-137-0,85%'],
|
1261
|
+
['oz', '2.329,41', '+4,79+0,21%', '37.645.595', '-242.374-0,64%'],
|
1262
|
+
['gr', '74,89', '+0,15+0,21%', '1.210.334', '-7.793-0,64%'],
|
1263
|
+
['2 Bulan', 'Kurs', '', '', '15.795', '+229+1,45%'],
|
1264
|
+
['oz', '2.177,78', '+156,42+7,18%', '34.398.035', '+3.005.186+8,74%'],
|
1265
|
+
['gr', '70,02', '+5,03+7,18', '1.105.923', '+96.619+8,74%'],
|
1266
|
+
['6 Bulan', 'Kurs', '', '', '15.587', '+437+2,80%'],
|
1267
|
+
['oz', '2.010,31', '+323,89+16,11%', '31.334.702', '+6.068.519+19,37%'],
|
1268
|
+
['gr', '64,63', '+10,41+16,11%', '1.007.434', '+195.107+19,37%'],
|
1269
|
+
['1 Tahun', 'Kurs', '', '', '15.731', '+293+1,86%'],
|
1270
|
+
['oz', '1.823,86', '+510,34+27,98%', '28.691.142', '+8.712.079+30,37%'],
|
1271
|
+
['gr', '58,64', '+16,41+27,98%', '922.442', '+280.100+30,37%'],
|
1272
|
+
['2 Tahun', 'Kurs', '', '', '14.653', '+1.371+9,36%'],
|
1273
|
+
['oz', '1.846,77', '+487,43+26,39%', '27.060.739', '+10.342.482+38,22%'],
|
1274
|
+
['gr', '59,38', '+15,67+26,39%', '870.023', '+332.519+38,22%'],
|
1275
|
+
['3 Tahun', 'Kurs', '', '', '14.362', '+1.662+11,57%'],
|
1276
|
+
['oz', '1.902,81', '+431,39+22,67%', '27.328.157', '+10.075.064+36,87%'],
|
1277
|
+
['gr', '61,18', '+13,87+22,67%', '878.621', '+323.921+36,87%'],
|
1278
|
+
['5 Tahun', 'Kurs', '', '', '14.360', '+1.664+11,59%'],
|
1279
|
+
['oz', '1.285,23', '+1.048,97+81,62%', '18.455.903', '+18.947.318+102,66%'],
|
1280
|
+
['gr', '41,32', '+33,73+81,62%', '593.371', '+609.170+102,66%']])
|
1338
1281
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1339
1282
|
[[''],
|
1340
1283
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1341
|
-
['USD', '
|
1342
|
-
['KURS', '
|
1343
|
-
['IDR', '1.
|
1344
|
-
['
|
1284
|
+
['USD', '75,05↓', '-0,02-0,03%'],
|
1285
|
+
['KURS', '16.045,00↑', '+12,60+0,08%'],
|
1286
|
+
['IDR', '1.204.117,45↑', '+615,70+0,05%'],
|
1287
|
+
['Sabtu, 25 Mei 2024 23:31']],
|
1345
1288
|
[[''],
|
1346
1289
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1347
1290
|
'Hari Ini',
|
@@ -1352,19 +1295,19 @@ Output:
|
|
1352
1295
|
'']],
|
1353
1296
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1354
1297
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1355
|
-
['USD', '
|
1356
|
-
['KURS', '
|
1357
|
-
['IDR', '1.
|
1298
|
+
['USD', '75,07', '75,05 - 75,07', '75,06'],
|
1299
|
+
['KURS', '16.032,40', '16.032,40 - 16.045,00', '16.038,70'],
|
1300
|
+
['IDR', '1.203.501,75', '1.203.501,75 - 1.204.117,45', '1.203.809,60'],
|
1358
1301
|
[''],
|
1359
1302
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1360
|
-
['USD', '66,32', '64,07 - 77,
|
1361
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1362
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1303
|
+
['USD', '66,32', '64,07 - 77,97', '+8,73 (13,16%)'],
|
1304
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+654,90 (4,26%)'],
|
1305
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+183.387,92 (17,97%)'],
|
1363
1306
|
[''],
|
1364
1307
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1365
|
-
['USD', '
|
1366
|
-
['KURS', '14.
|
1367
|
-
['IDR', '
|
1308
|
+
['USD', '63,01', '58,43 - 77,97', '+12,04 (19,11%)'],
|
1309
|
+
['KURS', '14.942,00', '14.833,15 - 16.307,80', '+1.103,00 (7,38%)'],
|
1310
|
+
['IDR', '941.495,39', '912.925,68 - 1.256.829,06', '+262.622,06 (27,89%)']])
|
1368
1311
|
```
|
1369
1312
|
|
1370
1313
|
## iloads
|
@@ -1494,7 +1437,7 @@ Output:
|
|
1494
1437
|
```py
|
1495
1438
|
8
|
1496
1439
|
['mana', 'aja']
|
1497
|
-
[<Element a at
|
1440
|
+
[<Element a at 0x7992515590>, <Element a at 0x7991c08780>, <Element a at 0x7991c08820>, <Element a at 0x7991c08870>, <Element a at 0x7991c088c0>, <Element a at 0x7991c08910>, <Element a at 0x7991c08960>, <Element a at 0x7991c089b0>, <Element a at 0x7991c08a00>, <Element a at 0x7991c08a50>, <Element a at 0x7991c08aa0>, <Element a at 0x7991c08af0>, <Element a at 0x7991c08b40>, <Element a at 0x7991c08b90>, <Element a at 0x7991c08be0>, <Element a at 0x7991c08c30>, <Element a at 0x7991c08c80>, <Element a at 0x7991c08cd0>]
|
1498
1441
|
False
|
1499
1442
|
```
|
1500
1443
|
|
@@ -1556,7 +1499,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1556
1499
|
|
1557
1500
|
Output:
|
1558
1501
|
```py
|
1559
|
-
<generator object iscandir at
|
1502
|
+
<generator object iscandir at 0x7992437b40>
|
1560
1503
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1561
1504
|
```
|
1562
1505
|
|
@@ -1589,86 +1532,86 @@ iprint(ivars(__import__('pypipr')))
|
|
1589
1532
|
|
1590
1533
|
Output:
|
1591
1534
|
```py
|
1592
|
-
{'function': {'avg': <function avg at
|
1593
|
-
'get_filemtime': <function get_filemtime at
|
1594
|
-
'print_colorize': <function print_colorize at
|
1595
|
-
'print_log': <function print_log at
|
1596
|
-
'console_run': <function console_run at
|
1597
|
-
'auto_reload': <function auto_reload at
|
1598
|
-
'basename': <function basename at
|
1599
|
-
'chr_to_int': <function chr_to_int at
|
1600
|
-
'int_to_chr': <function int_to_chr at
|
1601
|
-
'irange': <function irange at
|
1602
|
-
'batchmaker': <function batchmaker at
|
1603
|
-
'calculate': <function calculate at
|
1604
|
-
'batch_calculate': <function batch_calculate at
|
1605
|
-
'bin_to_int': <function bin_to_int at
|
1606
|
-
'is_empty': <function is_empty at
|
1607
|
-
'exit_if_empty': <function exit_if_empty at
|
1608
|
-
'input_char': <function input_char at
|
1609
|
-
'choices': <function choices at
|
1610
|
-
'chunk_array': <function chunk_array at
|
1611
|
-
'create_folder': <function create_folder at
|
1612
|
-
'datetime_from_string': <function datetime_from_string at
|
1613
|
-
'datetime_now': <function datetime_now at
|
1614
|
-
'dict_first': <function dict_first at
|
1615
|
-
'dirname': <function dirname at
|
1616
|
-
'is_iterable': <function is_iterable at
|
1617
|
-
'to_str': <function to_str at
|
1618
|
-
'filter_empty': <function filter_empty at
|
1619
|
-
'get_by_index': <function get_by_index at
|
1620
|
-
'get_class_method': <function get_class_method at
|
1621
|
-
'get_filesize': <function get_filesize at
|
1622
|
-
'github_init': <function github_init at
|
1623
|
-
'github_pull': <function github_pull at
|
1624
|
-
'github_push': <function github_push at
|
1625
|
-
'github_user': <function github_user at
|
1626
|
-
'hex_to_int': <function hex_to_int at
|
1627
|
-
'iargv': <function iargv at
|
1628
|
-
'idir': <function idir at
|
1629
|
-
'idumps_html': <function idumps_html at
|
1630
|
-
'idumps': <function idumps at
|
1631
|
-
'int_to_int': <function int_to_int at
|
1632
|
-
'ienumerate': <function ienumerate at
|
1633
|
-
'ienv': <function ienv at
|
1634
|
-
'iexec': <function iexec at
|
1635
|
-
'ijoin': <function ijoin at
|
1636
|
-
'iloads_html': <function iloads_html at
|
1637
|
-
'iloads': <function iloads at
|
1638
|
-
'int_to_bin': <function int_to_bin at
|
1639
|
-
'int_to_hex': <function int_to_hex at
|
1640
|
-
'int_to_oct': <function int_to_oct at
|
1641
|
-
'is_valid_url': <function is_valid_url at
|
1642
|
-
'iopen': <function iopen at
|
1643
|
-
'iprint': <function iprint at
|
1644
|
-
'ireplace': <function ireplace at
|
1645
|
-
'iscandir': <function iscandir at
|
1646
|
-
'isplit': <function isplit at
|
1647
|
-
'ivars': <function ivars at
|
1648
|
-
'log': <function log at
|
1649
|
-
'oct_to_int': <function oct_to_int at
|
1650
|
-
'password_generator': <function password_generator at
|
1651
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1652
|
-
'poetry_publish': <function poetry_publish at
|
1653
|
-
'poetry_update_version': <function poetry_update_version at
|
1654
|
-
'print_dir': <function print_dir at
|
1655
|
-
'print_to_last_line': <function print_to_last_line at
|
1656
|
-
'random_bool': <function random_bool at
|
1657
|
-
'restart': <function restart at
|
1658
|
-
'set_timeout': <function set_timeout at
|
1659
|
-
'sets_ordered': <function sets_ordered at
|
1660
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1661
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1662
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1663
|
-
'str_cmp': <function str_cmp at
|
1664
|
-
'text_colorize': <function text_colorize at
|
1665
|
-
'traceback_filename': <function traceback_filename at
|
1666
|
-
'traceback_framename': <function traceback_framename at
|
1535
|
+
{'function': {'avg': <function avg at 0x79a2dd8040>,
|
1536
|
+
'get_filemtime': <function get_filemtime at 0x799de1f060>,
|
1537
|
+
'print_colorize': <function print_colorize at 0x799de1f240>,
|
1538
|
+
'print_log': <function print_log at 0x799de1f100>,
|
1539
|
+
'console_run': <function console_run at 0x799de1f1a0>,
|
1540
|
+
'auto_reload': <function auto_reload at 0x799e798f40>,
|
1541
|
+
'basename': <function basename at 0x799ddba980>,
|
1542
|
+
'chr_to_int': <function chr_to_int at 0x799de1f7e0>,
|
1543
|
+
'int_to_chr': <function int_to_chr at 0x799de1f880>,
|
1544
|
+
'irange': <function irange at 0x799de1fb00>,
|
1545
|
+
'batchmaker': <function batchmaker at 0x799de1f4c0>,
|
1546
|
+
'calculate': <function calculate at 0x799de1f600>,
|
1547
|
+
'batch_calculate': <function batch_calculate at 0x799de1f380>,
|
1548
|
+
'bin_to_int': <function bin_to_int at 0x799e798ea0>,
|
1549
|
+
'is_empty': <function is_empty at 0x799de2c2c0>,
|
1550
|
+
'exit_if_empty': <function exit_if_empty at 0x799de2c180>,
|
1551
|
+
'input_char': <function input_char at 0x799de2c220>,
|
1552
|
+
'choices': <function choices at 0x799de2c540>,
|
1553
|
+
'chunk_array': <function chunk_array at 0x799de2c5e0>,
|
1554
|
+
'create_folder': <function create_folder at 0x799de2c680>,
|
1555
|
+
'datetime_from_string': <function datetime_from_string at 0x799de2c720>,
|
1556
|
+
'datetime_now': <function datetime_now at 0x799de2c0e0>,
|
1557
|
+
'dict_first': <function dict_first at 0x799de2ea20>,
|
1558
|
+
'dirname': <function dirname at 0x799de2eac0>,
|
1559
|
+
'is_iterable': <function is_iterable at 0x799de2eca0>,
|
1560
|
+
'to_str': <function to_str at 0x799de2ed40>,
|
1561
|
+
'filter_empty': <function filter_empty at 0x799de1f2e0>,
|
1562
|
+
'get_by_index': <function get_by_index at 0x799de2eb60>,
|
1563
|
+
'get_class_method': <function get_class_method at 0x799de2ede0>,
|
1564
|
+
'get_filesize': <function get_filesize at 0x799de2ef20>,
|
1565
|
+
'github_init': <function github_init at 0x799de2efc0>,
|
1566
|
+
'github_pull': <function github_pull at 0x799de2f060>,
|
1567
|
+
'github_push': <function github_push at 0x799de2f1a0>,
|
1568
|
+
'github_user': <function github_user at 0x799de2f240>,
|
1569
|
+
'hex_to_int': <function hex_to_int at 0x799de2f2e0>,
|
1570
|
+
'iargv': <function iargv at 0x799de2f380>,
|
1571
|
+
'idir': <function idir at 0x799de2f420>,
|
1572
|
+
'idumps_html': <function idumps_html at 0x799de2fb00>,
|
1573
|
+
'idumps': <function idumps at 0x799de2f560>,
|
1574
|
+
'int_to_int': <function int_to_int at 0x799dc539c0>,
|
1575
|
+
'ienumerate': <function ienumerate at 0x799dc46020>,
|
1576
|
+
'ienv': <function ienv at 0x799dc536a0>,
|
1577
|
+
'iexec': <function iexec at 0x799dc53a60>,
|
1578
|
+
'ijoin': <function ijoin at 0x799dc53ba0>,
|
1579
|
+
'iloads_html': <function iloads_html at 0x799dc53d80>,
|
1580
|
+
'iloads': <function iloads at 0x79a37da020>,
|
1581
|
+
'int_to_bin': <function int_to_bin at 0x799dc53b00>,
|
1582
|
+
'int_to_hex': <function int_to_hex at 0x799dc53ce0>,
|
1583
|
+
'int_to_oct': <function int_to_oct at 0x799dc53e20>,
|
1584
|
+
'is_valid_url': <function is_valid_url at 0x799daafba0>,
|
1585
|
+
'iopen': <function iopen at 0x799dc68040>,
|
1586
|
+
'iprint': <function iprint at 0x799daaf6a0>,
|
1587
|
+
'ireplace': <function ireplace at 0x799daaf7e0>,
|
1588
|
+
'iscandir': <function iscandir at 0x799db749a0>,
|
1589
|
+
'isplit': <function isplit at 0x799db74a40>,
|
1590
|
+
'ivars': <function ivars at 0x799db74ae0>,
|
1591
|
+
'log': <function log at 0x799db74b80>,
|
1592
|
+
'oct_to_int': <function oct_to_int at 0x799db74c20>,
|
1593
|
+
'password_generator': <function password_generator at 0x799db74cc0>,
|
1594
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x799db74e00>,
|
1595
|
+
'poetry_publish': <function poetry_publish at 0x799db74ea0>,
|
1596
|
+
'poetry_update_version': <function poetry_update_version at 0x799db74fe0>,
|
1597
|
+
'print_dir': <function print_dir at 0x799db751c0>,
|
1598
|
+
'print_to_last_line': <function print_to_last_line at 0x799db75260>,
|
1599
|
+
'random_bool': <function random_bool at 0x799db75300>,
|
1600
|
+
'restart': <function restart at 0x799db753a0>,
|
1601
|
+
'set_timeout': <function set_timeout at 0x799db75440>,
|
1602
|
+
'sets_ordered': <function sets_ordered at 0x799db754e0>,
|
1603
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x799db75580>,
|
1604
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x799db75120>,
|
1605
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x799db75ee0>,
|
1606
|
+
'str_cmp': <function str_cmp at 0x799db75f80>,
|
1607
|
+
'text_colorize': <function text_colorize at 0x799db76020>,
|
1608
|
+
'traceback_filename': <function traceback_filename at 0x799db760c0>,
|
1609
|
+
'traceback_framename': <function traceback_framename at 0x799db76160>},
|
1667
1610
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1668
1611
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1669
1612
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1670
1613
|
'variable': {'LINUX': True,
|
1671
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1614
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x79a2de6890>,
|
1672
1615
|
'WINDOWS': False},
|
1673
1616
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1674
1617
|
'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'>,
|
@@ -1759,7 +1702,7 @@ print(password_generator())
|
|
1759
1702
|
|
1760
1703
|
Output:
|
1761
1704
|
```py
|
1762
|
-
|
1705
|
+
TDg3SjEo
|
1763
1706
|
```
|
1764
1707
|
|
1765
1708
|
## pip_freeze_without_version
|
@@ -1817,7 +1760,7 @@ Output:
|
|
1817
1760
|
__enter__ : https:/www.google.com
|
1818
1761
|
__fspath__ : https:/www.google.com
|
1819
1762
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1820
|
-
__hash__ : -
|
1763
|
+
__hash__ : -8320060757596931504
|
1821
1764
|
__init__ : None
|
1822
1765
|
__init_subclass__ : None
|
1823
1766
|
__module__ : pathlib
|
@@ -1830,8 +1773,8 @@ Output:
|
|
1830
1773
|
_cached_cparts : ['https:', 'www.google.com']
|
1831
1774
|
_cparts : ['https:', 'www.google.com']
|
1832
1775
|
_drv :
|
1833
|
-
_flavour : <pathlib._PosixFlavour object at
|
1834
|
-
_hash : -
|
1776
|
+
_flavour : <pathlib._PosixFlavour object at 0x79a2c1d350>
|
1777
|
+
_hash : -8320060757596931504
|
1835
1778
|
_parts : ['https:', 'www.google.com']
|
1836
1779
|
_root :
|
1837
1780
|
_str : https:/www.google.com
|
@@ -1853,7 +1796,7 @@ Output:
|
|
1853
1796
|
is_reserved : False
|
1854
1797
|
is_socket : False
|
1855
1798
|
is_symlink : False
|
1856
|
-
iterdir : <generator object Path.iterdir at
|
1799
|
+
iterdir : <generator object Path.iterdir at 0x79924bf060>
|
1857
1800
|
joinpath : https:/www.google.com
|
1858
1801
|
name : www.google.com
|
1859
1802
|
parent : https:
|
@@ -1873,9 +1816,20 @@ Output:
|
|
1873
1816
|
Melakukan print ke konsol tetapi akan menimpa baris terakhir.
|
1874
1817
|
Berguna untuk memberikan progress secara interaktif.
|
1875
1818
|
|
1876
|
-
```
|
1877
|
-
|
1878
|
-
|
1819
|
+
```python
|
1820
|
+
for i in range(5):
|
1821
|
+
print(str(i) * 10)
|
1822
|
+
print_to_last_line(f" === last ===")
|
1823
|
+
```
|
1824
|
+
|
1825
|
+
Output:
|
1826
|
+
```py
|
1827
|
+
0000000000
|
1828
|
+
1111111111
|
1829
|
+
2222222222
|
1830
|
+
3333333333
|
1831
|
+
4444444444
|
1832
|
+
[1A[K === last ===
|
1879
1833
|
```
|
1880
1834
|
|
1881
1835
|
## random_bool
|
@@ -1927,7 +1881,7 @@ x.cancel()
|
|
1927
1881
|
|
1928
1882
|
Output:
|
1929
1883
|
```py
|
1930
|
-
<Timer(Thread-2, started
|
1884
|
+
<Timer(Thread-2, started 522113236208)>
|
1931
1885
|
menghentikan timeout 7
|
1932
1886
|
```
|
1933
1887
|
|
@@ -1945,7 +1899,7 @@ print(list(sets_ordered(array)))
|
|
1945
1899
|
|
1946
1900
|
Output:
|
1947
1901
|
```py
|
1948
|
-
<generator object sets_ordered at
|
1902
|
+
<generator object sets_ordered at 0x799251db10>
|
1949
1903
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1950
1904
|
```
|
1951
1905
|
|
@@ -2002,10 +1956,10 @@ text_colorize("Print some text", color=colorama.Fore.RED)
|
|
2002
1956
|
|
2003
1957
|
## traceback_filename
|
2004
1958
|
|
2005
|
-
`traceback_filename()`
|
1959
|
+
`traceback_filename(stack_level=-3)`
|
2006
1960
|
|
2007
1961
|
Mendapatkan filename dimana fungsi yg memanggil
|
2008
|
-
fungsi ini dipanggil.
|
1962
|
+
fungsi dimana fungsi ini diletakkan dipanggil.
|
2009
1963
|
|
2010
1964
|
```py
|
2011
1965
|
print(traceback_filename())
|
@@ -2013,10 +1967,10 @@ print(traceback_filename())
|
|
2013
1967
|
|
2014
1968
|
## traceback_framename
|
2015
1969
|
|
2016
|
-
`traceback_framename()`
|
1970
|
+
`traceback_framename(stack_level=-3)`
|
2017
1971
|
|
2018
1972
|
Mendapatkan frame name dimana fungsi yg memanggil
|
2019
|
-
fungsi ini dipanggil.
|
1973
|
+
fungsi dimana fungsi ini diletakan ini dipanggil.
|
2020
1974
|
|
2021
1975
|
```py
|
2022
1976
|
print(traceback_framename())
|
@@ -2059,15 +2013,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2059
2013
|
|
2060
2014
|
Output:
|
2061
2015
|
```py
|
2062
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2016
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x799251cd40>,
|
2063
2017
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2064
2018
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2065
2019
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2066
|
-
{'a':
|
2067
|
-
{'a':
|
2068
|
-
{'a':
|
2069
|
-
{'a':
|
2070
|
-
{'a':
|
2020
|
+
{'a': 163, 'b': 136, 'c': 100, 'd': 155}
|
2021
|
+
{'a': 146, 'b': 145, 'c': 100, 'd': 124}
|
2022
|
+
{'a': 135, 'b': 135, 'c': 100, 'd': 125}
|
2023
|
+
{'a': 124, 'b': 129, 'c': 100, 'd': 127}
|
2024
|
+
{'a': 127, 'b': 135, 'c': 100, 'd': 130}
|
2071
2025
|
```
|
2072
2026
|
|
2073
2027
|
## PintUregQuantity
|