pypipr 1.0.180__tar.gz → 1.0.182__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.180 → pypipr-1.0.182}/PKG-INFO +186 -175
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/__init__.py +1 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/dict_first.py +5 -2
- pypipr-1.0.182/pypipr/dirname.py +10 -0
- pypipr-1.0.180/pypipr/dirname.py → pypipr-1.0.182/pypipr/dirpath.py +2 -2
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iopen.py +2 -2
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/path_to_module.py +2 -13
- {pypipr-1.0.180 → pypipr-1.0.182}/pyproject.toml +2 -2
- {pypipr-1.0.180 → pypipr-1.0.182}/readme.md +179 -173
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/avg.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/basename.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/calculate.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/choices.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/console_run.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/django_clear_migrations.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/django_runserver.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/github_init.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/github_push.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/github_user.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iargv.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/idir.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/idumps.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/ienv.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iexec.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iinput.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iloads.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/input_char.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iprint.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/irange.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/is_html.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/is_raw_string.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/isplit.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/ivars.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/log.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/no_indent.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/pip_update_pypipr.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/poetry_shell.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/print_log.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/repath.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/restart.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/sqlite_backup.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/sqlite_delete_table.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/sqlite_get_all_tables.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/sqlite_get_data_table.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/tiles.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/to_str.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/traceback_filename.py +0 -0
- {pypipr-1.0.180 → pypipr-1.0.182}/pypipr/traceback_framename.py +0 -0
@@ -1,11 +1,16 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.182
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
7
|
-
Requires-Python: >=3
|
7
|
+
Requires-Python: >=3,<4
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: Programming Language :: Python :: 3.4
|
10
|
+
Classifier: Programming Language :: Python :: 3.5
|
11
|
+
Classifier: Programming Language :: Python :: 3.6
|
12
|
+
Classifier: Programming Language :: Python :: 3.7
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
9
14
|
Classifier: Programming Language :: Python :: 3.9
|
10
15
|
Classifier: Programming Language :: Python :: 3.10
|
11
16
|
Classifier: Programming Language :: Python :: 3.11
|
@@ -249,8 +254,8 @@ iprint(irange("z", "a", 4))
|
|
249
254
|
|
250
255
|
Output:
|
251
256
|
```py
|
252
|
-
<generator object int_range at
|
253
|
-
<generator object int_range at
|
257
|
+
<generator object int_range at 0x7a0042a940>
|
258
|
+
<generator object int_range at 0x7a0042aa40>
|
254
259
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
255
260
|
[2, 5, 8]
|
256
261
|
[]
|
@@ -282,7 +287,7 @@ print(list(batchmaker(s)))
|
|
282
287
|
|
283
288
|
Output:
|
284
289
|
```py
|
285
|
-
<generator object batchmaker at
|
290
|
+
<generator object batchmaker at 0x7a003d3e20>
|
286
291
|
['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
292
|
```
|
288
293
|
|
@@ -336,7 +341,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
336
341
|
|
337
342
|
Output:
|
338
343
|
```py
|
339
|
-
<generator object batch_calculate at
|
344
|
+
<generator object batch_calculate at 0x7a00433e60>
|
340
345
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('1 m ** 3', <Quantity(1, 'meter ** 3')>)]
|
341
346
|
```
|
342
347
|
|
@@ -442,7 +447,7 @@ print(list(chunk_array(arr, 5)))
|
|
442
447
|
|
443
448
|
Output:
|
444
449
|
```py
|
445
|
-
<generator object chunk_array at
|
450
|
+
<generator object chunk_array at 0x7a0042f2e0>
|
446
451
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
447
452
|
```
|
448
453
|
|
@@ -493,9 +498,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
493
498
|
|
494
499
|
Output:
|
495
500
|
```py
|
496
|
-
2025-05-
|
497
|
-
2025-05-
|
498
|
-
2025-05-
|
501
|
+
2025-05-28 20:00:58.890065+07:00
|
502
|
+
2025-05-28 13:00:58.891018+00:00
|
503
|
+
2025-05-28 06:00:58.894035-07:00
|
499
504
|
```
|
500
505
|
|
501
506
|
## dict_first
|
@@ -520,9 +525,24 @@ Output:
|
|
520
525
|
('key3', 'value3')
|
521
526
|
```
|
522
527
|
|
528
|
+
## traceback_filename
|
529
|
+
|
530
|
+
`traceback_filename(stack_level=-3)`
|
531
|
+
|
532
|
+
Mendapatkan filename dimana fungsi yg memanggil
|
533
|
+
fungsi dimana fungsi ini diletakkan dipanggil.
|
534
|
+
|
535
|
+
```py
|
536
|
+
print(traceback_filename())
|
537
|
+
```
|
538
|
+
|
523
539
|
## dirname
|
524
540
|
|
525
|
-
`dirname(path, indeks=-
|
541
|
+
`dirname(path=None, indeks=-2)`
|
542
|
+
|
543
|
+
## dirpath
|
544
|
+
|
545
|
+
`dirpath(path, indeks=-1, abs_path=None)`
|
526
546
|
|
527
547
|
Mengembalikan bagian direktori dari sebuah path berdasarkan indeks.
|
528
548
|
Tanpa trailing slash di akhir.
|
@@ -539,7 +559,7 @@ Returns:
|
|
539
559
|
str: Path direktori hasil ekstraksi.
|
540
560
|
|
541
561
|
Contoh:
|
542
|
-
|
562
|
+
dirpath("/a/b/c/d/e.txt", -2) -> "a/b/c"
|
543
563
|
|
544
564
|
## django_clear_migrations
|
545
565
|
|
@@ -614,7 +634,7 @@ iprint(filter_empty(var))
|
|
614
634
|
|
615
635
|
Output:
|
616
636
|
```py
|
617
|
-
<generator object filter_empty at
|
637
|
+
<generator object filter_empty at 0x7a0042f4c0>
|
618
638
|
[1, '0', True, {}, ['eee']]
|
619
639
|
```
|
620
640
|
|
@@ -661,8 +681,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
661
681
|
|
662
682
|
Output:
|
663
683
|
```py
|
664
|
-
<generator object get_class_method at
|
665
|
-
[<function ExampleGetClassMethod.a at
|
684
|
+
<generator object get_class_method at 0x7a00130d60>
|
685
|
+
[<function ExampleGetClassMethod.a at 0x7a00123c40>, <function ExampleGetClassMethod.b at 0x7a00123b00>, <function ExampleGetClassMethod.c at 0x7a00123ba0>, <function ExampleGetClassMethod.d at 0x7a00123d80>]
|
666
686
|
```
|
667
687
|
|
668
688
|
## get_filesize
|
@@ -801,6 +821,7 @@ Output:
|
|
801
821
|
'datetime_now',
|
802
822
|
'dict_first',
|
803
823
|
'dirname',
|
824
|
+
'dirpath',
|
804
825
|
'django_clear_migrations',
|
805
826
|
'django_runserver',
|
806
827
|
'exit_if_empty',
|
@@ -1090,7 +1111,7 @@ Output:
|
|
1090
1111
|
|
1091
1112
|
## ienumerate
|
1092
1113
|
|
1093
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1114
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7a042fb060>)`
|
1094
1115
|
|
1095
1116
|
meningkatkan fungsi enumerate() pada python
|
1096
1117
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1103,7 +1124,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1103
1124
|
|
1104
1125
|
Output:
|
1105
1126
|
```py
|
1106
|
-
<generator object ienumerate at
|
1127
|
+
<generator object ienumerate at 0x7a0042f4c0>
|
1107
1128
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1108
1129
|
```
|
1109
1130
|
|
@@ -1180,7 +1201,7 @@ print(ijoin(10, ' '))
|
|
1180
1201
|
|
1181
1202
|
Output:
|
1182
1203
|
```py
|
1183
|
-
|
1204
|
+
dfs, qweqw, weq, asd
|
1184
1205
|
,ini,path,seperti,url,
|
1185
1206
|
ini,path,seperti,url
|
1186
1207
|
<li>satu</li>
|
@@ -1225,10 +1246,10 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1225
1246
|
Output:
|
1226
1247
|
```py
|
1227
1248
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1228
|
-
[['Harga Emas Hari Ini -
|
1229
|
-
['Spot Emas USD↑3.
|
1249
|
+
[['Harga Emas Hari Ini - Rabu, 28 Mei 2025'],
|
1250
|
+
['Spot Emas USD↑3.310,89 (+13,78) / oz',
|
1230
1251
|
'Kurs IDR1,00 / USD',
|
1231
|
-
'Emas IDR↑
|
1252
|
+
'Emas IDR↑106 (+0) / gr'],
|
1232
1253
|
['LM Antam (Jual)↓1.513.000 (-30.000) / gr',
|
1233
1254
|
'LM Antam (Beli)↓1.366.000 (-30.000) / gr']],
|
1234
1255
|
[['Harga Emas Hari Ini'],
|
@@ -1251,10 +1272,10 @@ Output:
|
|
1251
1272
|
'Update harga LM Pegadaian :31 Desember 1969']],
|
1252
1273
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1253
1274
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1254
|
-
['Ounce\xa0(oz)', '3.
|
1255
|
-
['Gram\xa0(gr)', '
|
1256
|
-
['Kilogram\xa0(kg)', '
|
1257
|
-
['Update harga emas :
|
1275
|
+
['Ounce\xa0(oz)', '3.310,89 (+13,78)', '1,00', '3.311'],
|
1276
|
+
['Gram\xa0(gr)', '106,45', '1,00', '106 (+0)'],
|
1277
|
+
['Kilogram\xa0(kg)', '106.447,59', '1,00', '106.448'],
|
1278
|
+
['Update harga emas :28 Mei 2025, pukul 19:59Update kurs :14 Maret 2025, '
|
1258
1279
|
'pukul 10:13']],
|
1259
1280
|
[['Gram', 'UBS Gold 99.99%'],
|
1260
1281
|
['Jual', 'Beli'],
|
@@ -1292,36 +1313,36 @@ Output:
|
|
1292
1313
|
['Unit', 'USD', 'IDR'],
|
1293
1314
|
['Angka', '+/-', 'Angka', '+/-'],
|
1294
1315
|
['Hari Ini', 'Kurs', '', '', '1', '%'],
|
1295
|
-
['oz', '3.
|
1296
|
-
['gr', '
|
1316
|
+
['oz', '3.297,11', '+13,78+0,42%', '3.297', '+14+0,42%'],
|
1317
|
+
['gr', '106,00', '+0,44+0,42%', '106', '+0+0,42%'],
|
1297
1318
|
['30 Hari', 'Kurs', '', '', '1', '%'],
|
1298
|
-
['oz', '
|
1299
|
-
['gr', '
|
1300
|
-
['2 Bulan', 'Kurs', '', '', '
|
1301
|
-
['oz', '
|
1302
|
-
['gr', '
|
1303
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1304
|
-
['oz', '2.
|
1305
|
-
['gr', '
|
1306
|
-
['1 Tahun', 'Kurs', '', '', '16.
|
1307
|
-
['oz', '2.
|
1308
|
-
['gr', '
|
1319
|
+
['oz', '3.336,66', '-25,77-0,77%', '3.337', '-26-0,77%'],
|
1320
|
+
['gr', '107,28', '-0,83-0,77%', '107', '-1-0,77%'],
|
1321
|
+
['2 Bulan', 'Kurs', '', '', '1', '%'],
|
1322
|
+
['oz', '3.085,58', '+225,31+7,30%', '3.086', '+225+7,30%'],
|
1323
|
+
['gr', '99,20', '+7,24+7,30', '99', '+7+7,30%'],
|
1324
|
+
['6 Bulan', 'Kurs', '', '', '15.864', '-15.863-99,99%'],
|
1325
|
+
['oz', '2.661,93', '+648,96+24,38%', '42.228.858', '-42.225.547-99,99%'],
|
1326
|
+
['gr', '85,58', '+20,86+24,38%', '1.357.689', '-1.357.583-99,99%'],
|
1327
|
+
['1 Tahun', 'Kurs', '', '', '16.064', '-16.063-99,99%'],
|
1328
|
+
['oz', '2.357,80', '+953,09+40,42%', '37.875.699', '-37.872.388-99,99%'],
|
1329
|
+
['gr', '75,81', '+30,64+40,42%', '1.217.732', '-1.217.626-99,99%'],
|
1309
1330
|
['2 Tahun', 'Kurs', '', '', '15.731', '-15.730-99,99%'],
|
1310
|
-
['oz', '1.823,86', '+1.
|
1311
|
-
['gr', '58,64', '+
|
1312
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1313
|
-
['oz', '1.
|
1314
|
-
['gr', '59,
|
1315
|
-
['5 Tahun', 'Kurs', '', '', '
|
1316
|
-
['oz', '1.
|
1317
|
-
['gr', '
|
1331
|
+
['oz', '1.823,86', '+1.487,03+81,53%', '28.691.142', '-28.687.831-99,99%'],
|
1332
|
+
['gr', '58,64', '+47,81+81,53%', '922.442', '-922.335-99,99%'],
|
1333
|
+
['3 Tahun', 'Kurs', '', '', '14.645', '-14.644-99,99%'],
|
1334
|
+
['oz', '1.853,48', '+1.457,41+78,63%', '27.144.233', '-27.140.922-99,99%'],
|
1335
|
+
['gr', '59,59', '+46,86+78,63%', '872.707', '-872.601-99,99%'],
|
1336
|
+
['5 Tahun', 'Kurs', '', '', '14.733', '-14.732-99,99%'],
|
1337
|
+
['oz', '1.735,31', '+1.575,58+90,80%', '25.566.340', '-25.563.029-99,99%'],
|
1338
|
+
['gr', '55,79', '+50,66+90,80%', '821.977', '-821.870-99,99%']])
|
1318
1339
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1319
1340
|
[[''],
|
1320
1341
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1321
|
-
['USD', '
|
1322
|
-
['KURS', '16.
|
1323
|
-
['IDR', '1.
|
1324
|
-
['
|
1342
|
+
['USD', '106,47↑', '+0,47+0,44%'],
|
1343
|
+
['KURS', '16.318,96↑', '+35,31+0,22%'],
|
1344
|
+
['IDR', '1.737.470,66↑', '+11.329,70+0,66%'],
|
1345
|
+
['Rabu, 28 Mei 2025 20:00']],
|
1325
1346
|
[[''],
|
1326
1347
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1327
1348
|
'Hari Ini',
|
@@ -1332,25 +1353,25 @@ Output:
|
|
1332
1353
|
'']],
|
1333
1354
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1334
1355
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1335
|
-
['USD', '
|
1336
|
-
['KURS', '16.
|
1337
|
-
['IDR', '1.
|
1356
|
+
['USD', '106,00', '106,00 - 106,47', '106,24'],
|
1357
|
+
['KURS', '16.283,65', '16.283,65 - 16.318,96', '16.301,31'],
|
1358
|
+
['IDR', '1.726.140,96', '1.726.140,96 - 1.737.470,66', '1.731.805,81'],
|
1338
1359
|
[''],
|
1339
1360
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1340
|
-
['USD', '84,42', '84,38 - 109,73', '+
|
1341
|
-
['KURS', '16.220,76', '16.156,70 - 16.877,75', '+
|
1361
|
+
['USD', '84,42', '84,38 - 109,73', '+22,05 (26,12%)'],
|
1362
|
+
['KURS', '16.220,76', '16.156,70 - 16.877,75', '+98,20 (0,61%)'],
|
1342
1363
|
['IDR',
|
1343
1364
|
'1.369.306,75',
|
1344
1365
|
'1.368.695,74 - 1.850.462,40',
|
1345
|
-
'+
|
1366
|
+
'+368.163,91 (26,89%)'],
|
1346
1367
|
[''],
|
1347
1368
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1348
|
-
['USD', '
|
1349
|
-
['KURS', '16.
|
1369
|
+
['USD', '75,72', '73,75 - 109,73', '+30,75 (40,61%)'],
|
1370
|
+
['KURS', '16.073,80', '15.100,00 - 16.877,75', '+245,16 (1,53%)'],
|
1350
1371
|
['IDR',
|
1351
|
-
'1.
|
1352
|
-
'1.
|
1353
|
-
'+
|
1372
|
+
'1.217.027,90',
|
1373
|
+
'1.200.397,56 - 1.850.462,40',
|
1374
|
+
'+520.442,76 (42,76%)']])
|
1354
1375
|
```
|
1355
1376
|
|
1356
1377
|
## iloads
|
@@ -1480,7 +1501,7 @@ Output:
|
|
1480
1501
|
```py
|
1481
1502
|
8
|
1482
1503
|
['m', 'a', 'n', 'a', 'a', 'j', 'a']
|
1483
|
-
[<Element a at
|
1504
|
+
[<Element a at 0x7a0016ab20>, <Element a at 0x7a0016ada0>, <Element a at 0x7a0016ae40>, <Element a at 0x7a0016aee0>, <Element a at 0x7a0016afd0>, <Element a at 0x7a0016b250>, <Element a at 0x7a0016b3e0>, <Element a at 0x7a0016b4d0>, <Element a at 0x7a0016bd90>, <Element a at 0x7a0016bed0>, <Element a at 0x7a0016bf70>, <Element a at 0x7a0019c140>, <Element a at 0x7a0019c050>, <Element a at 0x7a0019c190>, <Element a at 0x7a0019c1e0>, <Element a at 0x7a0019c230>, <Element a at 0x7a0019c280>, <Element a at 0x7a0019c2d0>]
|
1484
1505
|
False
|
1485
1506
|
```
|
1486
1507
|
|
@@ -1550,7 +1571,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1550
1571
|
|
1551
1572
|
Output:
|
1552
1573
|
```py
|
1553
|
-
<generator object iscandir at
|
1574
|
+
<generator object iscandir at 0x7a0042f3d0>
|
1554
1575
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1555
1576
|
```
|
1556
1577
|
|
@@ -1583,98 +1604,99 @@ iprint(ivars(__import__('pypipr')))
|
|
1583
1604
|
|
1584
1605
|
Output:
|
1585
1606
|
```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
|
-
'
|
1610
|
-
'
|
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
|
-
'
|
1648
|
-
'
|
1649
|
-
'
|
1650
|
-
'
|
1651
|
-
'
|
1652
|
-
'
|
1653
|
-
'
|
1654
|
-
'
|
1655
|
-
'
|
1656
|
-
'
|
1657
|
-
'
|
1658
|
-
'
|
1659
|
-
'
|
1660
|
-
'
|
1661
|
-
'
|
1662
|
-
'
|
1663
|
-
'
|
1664
|
-
'
|
1665
|
-
'
|
1666
|
-
'
|
1667
|
-
'
|
1668
|
-
'
|
1669
|
-
'
|
1670
|
-
'
|
1671
|
-
'
|
1672
|
-
'
|
1607
|
+
{'function': {'avg': <function avg at 0x7a093f0720>,
|
1608
|
+
'get_filemtime': <function get_filemtime at 0x7a044020c0>,
|
1609
|
+
'print_colorize': <function print_colorize at 0x7a044022a0>,
|
1610
|
+
'print_log': <function print_log at 0x7a04402160>,
|
1611
|
+
'console_run': <function console_run at 0x7a04400720>,
|
1612
|
+
'auto_reload': <function auto_reload at 0x7a044aba60>,
|
1613
|
+
'basename': <function basename at 0x7a04402340>,
|
1614
|
+
'chr_to_int': <function chr_to_int at 0x7a044028e0>,
|
1615
|
+
'int_to_chr': <function int_to_chr at 0x7a04402980>,
|
1616
|
+
'irange': <function irange at 0x7a04402e80>,
|
1617
|
+
'batchmaker': <function batchmaker at 0x7a04402660>,
|
1618
|
+
'calculate': <function calculate at 0x7a04402200>,
|
1619
|
+
'batch_calculate': <function batch_calculate at 0x7a044023e0>,
|
1620
|
+
'bin_to_int': <function bin_to_int at 0x7a044025c0>,
|
1621
|
+
'is_empty': <function is_empty at 0x7a04403740>,
|
1622
|
+
'exit_if_empty': <function exit_if_empty at 0x7a04403600>,
|
1623
|
+
'input_char': <function input_char at 0x7a044036a0>,
|
1624
|
+
'choices': <function choices at 0x7a044039c0>,
|
1625
|
+
'chunk_array': <function chunk_array at 0x7a04403a60>,
|
1626
|
+
'create_folder': <function create_folder at 0x7a04403b00>,
|
1627
|
+
'datetime_from_string': <function datetime_from_string at 0x7a04403ba0>,
|
1628
|
+
'datetime_now': <function datetime_now at 0x7a04403c40>,
|
1629
|
+
'dict_first': <function dict_first at 0x7a043f5ee0>,
|
1630
|
+
'traceback_filename': <function traceback_filename at 0x7a043f60c0>,
|
1631
|
+
'dirname': <function dirname at 0x7a043f5f80>,
|
1632
|
+
'dirpath': <function dirpath at 0x7a043f6160>,
|
1633
|
+
'django_clear_migrations': <function django_clear_migrations at 0x7a043f6200>,
|
1634
|
+
'django_runserver': <function django_runserver at 0x7a043f6520>,
|
1635
|
+
'is_iterable': <function is_iterable at 0x7a043f68e0>,
|
1636
|
+
'to_str': <function to_str at 0x7a043f6a20>,
|
1637
|
+
'filter_empty': <function filter_empty at 0x7a043f67a0>,
|
1638
|
+
'get_by_index': <function get_by_index at 0x7a043f6980>,
|
1639
|
+
'get_class_method': <function get_class_method at 0x7a043f6ac0>,
|
1640
|
+
'get_filesize': <function get_filesize at 0x7a043f6c00>,
|
1641
|
+
'github_init': <function github_init at 0x7a043f6ca0>,
|
1642
|
+
'github_pull': <function github_pull at 0x7a043f6d40>,
|
1643
|
+
'github_push': <function github_push at 0x7a043f6e80>,
|
1644
|
+
'github_user': <function github_user at 0x7a043f6f20>,
|
1645
|
+
'hex_to_int': <function hex_to_int at 0x7a043f6fc0>,
|
1646
|
+
'iargv': <function iargv at 0x7a043f7060>,
|
1647
|
+
'idir': <function idir at 0x7a043f7100>,
|
1648
|
+
'idumps_html': <function idumps_html at 0x7a042fab60>,
|
1649
|
+
'idumps': <function idumps at 0x7a043f71a0>,
|
1650
|
+
'int_to_int': <function int_to_int at 0x7a042fb060>,
|
1651
|
+
'ienumerate': <function ienumerate at 0x7a043f72e0>,
|
1652
|
+
'ienv': <function ienv at 0x7a042e5260>,
|
1653
|
+
'iexec': <function iexec at 0x7a042fb100>,
|
1654
|
+
'iinput': <function iinput at 0x7a042fb1a0>,
|
1655
|
+
'ijoin': <function ijoin at 0x7a042fb240>,
|
1656
|
+
'iloads_html': <function iloads_html at 0x7a042fb560>,
|
1657
|
+
'iloads': <function iloads at 0x7a09e65260>,
|
1658
|
+
'int_to_bin': <function int_to_bin at 0x7a042fb2e0>,
|
1659
|
+
'int_to_hex': <function int_to_hex at 0x7a042fb380>,
|
1660
|
+
'int_to_oct': <function int_to_oct at 0x7a042fb600>,
|
1661
|
+
'is_valid_url': <function is_valid_url at 0x7a042fb880>,
|
1662
|
+
'iopen': <function iopen at 0x7a040c7420>,
|
1663
|
+
'iprint': <function iprint at 0x7a042fb740>,
|
1664
|
+
'is_raw_string': <function is_raw_string at 0x7a00634d60>,
|
1665
|
+
'ireplace': <function ireplace at 0x7a00627240>,
|
1666
|
+
'is_html': <function is_html at 0x7a00634cc0>,
|
1667
|
+
'iscandir': <function iscandir at 0x7a00634e00>,
|
1668
|
+
'isplit': <function isplit at 0x7a00634ea0>,
|
1669
|
+
'ivars': <function ivars at 0x7a00634f40>,
|
1670
|
+
'log': <function log at 0x7a00634fe0>,
|
1671
|
+
'no_indent': <function no_indent at 0x7a00635080>,
|
1672
|
+
'oct_to_int': <function oct_to_int at 0x7a00635120>,
|
1673
|
+
'password_generator': <function password_generator at 0x7a006351c0>,
|
1674
|
+
'path_to_module': <function path_to_module at 0x7a00635260>,
|
1675
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7a00635300>,
|
1676
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x7a006353a0>,
|
1677
|
+
'poetry_publish': <function poetry_publish at 0x7a00635440>,
|
1678
|
+
'poetry_shell': <function poetry_shell at 0x7a006354e0>,
|
1679
|
+
'poetry_update_version': <function poetry_update_version at 0x7a00635620>,
|
1680
|
+
'print_dir': <function print_dir at 0x7a00635760>,
|
1681
|
+
'print_to_last_line': <function print_to_last_line at 0x7a00635800>,
|
1682
|
+
'random_bool': <function random_bool at 0x7a006358a0>,
|
1683
|
+
'repath': <function repath at 0x7a006359e0>,
|
1684
|
+
'restart': <function restart at 0x7a00635a80>,
|
1685
|
+
'set_timeout': <function set_timeout at 0x7a00635b20>,
|
1686
|
+
'sets_ordered': <function sets_ordered at 0x7a00635bc0>,
|
1687
|
+
'sqlite_backup': <function sqlite_backup at 0x7a00635c60>,
|
1688
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x7a00635d00>,
|
1689
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x7a00635940>,
|
1690
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x7a00635e40>,
|
1691
|
+
'str_cmp': <function str_cmp at 0x7a00636700>,
|
1692
|
+
'text_colorize': <function text_colorize at 0x7a006367a0>,
|
1693
|
+
'tiles': <function tiles at 0x7a00636840>,
|
1694
|
+
'traceback_framename': <function traceback_framename at 0x7a006368e0>},
|
1673
1695
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1674
1696
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1675
1697
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1676
1698
|
'variable': {'LINUX': True,
|
1677
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1699
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7a093e8d70>,
|
1678
1700
|
'WINDOWS': False},
|
1679
1701
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.12/asyncio/__init__.py'>,
|
1680
1702
|
'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 +1791,7 @@ print(password_generator())
|
|
1769
1791
|
|
1770
1792
|
Output:
|
1771
1793
|
```py
|
1772
|
-
|
1794
|
+
RP>7&AGF
|
1773
1795
|
```
|
1774
1796
|
|
1775
1797
|
## path_to_module
|
@@ -1858,7 +1880,7 @@ Output:
|
|
1858
1880
|
__enter__ : https:/www.google.com
|
1859
1881
|
__fspath__ : https:/www.google.com
|
1860
1882
|
__getstate__ : (None, {'_raw_paths': ['https://www.google.com/'], '_drv': '', '_root': '', '_tail_cached': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1861
|
-
__hash__ :
|
1883
|
+
__hash__ : -6736506729884439606
|
1862
1884
|
__init__ : None
|
1863
1885
|
__init_subclass__ : None
|
1864
1886
|
__module__ : pathlib
|
@@ -1870,7 +1892,7 @@ Output:
|
|
1870
1892
|
__subclasshook__ : NotImplemented
|
1871
1893
|
_drv :
|
1872
1894
|
_flavour : <module 'posixpath' (frozen)>
|
1873
|
-
_hash :
|
1895
|
+
_hash : -6736506729884439606
|
1874
1896
|
_lines : https:
|
1875
1897
|
www.google.com
|
1876
1898
|
_lines_cached : https:
|
@@ -1904,7 +1926,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1904
1926
|
is_reserved : False
|
1905
1927
|
is_socket : False
|
1906
1928
|
is_symlink : False
|
1907
|
-
iterdir : <generator object Path.iterdir at
|
1929
|
+
iterdir : <generator object Path.iterdir at 0x7a00158040>
|
1908
1930
|
joinpath : .
|
1909
1931
|
name :
|
1910
1932
|
parent : https:/www.google.com
|
@@ -1915,7 +1937,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1915
1937
|
stem :
|
1916
1938
|
suffix :
|
1917
1939
|
suffixes : []
|
1918
|
-
walk : <generator object Path.walk at
|
1940
|
+
walk : <generator object Path.walk at 0x7a006ff4c0>
|
1919
1941
|
with_segments : .
|
1920
1942
|
```
|
1921
1943
|
|
@@ -1995,7 +2017,7 @@ x.cancel()
|
|
1995
2017
|
|
1996
2018
|
Output:
|
1997
2019
|
```py
|
1998
|
-
<Timer(Thread-2, started
|
2020
|
+
<Timer(Thread-2, started 523964959984)>
|
1999
2021
|
menghentikan timeout 7
|
2000
2022
|
```
|
2001
2023
|
|
@@ -2013,7 +2035,7 @@ print(list(sets_ordered(array)))
|
|
2013
2035
|
|
2014
2036
|
Output:
|
2015
2037
|
```py
|
2016
|
-
<generator object sets_ordered at
|
2038
|
+
<generator object sets_ordered at 0x7a0015ac20>
|
2017
2039
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
2018
2040
|
```
|
2019
2041
|
|
@@ -2076,17 +2098,6 @@ text_colorize("Print some text", color=colorama.Fore.RED)
|
|
2076
2098
|
|
2077
2099
|
`tiles(tile_x=None, tile_y=None, area_x=None, area_y=None, gap_x=None, gap_y=None)`
|
2078
2100
|
|
2079
|
-
## traceback_filename
|
2080
|
-
|
2081
|
-
`traceback_filename(stack_level=-3)`
|
2082
|
-
|
2083
|
-
Mendapatkan filename dimana fungsi yg memanggil
|
2084
|
-
fungsi dimana fungsi ini diletakkan dipanggil.
|
2085
|
-
|
2086
|
-
```py
|
2087
|
-
print(traceback_filename())
|
2088
|
-
```
|
2089
|
-
|
2090
2101
|
## traceback_framename
|
2091
2102
|
|
2092
2103
|
`traceback_framename(stack_level=-3)`
|
@@ -2135,15 +2146,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2135
2146
|
|
2136
2147
|
Output:
|
2137
2148
|
```py
|
2138
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2149
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7a00488a00>,
|
2139
2150
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2140
2151
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2141
2152
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2142
|
-
{'a':
|
2143
|
-
{'a':
|
2144
|
-
{'a':
|
2145
|
-
{'a':
|
2146
|
-
{'a':
|
2153
|
+
{'a': 100, 'b': 180, 'c': 165, 'd': 154}
|
2154
|
+
{'a': 100, 'b': 176, 'c': 130, 'd': 167}
|
2155
|
+
{'a': 100, 'b': 166, 'c': 118, 'd': 173}
|
2156
|
+
{'a': 99, 'b': 161, 'c': 113, 'd': 156}
|
2157
|
+
{'a': 100, 'b': 178, 'c': 126, 'd': 169}
|
2147
2158
|
```
|
2148
2159
|
|
2149
2160
|
## PintUregQuantity
|
@@ -20,6 +20,7 @@ from .datetime_from_string import datetime_from_string
|
|
20
20
|
from .datetime_now import datetime_now
|
21
21
|
from .dict_first import dict_first
|
22
22
|
from .dirname import dirname
|
23
|
+
from .dirpath import dirpath
|
23
24
|
from .django_clear_migrations import django_clear_migrations
|
24
25
|
from .django_runserver import django_runserver
|
25
26
|
from .exit_if_empty import exit_if_empty
|