pypipr 1.0.118__tar.gz → 1.0.120__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.118 → pypipr-1.0.120}/PKG-INFO +173 -122
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/__init__.py +3 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/__terminal__.py +1 -0
- pypipr-1.0.120/pypipr/bin_to_int.py +12 -0
- pypipr-1.0.120/pypipr/hex_to_int.py +12 -0
- pypipr-1.0.120/pypipr/oct_to_int.py +12 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pyproject.toml +1 -1
- {pypipr-1.0.118 → pypipr-1.0.120}/readme.md +172 -121
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/APIMixinView.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/avg.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/basename.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/calculate.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/choices.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/choices.py.bak +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/console_run.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/dirname.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/github_push.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/github_user.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iargv.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/idumps.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/ienv.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iexec.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iloads.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/input_char.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iopen.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iprint.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/irange.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/isplit.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/ivars.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/log.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/print_log.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/restart.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.120}/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.120
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -250,8 +250,8 @@ iprint(irange("z", "a", 4))
|
|
250
250
|
|
251
251
|
Output:
|
252
252
|
```py
|
253
|
-
<generator object int_range at
|
254
|
-
<generator object int_range at
|
253
|
+
<generator object int_range at 0x7d20bd4540>
|
254
|
+
<generator object int_range at 0x7d20bd4540>
|
255
255
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
256
256
|
[2, 5, 8]
|
257
257
|
[2, 5, 8]
|
@@ -283,7 +283,7 @@ print(list(batchmaker(s)))
|
|
283
283
|
|
284
284
|
Output:
|
285
285
|
```py
|
286
|
-
<generator object batchmaker at
|
286
|
+
<generator object batchmaker at 0x7d20bc83a0>
|
287
287
|
['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.']
|
288
288
|
```
|
289
289
|
|
@@ -337,10 +337,26 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
337
337
|
|
338
338
|
Output:
|
339
339
|
```py
|
340
|
-
<generator object batch_calculate at
|
340
|
+
<generator object batch_calculate at 0x7d20b4b010>
|
341
341
|
[('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')>)]
|
342
342
|
```
|
343
343
|
|
344
|
+
## bin_to_int
|
345
|
+
|
346
|
+
`bin_to_int(n)`
|
347
|
+
|
348
|
+
Fungsi ini berguna untuk mengubah angka binary
|
349
|
+
menjadi angka integer.
|
350
|
+
|
351
|
+
```python
|
352
|
+
print(bin_to_int(bin(244)))
|
353
|
+
```
|
354
|
+
|
355
|
+
Output:
|
356
|
+
```py
|
357
|
+
244
|
358
|
+
```
|
359
|
+
|
344
360
|
## is_empty
|
345
361
|
|
346
362
|
`is_empty(variable, empty=[None, False, 0, 0, '0', '', '-0', '\n', '\t', set(), {}, [], ()])`
|
@@ -449,7 +465,7 @@ print(list(chunk_array(arr, 5)))
|
|
449
465
|
|
450
466
|
Output:
|
451
467
|
```py
|
452
|
-
<generator object chunk_array at
|
468
|
+
<generator object chunk_array at 0x7d20bd4540>
|
453
469
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
454
470
|
```
|
455
471
|
|
@@ -500,9 +516,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
500
516
|
|
501
517
|
Output:
|
502
518
|
```py
|
503
|
-
2024-05-01 09:
|
504
|
-
2024-05-01 02:
|
505
|
-
2024-04-30 19:
|
519
|
+
2024-05-01 09:55:07.182593+07:00
|
520
|
+
2024-05-01 02:55:07.184074+00:00
|
521
|
+
2024-04-30 19:55:07.188176-07:00
|
506
522
|
```
|
507
523
|
|
508
524
|
## dict_first
|
@@ -608,7 +624,7 @@ iprint(filter_empty(var))
|
|
608
624
|
|
609
625
|
Output:
|
610
626
|
```py
|
611
|
-
<generator object filter_empty at
|
627
|
+
<generator object filter_empty at 0x7d20b495d0>
|
612
628
|
[1, '0', True, {}, ['eee']]
|
613
629
|
```
|
614
630
|
|
@@ -638,8 +654,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
638
654
|
|
639
655
|
Output:
|
640
656
|
```py
|
641
|
-
<generator object get_class_method at
|
642
|
-
[<function ExampleGetClassMethod.a at
|
657
|
+
<generator object get_class_method at 0x7d20b4b2e0>
|
658
|
+
[<function ExampleGetClassMethod.a at 0x7d20bed300>, <function ExampleGetClassMethod.b at 0x7d20bed620>, <function ExampleGetClassMethod.c at 0x7d20bed4e0>, <function ExampleGetClassMethod.d at 0x7d20bed6c0>]
|
643
659
|
```
|
644
660
|
|
645
661
|
## get_filesize
|
@@ -688,6 +704,22 @@ menginput nya setiap saat.
|
|
688
704
|
github_user('my@emil.com', 'MyName')
|
689
705
|
```
|
690
706
|
|
707
|
+
## hex_to_int
|
708
|
+
|
709
|
+
`hex_to_int(n)`
|
710
|
+
|
711
|
+
Fungsi ini berguna untuk mengubah angka hexadecimal
|
712
|
+
menjadi angka integer.
|
713
|
+
|
714
|
+
```python
|
715
|
+
print(hex_to_int(hex(244)))
|
716
|
+
```
|
717
|
+
|
718
|
+
Output:
|
719
|
+
```py
|
720
|
+
244
|
721
|
+
```
|
722
|
+
|
691
723
|
## iargv
|
692
724
|
|
693
725
|
`iargv(key: int, cast=None, on_error=None)`
|
@@ -893,7 +925,7 @@ Output:
|
|
893
925
|
|
894
926
|
## ienumerate
|
895
927
|
|
896
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
928
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7d289c9ee0>)`
|
897
929
|
|
898
930
|
meningkatkan fungsi enumerate() pada python
|
899
931
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -906,7 +938,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
906
938
|
|
907
939
|
Output:
|
908
940
|
```py
|
909
|
-
<generator object ienumerate at
|
941
|
+
<generator object ienumerate at 0x7d20b4b3d0>
|
910
942
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
911
943
|
```
|
912
944
|
|
@@ -973,7 +1005,7 @@ print(ijoin(10, ' '))
|
|
973
1005
|
|
974
1006
|
Output:
|
975
1007
|
```py
|
976
|
-
|
1008
|
+
qweqw, dfs, asd, weq
|
977
1009
|
,ini,path,seperti,url,
|
978
1010
|
ini,path,seperti,url
|
979
1011
|
<li>satu</li>
|
@@ -1019,9 +1051,9 @@ Output:
|
|
1019
1051
|
```py
|
1020
1052
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1021
1053
|
[['Harga Emas Hari Ini - Rabu, 01 Mei 2024'],
|
1022
|
-
['Spot Emas USD↓2.287,
|
1054
|
+
['Spot Emas USD↓2.287,98 (-8,04) / oz',
|
1023
1055
|
'Kurs IDR16.249,00 / USD',
|
1024
|
-
'Emas IDR↓1.195.
|
1056
|
+
'Emas IDR↓1.195.281 (-4.200) / gr'],
|
1025
1057
|
['LM Antam (Jual)↓1.310.000 (-15.000) / gr',
|
1026
1058
|
'LM Antam (Beli)↓1.204.000 (-17.000) / gr']],
|
1027
1059
|
[['Harga Emas Hari Ini'],
|
@@ -1092,10 +1124,10 @@ Output:
|
|
1092
1124
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1093
1125
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1094
1126
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1095
|
-
['Ounce\xa0(oz)', '2.287,
|
1096
|
-
['Gram\xa0(gr)', '73,
|
1097
|
-
['Kilogram\xa0(kg)', '73.
|
1098
|
-
['Update harga emas :01 Mei 2024, pukul 09:
|
1127
|
+
['Ounce\xa0(oz)', '2.287,98 (-8,04)', '16.249,00', '37.177.387'],
|
1128
|
+
['Gram\xa0(gr)', '73,56', '16.249,00', '1.195.281 (-4.200)'],
|
1129
|
+
['Kilogram\xa0(kg)', '73.560,27', '16.249,00', '1.195.280.749'],
|
1130
|
+
['Update harga emas :01 Mei 2024, pukul 09:54Update kurs :30 April 2024, '
|
1099
1131
|
'pukul 13:10']],
|
1100
1132
|
[['Gram', 'UBS Gold 99.99%'],
|
1101
1133
|
['Jual', 'Beli'],
|
@@ -1117,36 +1149,36 @@ Output:
|
|
1117
1149
|
['Unit', 'USD', 'IDR'],
|
1118
1150
|
['Angka', '+/-', 'Angka', '+/-'],
|
1119
1151
|
['Hari Ini', 'Kurs', '', '', '16.249', '%'],
|
1120
|
-
['oz', '2.296,02', '-8,
|
1121
|
-
['gr', '73,82', '-0,
|
1152
|
+
['oz', '2.296,02', '-8,04-0,35%', '37.308.029', '-130.642-0,35%'],
|
1153
|
+
['gr', '73,82', '-0,26-0,35%', '1.199.481', '-4.200-0,35%'],
|
1122
1154
|
['30 Hari', 'Kurs', '', '', '15.873', '+376+2,37%'],
|
1123
|
-
['oz', '2.239,34', '+48,
|
1124
|
-
['gr', '72,00', '+1,
|
1155
|
+
['oz', '2.239,34', '+48,64+2,17%', '35.545.044', '+1.632.343+4,59%'],
|
1156
|
+
['gr', '72,00', '+1,56+2,17%', '1.142.800', '+52.481+4,59%'],
|
1125
1157
|
['2 Bulan', 'Kurs', '', '', '15.715', '+534+3,40%'],
|
1126
|
-
['oz', '2.082,55', '+205,
|
1127
|
-
['gr', '66,96', '+6,
|
1158
|
+
['oz', '2.082,55', '+205,43+9,86%', '32.727.273', '+4.450.114+13,60%'],
|
1159
|
+
['gr', '66,96', '+6,60+9,86', '1.052.206', '+143.074+13,60%'],
|
1128
1160
|
['6 Bulan', 'Kurs', '', '', '15.861', '+388+2,45%'],
|
1129
|
-
['oz', '1.990,54', '+297,
|
1130
|
-
['gr', '64,00', '+9,
|
1161
|
+
['oz', '1.990,54', '+297,44+14,94%', '31.571.955', '+5.605.432+17,75%'],
|
1162
|
+
['gr', '64,00', '+9,56+14,94%', '1.015.062', '+180.219+17,75%'],
|
1131
1163
|
['1 Tahun', 'Kurs', '', '', '15.731', '+518+3,29%'],
|
1132
|
-
['oz', '1.823,86', '+
|
1133
|
-
['gr', '58,64', '+14,
|
1164
|
+
['oz', '1.823,86', '+464,12+25,45%', '28.691.142', '+8.486.245+29,58%'],
|
1165
|
+
['gr', '58,64', '+14,92+25,45%', '922.442', '+272.839+29,58%'],
|
1134
1166
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.831+12,70%'],
|
1135
|
-
['oz', '1.867,23', '+420,
|
1136
|
-
['gr', '60,03', '+13,
|
1167
|
+
['oz', '1.867,23', '+420,75+22,53%', '26.921.722', '+10.255.665+38,09%'],
|
1168
|
+
['gr', '60,03', '+13,53+22,53%', '865.553', '+329.727+38,09%'],
|
1137
1169
|
['3 Tahun', 'Kurs', '', '', '14.468', '+1.781+12,31%'],
|
1138
|
-
['oz', '1.768,91', '+
|
1139
|
-
['gr', '56,87', '+16,
|
1170
|
+
['oz', '1.768,91', '+519,07+29,34%', '25.592.590', '+11.584.797+45,27%'],
|
1171
|
+
['gr', '56,87', '+16,69+29,34%', '822.821', '+372.460+45,27%'],
|
1140
1172
|
['5 Tahun', 'Kurs', '', '', '14.282', '+1.967+13,77%'],
|
1141
|
-
['oz', '1.280,82', '+1.
|
1142
|
-
['gr', '41,18', '+32,
|
1173
|
+
['oz', '1.280,82', '+1.007,16+78,63%', '18.292.671', '+18.884.716+103,24%'],
|
1174
|
+
['gr', '41,18', '+32,38+78,63%', '588.123', '+607.158+103,24%']])
|
1143
1175
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1144
1176
|
[[''],
|
1145
1177
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1146
|
-
['USD', '73,
|
1178
|
+
['USD', '73,56↓', '-0,26-0,35%'],
|
1147
1179
|
['KURS', '16.265,05↑', '+4,05+0,02%'],
|
1148
|
-
['IDR', '1.196.
|
1149
|
-
['Rabu, 01 Mei 2024 09:
|
1180
|
+
['IDR', '1.196.456,16↓', '-3.910,65-0,33%'],
|
1181
|
+
['Rabu, 01 Mei 2024 09:55']],
|
1150
1182
|
[[''],
|
1151
1183
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1152
1184
|
'Hari Ini',
|
@@ -1157,19 +1189,19 @@ Output:
|
|
1157
1189
|
'']],
|
1158
1190
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1159
1191
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1160
|
-
['USD', '73,82', '73,
|
1192
|
+
['USD', '73,82', '73,56 - 73,82', '73,69'],
|
1161
1193
|
['KURS', '16.261,00', '16.261,00 - 16.265,05', '16.263,03'],
|
1162
|
-
['IDR', '1.200.366,81', '1.196.
|
1194
|
+
['IDR', '1.200.366,81', '1.196.456,16 - 1.200.366,81', '1.198.411,49'],
|
1163
1195
|
[''],
|
1164
1196
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1165
|
-
['USD', '66,32', '64,07 - 77,14', '+7,
|
1197
|
+
['USD', '66,32', '64,07 - 77,14', '+7,24 (10,92%)'],
|
1166
1198
|
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+874,95 (5,69%)'],
|
1167
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.
|
1199
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.726,63 (17,22%)'],
|
1168
1200
|
[''],
|
1169
1201
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1170
|
-
['USD', '63,97', '58,43 - 77,14', '+9,
|
1202
|
+
['USD', '63,97', '58,43 - 77,14', '+9,59 (14,99%)'],
|
1171
1203
|
['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.591,50 (10,85%)'],
|
1172
|
-
['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+257.
|
1204
|
+
['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+257.746,43 (27,46%)']])
|
1173
1205
|
```
|
1174
1206
|
|
1175
1207
|
## iloads
|
@@ -1299,7 +1331,7 @@ Output:
|
|
1299
1331
|
```py
|
1300
1332
|
8
|
1301
1333
|
['mana', 'aja']
|
1302
|
-
[<Element a at
|
1334
|
+
[<Element a at 0x7d20be59f0>, <Element a at 0x7d20c25310>, <Element a at 0x7d20c253b0>, <Element a at 0x7d20c25400>, <Element a at 0x7d20c25450>, <Element a at 0x7d20c254a0>, <Element a at 0x7d20c254f0>, <Element a at 0x7d20c25540>, <Element a at 0x7d20c25590>, <Element a at 0x7d20c255e0>, <Element a at 0x7d20c25630>, <Element a at 0x7d20c25680>, <Element a at 0x7d20c256d0>, <Element a at 0x7d20c25720>, <Element a at 0x7d20c25770>, <Element a at 0x7d20c257c0>, <Element a at 0x7d20c25810>, <Element a at 0x7d20c25860>]
|
1303
1335
|
False
|
1304
1336
|
```
|
1305
1337
|
|
@@ -1361,7 +1393,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1361
1393
|
|
1362
1394
|
Output:
|
1363
1395
|
```py
|
1364
|
-
<generator object iscandir at
|
1396
|
+
<generator object iscandir at 0x7d20bd4840>
|
1365
1397
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1366
1398
|
```
|
1367
1399
|
|
@@ -1398,73 +1430,76 @@ Output:
|
|
1398
1430
|
'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1399
1431
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1400
1432
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1401
|
-
'function': {'avg': <function avg at
|
1402
|
-
'get_filemtime': <function get_filemtime at
|
1403
|
-
'print_colorize': <function print_colorize at
|
1404
|
-
'print_log': <function print_log at
|
1405
|
-
'console_run': <function console_run at
|
1406
|
-
'auto_reload': <function auto_reload at
|
1407
|
-
'basename': <function basename at
|
1408
|
-
'chr_to_int': <function chr_to_int at
|
1409
|
-
'int_to_chr': <function int_to_chr at
|
1410
|
-
'irange': <function irange at
|
1411
|
-
'batchmaker': <function batchmaker at
|
1412
|
-
'calculate': <function calculate at
|
1413
|
-
'batch_calculate': <function batch_calculate at
|
1414
|
-
'
|
1415
|
-
'
|
1416
|
-
'
|
1417
|
-
'
|
1418
|
-
'
|
1419
|
-
'
|
1420
|
-
'
|
1421
|
-
'
|
1422
|
-
'
|
1423
|
-
'
|
1424
|
-
'
|
1425
|
-
'
|
1426
|
-
'
|
1427
|
-
'
|
1428
|
-
'
|
1429
|
-
'
|
1430
|
-
'
|
1431
|
-
'
|
1432
|
-
'
|
1433
|
-
'
|
1434
|
-
'
|
1435
|
-
'
|
1436
|
-
'
|
1437
|
-
'
|
1438
|
-
'
|
1439
|
-
'
|
1440
|
-
'
|
1441
|
-
'
|
1442
|
-
'
|
1443
|
-
'
|
1444
|
-
'
|
1445
|
-
'
|
1446
|
-
'
|
1447
|
-
'
|
1448
|
-
'
|
1449
|
-
'
|
1450
|
-
'
|
1451
|
-
'
|
1452
|
-
'
|
1453
|
-
'
|
1454
|
-
'
|
1455
|
-
'
|
1456
|
-
'
|
1457
|
-
'
|
1458
|
-
'
|
1459
|
-
'
|
1460
|
-
'
|
1461
|
-
'
|
1462
|
-
'
|
1463
|
-
'
|
1464
|
-
'
|
1465
|
-
'
|
1433
|
+
'function': {'avg': <function avg at 0x7d2ec4e700>,
|
1434
|
+
'get_filemtime': <function get_filemtime at 0x7d28ad72e0>,
|
1435
|
+
'print_colorize': <function print_colorize at 0x7d28ad74c0>,
|
1436
|
+
'print_log': <function print_log at 0x7d28b7ab60>,
|
1437
|
+
'console_run': <function console_run at 0x7d28ad7380>,
|
1438
|
+
'auto_reload': <function auto_reload at 0x7d28ab3ec0>,
|
1439
|
+
'basename': <function basename at 0x7d28ad7240>,
|
1440
|
+
'chr_to_int': <function chr_to_int at 0x7d28ad7a60>,
|
1441
|
+
'int_to_chr': <function int_to_chr at 0x7d28ad7b00>,
|
1442
|
+
'irange': <function irange at 0x7d28ad7d80>,
|
1443
|
+
'batchmaker': <function batchmaker at 0x7d28ad7740>,
|
1444
|
+
'calculate': <function calculate at 0x7d28ac82c0>,
|
1445
|
+
'batch_calculate': <function batch_calculate at 0x7d28ad7600>,
|
1446
|
+
'bin_to_int': <function bin_to_int at 0x7d28ad76a0>,
|
1447
|
+
'is_empty': <function is_empty at 0x7d28ac8540>,
|
1448
|
+
'exit_if_empty': <function exit_if_empty at 0x7d28ac8400>,
|
1449
|
+
'input_char': <function input_char at 0x7d28ac84a0>,
|
1450
|
+
'get_by_index': <function get_by_index at 0x7d28ac85e0>,
|
1451
|
+
'choices': <function choices at 0x7d28ac87c0>,
|
1452
|
+
'chunk_array': <function chunk_array at 0x7d28ac8860>,
|
1453
|
+
'create_folder': <function create_folder at 0x7d28ac8900>,
|
1454
|
+
'datetime_from_string': <function datetime_from_string at 0x7d28ac89a0>,
|
1455
|
+
'datetime_now': <function datetime_now at 0x7d28ac8a40>,
|
1456
|
+
'dict_first': <function dict_first at 0x7d28ac8ae0>,
|
1457
|
+
'dirname': <function dirname at 0x7d28ac8b80>,
|
1458
|
+
'is_iterable': <function is_iterable at 0x7d28ac8d60>,
|
1459
|
+
'to_str': <function to_str at 0x7d28ac8e00>,
|
1460
|
+
'filter_empty': <function filter_empty at 0x7d28ac8c20>,
|
1461
|
+
'get_class_method': <function get_class_method at 0x7d28ac8cc0>,
|
1462
|
+
'get_filesize': <function get_filesize at 0x7d28ac8f40>,
|
1463
|
+
'github_pull': <function github_pull at 0x7d28ac8fe0>,
|
1464
|
+
'github_push': <function github_push at 0x7d28ac91c0>,
|
1465
|
+
'github_user': <function github_user at 0x7d28ac9260>,
|
1466
|
+
'hex_to_int': <function hex_to_int at 0x7d28ac9080>,
|
1467
|
+
'iargv': <function iargv at 0x7d28ac9300>,
|
1468
|
+
'idumps_html': <function idumps_html at 0x7d28ac9580>,
|
1469
|
+
'idumps': <function idumps at 0x7d28ac9440>,
|
1470
|
+
'int_to_int': <function int_to_int at 0x7d289c9ee0>,
|
1471
|
+
'ienumerate': <function ienumerate at 0x7d28ac9a80>,
|
1472
|
+
'ienv': <function ienv at 0x7d289c9da0>,
|
1473
|
+
'iexec': <function iexec at 0x7d289c9f80>,
|
1474
|
+
'ijoin': <function ijoin at 0x7d289ca0c0>,
|
1475
|
+
'iloads_html': <function iloads_html at 0x7d289ca2a0>,
|
1476
|
+
'iloads': <function iloads at 0x7d289ca020>,
|
1477
|
+
'int_to_bin': <function int_to_bin at 0x7d289ca200>,
|
1478
|
+
'int_to_hex': <function int_to_hex at 0x7d289ca340>,
|
1479
|
+
'int_to_oct': <function int_to_oct at 0x7d289ca3e0>,
|
1480
|
+
'is_valid_url': <function is_valid_url at 0x7d289ca5c0>,
|
1481
|
+
'iopen': <function iopen at 0x7d287c6a20>,
|
1482
|
+
'iprint': <function iprint at 0x7d289ca520>,
|
1483
|
+
'ireplace': <function ireplace at 0x7d289ca8e0>,
|
1484
|
+
'iscandir': <function iscandir at 0x7d2887e160>,
|
1485
|
+
'isplit': <function isplit at 0x7d2887e200>,
|
1486
|
+
'ivars': <function ivars at 0x7d2887e2a0>,
|
1487
|
+
'log': <function log at 0x7d2887e340>,
|
1488
|
+
'oct_to_int': <function oct_to_int at 0x7d2887e3e0>,
|
1489
|
+
'password_generator': <function password_generator at 0x7d2887e480>,
|
1490
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7d2887e5c0>,
|
1491
|
+
'poetry_publish': <function poetry_publish at 0x7d2887e660>,
|
1492
|
+
'poetry_update_version': <function poetry_update_version at 0x7d2887e7a0>,
|
1493
|
+
'print_dir': <function print_dir at 0x7d2887e980>,
|
1494
|
+
'print_to_last_line': <function print_to_last_line at 0x7d2887ea20>,
|
1495
|
+
'random_bool': <function random_bool at 0x7d2887eac0>,
|
1496
|
+
'restart': <function restart at 0x7d2887eb60>,
|
1497
|
+
'set_timeout': <function set_timeout at 0x7d2887ec00>,
|
1498
|
+
'sets_ordered': <function sets_ordered at 0x7d2887eca0>,
|
1499
|
+
'str_cmp': <function str_cmp at 0x7d2887ed40>,
|
1500
|
+
'text_colorize': <function text_colorize at 0x7d2887ede0>},
|
1466
1501
|
'variable': {'LINUX': True,
|
1467
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1502
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7d2ec54590>,
|
1468
1503
|
'WINDOWS': False},
|
1469
1504
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1470
1505
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1526,6 +1561,22 @@ some_function_again()
|
|
1526
1561
|
some_function_more()
|
1527
1562
|
```
|
1528
1563
|
|
1564
|
+
## oct_to_int
|
1565
|
+
|
1566
|
+
`oct_to_int(n)`
|
1567
|
+
|
1568
|
+
Fungsi ini berguna untuk mengubah angka octal
|
1569
|
+
menjadi angka integer.
|
1570
|
+
|
1571
|
+
```python
|
1572
|
+
print(oct_to_int(oct(244)))
|
1573
|
+
```
|
1574
|
+
|
1575
|
+
Output:
|
1576
|
+
```py
|
1577
|
+
244
|
1578
|
+
```
|
1579
|
+
|
1529
1580
|
## password_generator
|
1530
1581
|
|
1531
1582
|
`password_generator(length=8, characters='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~')`
|
@@ -1538,7 +1589,7 @@ print(password_generator())
|
|
1538
1589
|
|
1539
1590
|
Output:
|
1540
1591
|
```py
|
1541
|
-
|
1592
|
+
{`>\QTI8
|
1542
1593
|
```
|
1543
1594
|
|
1544
1595
|
## pip_freeze_without_version
|
@@ -1596,7 +1647,7 @@ Output:
|
|
1596
1647
|
__enter__ : https:/www.google.com
|
1597
1648
|
__fspath__ : https:/www.google.com
|
1598
1649
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1599
|
-
__hash__ :
|
1650
|
+
__hash__ : 7734779578747066766
|
1600
1651
|
__init__ : None
|
1601
1652
|
__init_subclass__ : None
|
1602
1653
|
__module__ : pathlib
|
@@ -1609,8 +1660,8 @@ Output:
|
|
1609
1660
|
_cached_cparts : ['https:', 'www.google.com']
|
1610
1661
|
_cparts : ['https:', 'www.google.com']
|
1611
1662
|
_drv :
|
1612
|
-
_flavour : <pathlib._PosixFlavour object at
|
1613
|
-
_hash :
|
1663
|
+
_flavour : <pathlib._PosixFlavour object at 0x7d35864ad0>
|
1664
|
+
_hash : 7734779578747066766
|
1614
1665
|
_parts : ['https:', 'www.google.com']
|
1615
1666
|
_root :
|
1616
1667
|
_str : https:/www.google.com
|
@@ -1632,7 +1683,7 @@ Output:
|
|
1632
1683
|
is_reserved : False
|
1633
1684
|
is_socket : False
|
1634
1685
|
is_symlink : False
|
1635
|
-
iterdir : <generator object Path.iterdir at
|
1686
|
+
iterdir : <generator object Path.iterdir at 0x7d20bce960>
|
1636
1687
|
joinpath : https:/www.google.com
|
1637
1688
|
name : www.google.com
|
1638
1689
|
parent : https:
|
@@ -1706,7 +1757,7 @@ x.cancel()
|
|
1706
1757
|
|
1707
1758
|
Output:
|
1708
1759
|
```py
|
1709
|
-
<Timer(Thread-2, started
|
1760
|
+
<Timer(Thread-2, started 537396501744)>
|
1710
1761
|
menghentikan timeout 7
|
1711
1762
|
```
|
1712
1763
|
|
@@ -1724,7 +1775,7 @@ print(list(sets_ordered(array)))
|
|
1724
1775
|
|
1725
1776
|
Output:
|
1726
1777
|
```py
|
1727
|
-
<generator object sets_ordered at
|
1778
|
+
<generator object sets_ordered at 0x7d20bfd150>
|
1728
1779
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1729
1780
|
```
|
1730
1781
|
|
@@ -1818,7 +1869,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1818
1869
|
|
1819
1870
|
Output:
|
1820
1871
|
```py
|
1821
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1872
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7d20bfcba0>,
|
1822
1873
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1823
1874
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1824
1875
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
@@ -10,6 +10,7 @@ from .avg import avg
|
|
10
10
|
from .basename import basename
|
11
11
|
from .batch_calculate import batch_calculate
|
12
12
|
from .batchmaker import batchmaker
|
13
|
+
from .bin_to_int import bin_to_int
|
13
14
|
from .calculate import calculate
|
14
15
|
from .choices import choices
|
15
16
|
from .chr_to_int import chr_to_int
|
@@ -29,6 +30,7 @@ from .get_filesize import get_filesize
|
|
29
30
|
from .github_pull import github_pull
|
30
31
|
from .github_push import github_push
|
31
32
|
from .github_user import github_user
|
33
|
+
from .hex_to_int import hex_to_int
|
32
34
|
from .iargv import iargv
|
33
35
|
from .idumps import idumps
|
34
36
|
from .idumps_html import idumps_html
|
@@ -55,6 +57,7 @@ from .iscandir import iscandir
|
|
55
57
|
from .isplit import isplit
|
56
58
|
from .ivars import ivars
|
57
59
|
from .log import log
|
60
|
+
from .oct_to_int import oct_to_int
|
58
61
|
from .password_generator import password_generator
|
59
62
|
from .pip_freeze_without_version import pip_freeze_without_version
|
60
63
|
from .poetry_publish import poetry_publish
|