pypipr 1.0.118__tar.gz → 1.0.119__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.119}/PKG-INFO +174 -123
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/__init__.py +3 -0
- pypipr-1.0.119/pypipr/bin_to_int.py +12 -0
- pypipr-1.0.119/pypipr/hex_to_int.py +12 -0
- pypipr-1.0.119/pypipr/oct_to_int.py +12 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pyproject.toml +1 -1
- {pypipr-1.0.118 → pypipr-1.0.119}/readme.md +173 -122
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/APIMixinView.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/__terminal__.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/avg.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/basename.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/calculate.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/choices.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/choices.py.bak +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/console_run.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/dirname.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/github_push.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/github_user.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iargv.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/idumps.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/ienv.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iexec.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iloads.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/input_char.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iopen.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iprint.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/irange.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/isplit.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/ivars.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/log.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/print_log.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/restart.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.118 → pypipr-1.0.119}/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.119
|
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 0x74077c8540>
|
254
|
+
<generator object int_range at 0x74077c8540>
|
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 0x74077bc3a0>
|
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 0x740773f010>
|
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 0x74077c8540>
|
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:48:24.914561+07:00
|
520
|
+
2024-05-01 02:48:24.915471+00:00
|
521
|
+
2024-04-30 19:48:24.917282-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 0x740773d5d0>
|
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 0x740773f2e0>
|
658
|
+
[<function ExampleGetClassMethod.a at 0x74077e1300>, <function ExampleGetClassMethod.b at 0x74077e1620>, <function ExampleGetClassMethod.c at 0x74077e14e0>, <function ExampleGetClassMethod.d at 0x74077e16c0>]
|
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 0x740fd21ee0>)`
|
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 0x740773f3d0>
|
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, weq, asd
|
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.
|
1054
|
+
['Spot Emas USD↓2.288,05 (-7,97) / oz',
|
1023
1055
|
'Kurs IDR16.249,00 / USD',
|
1024
|
-
'Emas IDR↓1.195.
|
1056
|
+
'Emas IDR↓1.195.317 (-4.164) / 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.
|
1096
|
-
['Gram\xa0(gr)', '73,
|
1097
|
-
['Kilogram\xa0(kg)', '73.
|
1098
|
-
['Update harga emas :01 Mei 2024, pukul 09:
|
1127
|
+
['Ounce\xa0(oz)', '2.288,05 (-7,97)', '16.249,00', '37.178.524'],
|
1128
|
+
['Gram\xa0(gr)', '73,56', '16.249,00', '1.195.317 (-4.164)'],
|
1129
|
+
['Kilogram\xa0(kg)', '73.562,52', '16.249,00', '1.195.317.319'],
|
1130
|
+
['Update harga emas :01 Mei 2024, pukul 09:48Update 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', '-
|
1121
|
-
['gr', '73,82', '-0,
|
1152
|
+
['oz', '2.296,02', '-7,97-0,35%', '37.308.029', '-129.505-0,35%'],
|
1153
|
+
['gr', '73,82', '-0,26-0,35%', '1.199.481', '-4.164-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,71+2,18%', '35.545.044', '+1.633.481+4,60%'],
|
1156
|
+
['gr', '72,00', '+1,57+2,18%', '1.142.800', '+52.518+4,60%'],
|
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,50+9,87%', '32.727.273', '+4.451.251+13,60%'],
|
1159
|
+
['gr', '66,96', '+6,61+9,87', '1.052.206', '+143.111+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,51+14,95%', '31.571.955', '+5.606.570+17,76%'],
|
1162
|
+
['gr', '64,00', '+9,57+14,95%', '1.015.062', '+180.255+17,76%'],
|
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,19+25,45%', '28.691.142', '+8.487.383+29,58%'],
|
1165
|
+
['gr', '58,64', '+14,92+25,45%', '922.442', '+272.876+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,82+22,54%', '26.921.722', '+10.256.802+38,10%'],
|
1168
|
+
['gr', '60,03', '+13,53+22,54%', '865.553', '+329.764+38,10%'],
|
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,14+29,35%', '25.592.590', '+11.585.935+45,27%'],
|
1171
|
+
['gr', '56,87', '+16,69+29,35%', '822.821', '+372.496+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,23+78,64%', '18.292.671', '+18.885.853+103,24%'],
|
1174
|
+
['gr', '41,18', '+32,38+78,64%', '588.123', '+607.194+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.498,00↓', '-3.868,81-0,32%'],
|
1181
|
+
['Rabu, 01 Mei 2024 09:48']],
|
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.498,00 - 1.200.366,81', '1.198.432,41'],
|
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.768,47 (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.788,27 (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 0x74077db390>, <Element a at 0x7407819310>, <Element a at 0x74078193b0>, <Element a at 0x7407819400>, <Element a at 0x7407819450>, <Element a at 0x74078194a0>, <Element a at 0x74078194f0>, <Element a at 0x7407819540>, <Element a at 0x7407819590>, <Element a at 0x74078195e0>, <Element a at 0x7407819630>, <Element a at 0x7407819680>, <Element a at 0x74078196d0>, <Element a at 0x7407819720>, <Element a at 0x7407819770>, <Element a at 0x74078197c0>, <Element a at 0x7407819810>, <Element a at 0x7407819860>]
|
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 0x74077c8840>
|
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 0x741857a700>,
|
1434
|
+
'get_filemtime': <function get_filemtime at 0x740fc4f2e0>,
|
1435
|
+
'print_colorize': <function print_colorize at 0x740fc4f4c0>,
|
1436
|
+
'print_log': <function print_log at 0x740fee6b60>,
|
1437
|
+
'console_run': <function console_run at 0x740fc4f380>,
|
1438
|
+
'auto_reload': <function auto_reload at 0x740fe0fec0>,
|
1439
|
+
'basename': <function basename at 0x740fc4f240>,
|
1440
|
+
'chr_to_int': <function chr_to_int at 0x740fc4fa60>,
|
1441
|
+
'int_to_chr': <function int_to_chr at 0x740fc4fb00>,
|
1442
|
+
'irange': <function irange at 0x740fc4fd80>,
|
1443
|
+
'batchmaker': <function batchmaker at 0x740fc4f740>,
|
1444
|
+
'calculate': <function calculate at 0x740fc382c0>,
|
1445
|
+
'batch_calculate': <function batch_calculate at 0x740fc4f600>,
|
1446
|
+
'bin_to_int': <function bin_to_int at 0x740fc4f6a0>,
|
1447
|
+
'is_empty': <function is_empty at 0x740fc38540>,
|
1448
|
+
'exit_if_empty': <function exit_if_empty at 0x740fc38400>,
|
1449
|
+
'input_char': <function input_char at 0x740fc384a0>,
|
1450
|
+
'get_by_index': <function get_by_index at 0x740fc385e0>,
|
1451
|
+
'choices': <function choices at 0x740fc387c0>,
|
1452
|
+
'chunk_array': <function chunk_array at 0x740fc38860>,
|
1453
|
+
'create_folder': <function create_folder at 0x740fc38900>,
|
1454
|
+
'datetime_from_string': <function datetime_from_string at 0x740fc389a0>,
|
1455
|
+
'datetime_now': <function datetime_now at 0x740fc38a40>,
|
1456
|
+
'dict_first': <function dict_first at 0x740fc38ae0>,
|
1457
|
+
'dirname': <function dirname at 0x740fc38b80>,
|
1458
|
+
'is_iterable': <function is_iterable at 0x740fc38d60>,
|
1459
|
+
'to_str': <function to_str at 0x740fc38e00>,
|
1460
|
+
'filter_empty': <function filter_empty at 0x740fc38c20>,
|
1461
|
+
'get_class_method': <function get_class_method at 0x740fc38cc0>,
|
1462
|
+
'get_filesize': <function get_filesize at 0x740fc38f40>,
|
1463
|
+
'github_pull': <function github_pull at 0x740fc38fe0>,
|
1464
|
+
'github_push': <function github_push at 0x740fc391c0>,
|
1465
|
+
'github_user': <function github_user at 0x740fc39260>,
|
1466
|
+
'hex_to_int': <function hex_to_int at 0x740fc39080>,
|
1467
|
+
'iargv': <function iargv at 0x740fc39300>,
|
1468
|
+
'idumps_html': <function idumps_html at 0x740fc39580>,
|
1469
|
+
'idumps': <function idumps at 0x740fc39440>,
|
1470
|
+
'int_to_int': <function int_to_int at 0x740fd21ee0>,
|
1471
|
+
'ienumerate': <function ienumerate at 0x740fc39a80>,
|
1472
|
+
'ienv': <function ienv at 0x740fd21da0>,
|
1473
|
+
'iexec': <function iexec at 0x740fd21f80>,
|
1474
|
+
'ijoin': <function ijoin at 0x740fd220c0>,
|
1475
|
+
'iloads_html': <function iloads_html at 0x740fd222a0>,
|
1476
|
+
'iloads': <function iloads at 0x740fd22020>,
|
1477
|
+
'int_to_bin': <function int_to_bin at 0x740fd22200>,
|
1478
|
+
'int_to_hex': <function int_to_hex at 0x740fd22340>,
|
1479
|
+
'int_to_oct': <function int_to_oct at 0x740fd223e0>,
|
1480
|
+
'is_valid_url': <function is_valid_url at 0x740fd225c0>,
|
1481
|
+
'iopen': <function iopen at 0x740fb0ea20>,
|
1482
|
+
'iprint': <function iprint at 0x740fd22520>,
|
1483
|
+
'ireplace': <function ireplace at 0x740fd228e0>,
|
1484
|
+
'iscandir': <function iscandir at 0x740fbc6160>,
|
1485
|
+
'isplit': <function isplit at 0x740fbc6200>,
|
1486
|
+
'ivars': <function ivars at 0x740fbc62a0>,
|
1487
|
+
'log': <function log at 0x740fbc6340>,
|
1488
|
+
'oct_to_int': <function oct_to_int at 0x740fbc63e0>,
|
1489
|
+
'password_generator': <function password_generator at 0x740fbc6480>,
|
1490
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x740fbc65c0>,
|
1491
|
+
'poetry_publish': <function poetry_publish at 0x740fbc6660>,
|
1492
|
+
'poetry_update_version': <function poetry_update_version at 0x740fbc67a0>,
|
1493
|
+
'print_dir': <function print_dir at 0x740fbc6980>,
|
1494
|
+
'print_to_last_line': <function print_to_last_line at 0x740fbc6a20>,
|
1495
|
+
'random_bool': <function random_bool at 0x740fbc6ac0>,
|
1496
|
+
'restart': <function restart at 0x740fbc6b60>,
|
1497
|
+
'set_timeout': <function set_timeout at 0x740fbc6c00>,
|
1498
|
+
'sets_ordered': <function sets_ordered at 0x740fbc6ca0>,
|
1499
|
+
'str_cmp': <function str_cmp at 0x740fbc6d40>,
|
1500
|
+
'text_colorize': <function text_colorize at 0x740fbc6de0>},
|
1466
1501
|
'variable': {'LINUX': True,
|
1467
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1502
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x741857ca90>,
|
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
|
+
].tfU}Rc
|
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__ : 7327379686933953002
|
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 0x741cf0cb90>
|
1664
|
+
_hash : 7327379686933953002
|
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 0x74077c2960>
|
1636
1687
|
joinpath : https:/www.google.com
|
1637
1688
|
name : www.google.com
|
1638
1689
|
parent : https:
|
@@ -1672,7 +1723,7 @@ print(random_bool())
|
|
1672
1723
|
|
1673
1724
|
Output:
|
1674
1725
|
```py
|
1675
|
-
|
1726
|
+
False
|
1676
1727
|
```
|
1677
1728
|
|
1678
1729
|
## restart
|
@@ -1706,7 +1757,7 @@ x.cancel()
|
|
1706
1757
|
|
1707
1758
|
Output:
|
1708
1759
|
```py
|
1709
|
-
<Timer(Thread-2, started
|
1760
|
+
<Timer(Thread-2, started 498316795120)>
|
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 0x74077f1150>
|
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 0x74077f0ba0>,
|
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
|