pypipr 1.0.124__tar.gz → 1.0.125__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.124 → pypipr-1.0.125}/PKG-INFO +153 -145
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/__terminal__.py +9 -6
- {pypipr-1.0.124 → pypipr-1.0.125}/pyproject.toml +1 -1
- {pypipr-1.0.124 → pypipr-1.0.125}/readme.md +152 -144
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/APIMixinView.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/__init__.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/avg.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/basename.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/calculate.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/choices.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/choices.py.bak +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/console_run.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/dirname.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/github_push.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/github_user.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iargv.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/idumps.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/ienv.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iexec.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iloads.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/input_char.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iopen.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iprint.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/irange.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/isplit.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/ivars.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/log.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/print_log.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/restart.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.124 → pypipr-1.0.125}/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.125
|
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 0x7e5562c440>
|
252
|
+
<generator object int_range at 0x7e5562c440>
|
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 0x7e55624280>
|
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 0x7e5559f010>
|
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
|
|
@@ -458,7 +458,7 @@ print(list(chunk_array(arr, 5)))
|
|
458
458
|
|
459
459
|
Output:
|
460
460
|
```py
|
461
|
-
<generator object chunk_array at
|
461
|
+
<generator object chunk_array at 0x7e5562c440>
|
462
462
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
463
463
|
```
|
464
464
|
|
@@ -509,9 +509,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
509
509
|
|
510
510
|
Output:
|
511
511
|
```py
|
512
|
-
2024-05-06
|
513
|
-
2024-05-06
|
514
|
-
2024-05-05
|
512
|
+
2024-05-06 11:44:20.743767+07:00
|
513
|
+
2024-05-06 04:44:20.745737+00:00
|
514
|
+
2024-05-05 21:44:20.749919-07:00
|
515
515
|
```
|
516
516
|
|
517
517
|
## dict_first
|
@@ -617,7 +617,7 @@ iprint(filter_empty(var))
|
|
617
617
|
|
618
618
|
Output:
|
619
619
|
```py
|
620
|
-
<generator object filter_empty at
|
620
|
+
<generator object filter_empty at 0x7e5559d5d0>
|
621
621
|
[1, '0', True, {}, ['eee']]
|
622
622
|
```
|
623
623
|
|
@@ -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 0x7e5559f2e0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x7e5563cfe0>, <function ExampleGetClassMethod.b at 0x7e5563d120>, <function ExampleGetClassMethod.c at 0x7e5563d080>, <function ExampleGetClassMethod.d at 0x7e5563d1c0>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -918,7 +918,7 @@ Output:
|
|
918
918
|
|
919
919
|
## ienumerate
|
920
920
|
|
921
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
921
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7e5b1cd9e0>)`
|
922
922
|
|
923
923
|
meningkatkan fungsi enumerate() pada python
|
924
924
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -931,7 +931,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
931
931
|
|
932
932
|
Output:
|
933
933
|
```py
|
934
|
-
<generator object ienumerate at
|
934
|
+
<generator object ienumerate at 0x7e5559f3d0>
|
935
935
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
936
936
|
```
|
937
937
|
|
@@ -998,7 +998,7 @@ print(ijoin(10, ' '))
|
|
998
998
|
|
999
999
|
Output:
|
1000
1000
|
```py
|
1001
|
-
|
1001
|
+
weq, asd, qweqw, dfs
|
1002
1002
|
,ini,path,seperti,url,
|
1003
1003
|
ini,path,seperti,url
|
1004
1004
|
<li>satu</li>
|
@@ -1044,9 +1044,9 @@ Output:
|
|
1044
1044
|
```py
|
1045
1045
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1046
1046
|
[['Harga Emas Hari Ini - Senin, 06 Mei 2024'],
|
1047
|
-
['Spot Emas USD↑2.
|
1047
|
+
['Spot Emas USD↑2.309,40 (+6,83) / oz',
|
1048
1048
|
'Kurs IDR↓16.094,00 (-108,00) / USD',
|
1049
|
-
'Emas IDR↓1.
|
1049
|
+
'Emas IDR↓1.194.962 (-4.461) / gr'],
|
1050
1050
|
['LM Antam (Jual)↓1.310.000 (-3.000) / gr',
|
1051
1051
|
'LM Antam (Beli)↓1.203.000 (-3.000) / gr']],
|
1052
1052
|
[['Harga Emas Hari Ini'],
|
@@ -1117,10 +1117,10 @@ Output:
|
|
1117
1117
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1118
1118
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1119
1119
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1120
|
-
['Ounce\xa0(oz)', '2.
|
1121
|
-
['Gram\xa0(gr)', '74,
|
1122
|
-
['Kilogram\xa0(kg)', '74.
|
1123
|
-
['Update harga emas :06 Mei 2024, pukul
|
1120
|
+
['Ounce\xa0(oz)', '2.309,40 (+6,83)', '16.094,00 (-108,00)', '37.167.484'],
|
1121
|
+
['Gram\xa0(gr)', '74,25', '16.094,00', '1.194.962 (-4.461)'],
|
1122
|
+
['Kilogram\xa0(kg)', '74.248,93', '16.094,00', '1.194.962.347'],
|
1123
|
+
['Update harga emas :06 Mei 2024, pukul 11:44Update kurs :06 Mei 2024, pukul '
|
1124
1124
|
'09:10']],
|
1125
1125
|
[['Gram', 'UBS Gold 99.99%'],
|
1126
1126
|
['Jual', 'Beli'],
|
@@ -1128,26 +1128,34 @@ Output:
|
|
1128
1128
|
['100',
|
1129
1129
|
'125.212.000 (-788.000)',
|
1130
1130
|
'1.252.120 (-7.880)',
|
1131
|
-
'
|
1132
|
-
'1.
|
1131
|
+
'122.685.000 (-700.000)',
|
1132
|
+
'1.226.850 (-7.000)'],
|
1133
1133
|
['50',
|
1134
1134
|
'62.645.000 (-305.000)',
|
1135
1135
|
'1.252.900 (-6.100)',
|
1136
|
-
'61.
|
1137
|
-
'1.
|
1136
|
+
'61.395.000 (-350.000)',
|
1137
|
+
'1.227.900 (-7.000)'],
|
1138
1138
|
['25',
|
1139
1139
|
'31.362.000 (-138.000)',
|
1140
1140
|
'1.254.480 (-5.520)',
|
1141
|
-
'30.
|
1142
|
-
'1.
|
1141
|
+
'30.800.000 (-175.000)',
|
1142
|
+
'1.232.000 (-7.000)'],
|
1143
1143
|
['10',
|
1144
1144
|
'12.595.000 (-55.000)',
|
1145
1145
|
'1.259.500 (-5.500)',
|
1146
|
-
'12.
|
1147
|
-
'1.
|
1148
|
-
['5',
|
1149
|
-
|
1150
|
-
|
1146
|
+
'12.370.000 (-70.000)',
|
1147
|
+
'1.237.000 (-7.000)'],
|
1148
|
+
['5',
|
1149
|
+
'6.325.000 (-25.000)',
|
1150
|
+
'1.265.000 (-5.000)',
|
1151
|
+
'6.237.000 (-35.000)',
|
1152
|
+
'1.247.400 (-7.000)'],
|
1153
|
+
['1',
|
1154
|
+
'1.310.000 (-5.000)',
|
1155
|
+
'1.310.000 (-5.000)',
|
1156
|
+
'1.280.000 (-7.000)',
|
1157
|
+
'1.280.000 (-7.000)'],
|
1158
|
+
['', 'Update :06 Mei 2024, pukul 11:07']],
|
1151
1159
|
[['Konversi Satuan'],
|
1152
1160
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1153
1161
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1158,36 +1166,36 @@ Output:
|
|
1158
1166
|
['Unit', 'USD', 'IDR'],
|
1159
1167
|
['Angka', '+/-', 'Angka', '+/-'],
|
1160
1168
|
['Hari Ini', 'Kurs', '', '', '16.202', '-108-0,67%'],
|
1161
|
-
['oz', '2.302,57', '+
|
1162
|
-
['gr', '74,03', '+0,
|
1169
|
+
['oz', '2.302,57', '+6,83+0,30%', '37.306.239', '-138.756-0,37%'],
|
1170
|
+
['gr', '74,03', '+0,22+0,30%', '1.199.423', '-4.461-0,37%'],
|
1163
1171
|
['30 Hari', 'Kurs', '', '', '15.907', '+187+1,18%'],
|
1164
|
-
['oz', '2.329,93', '-
|
1165
|
-
['gr', '74,91', '-0,
|
1172
|
+
['oz', '2.329,93', '-20,53-0,88%', '37.062.197', '+105.287+0,28%'],
|
1173
|
+
['gr', '74,91', '-0,66-0,88%', '1.191.577', '+3.385+0,28%'],
|
1166
1174
|
['2 Bulan', 'Kurs', '', '', '15.723', '+371+2,36%'],
|
1167
|
-
['oz', '2.156,44', '+
|
1168
|
-
['gr', '69,33', '+4,
|
1175
|
+
['oz', '2.156,44', '+152,96+7,09%', '33.905.706', '+3.261.777+9,62%'],
|
1176
|
+
['gr', '69,33', '+4,92+7,09', '1.090.094', '+104.869+9,62%'],
|
1169
1177
|
['6 Bulan', 'Kurs', '', '', '15.593', '+501+3,21%'],
|
1170
|
-
['oz', '1.954,36', '+
|
1171
|
-
['gr', '62,83', '+11,
|
1178
|
+
['oz', '1.954,36', '+355,04+18,17%', '30.474.335', '+6.693.148+21,96%'],
|
1179
|
+
['gr', '62,83', '+11,41+18,17%', '979.773', '+215.190+21,96%'],
|
1172
1180
|
['1 Tahun', 'Kurs', '', '', '15.731', '+363+2,31%'],
|
1173
|
-
['oz', '1.823,86', '+
|
1174
|
-
['gr', '58,64', '+15,
|
1181
|
+
['oz', '1.823,86', '+485,54+26,62%', '28.691.142', '+8.476.342+29,54%'],
|
1182
|
+
['gr', '58,64', '+15,61+26,62%', '922.442', '+272.521+29,54%'],
|
1175
1183
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.676+11,62%'],
|
1176
|
-
['oz', '1.883,86', '+
|
1177
|
-
['gr', '60,57', '+13,
|
1184
|
+
['oz', '1.883,86', '+425,54+22,59%', '27.161.493', '+10.005.990+36,84%'],
|
1185
|
+
['gr', '60,57', '+13,68+22,59%', '873.262', '+321.700+36,84%'],
|
1178
1186
|
['3 Tahun', 'Kurs', '', '', '14.364', '+1.730+12,04%'],
|
1179
|
-
['oz', '1.831,48', '+
|
1180
|
-
['gr', '58,88', '+15,
|
1187
|
+
['oz', '1.831,48', '+477,92+26,09%', '26.307.379', '+10.860.105+41,28%'],
|
1188
|
+
['gr', '58,88', '+15,37+26,09%', '845.802', '+349.160+41,28%'],
|
1181
1189
|
['5 Tahun', 'Kurs', '', '', '14.305', '+1.789+12,51%'],
|
1182
|
-
['oz', '1.280,40', '+1.
|
1183
|
-
['gr', '41,17', '+33,
|
1190
|
+
['oz', '1.280,40', '+1.029,00+80,37%', '18.316.122', '+18.851.362+102,92%'],
|
1191
|
+
['gr', '41,17', '+33,08+80,37%', '588.877', '+606.085+102,92%']])
|
1184
1192
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1185
1193
|
[[''],
|
1186
1194
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1187
|
-
['USD', '74,
|
1188
|
-
['KURS', '16.
|
1189
|
-
['IDR', '1.
|
1190
|
-
['Senin, 06 Mei 2024
|
1195
|
+
['USD', '74,25↑', '+0,22+0,30%'],
|
1196
|
+
['KURS', '16.019,60↑', '+50,90+0,32%'],
|
1197
|
+
['IDR', '1.189.438,23↑', '+7.285,83+0,62%'],
|
1198
|
+
['Senin, 06 Mei 2024 11:44']],
|
1191
1199
|
[[''],
|
1192
1200
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1193
1201
|
'Hari Ini',
|
@@ -1198,19 +1206,19 @@ Output:
|
|
1198
1206
|
'']],
|
1199
1207
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1200
1208
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1201
|
-
['USD', '74,03', '74,03 - 74,
|
1202
|
-
['KURS', '15.968,70', '15.968,70 - 16.
|
1203
|
-
['IDR', '1.182.152,40', '1.182.152,40 - 1.
|
1209
|
+
['USD', '74,03', '74,03 - 74,25', '74,14'],
|
1210
|
+
['KURS', '15.968,70', '15.968,70 - 16.019,60', '15.994,15'],
|
1211
|
+
['IDR', '1.182.152,40', '1.182.152,40 - 1.189.438,23', '1.185.795,32'],
|
1204
1212
|
[''],
|
1205
1213
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1206
|
-
['USD', '66,32', '64,07 - 77,14', '+7,
|
1207
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1208
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1214
|
+
['USD', '66,32', '64,07 - 77,14', '+7,93 (11,96%)'],
|
1215
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+629,50 (4,09%)'],
|
1216
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+168.708,70 (16,53%)'],
|
1209
1217
|
[''],
|
1210
1218
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1211
|
-
['USD', '64,87', '58,43 - 77,14', '+9,
|
1212
|
-
['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.
|
1213
|
-
['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+
|
1219
|
+
['USD', '64,87', '58,43 - 77,14', '+9,38 (14,46%)'],
|
1220
|
+
['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.350,20 (9,20%)'],
|
1221
|
+
['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+237.811,87 (24,99%)']])
|
1214
1222
|
```
|
1215
1223
|
|
1216
1224
|
## iloads
|
@@ -1340,7 +1348,7 @@ Output:
|
|
1340
1348
|
```py
|
1341
1349
|
8
|
1342
1350
|
['mana', 'aja']
|
1343
|
-
[<Element a at
|
1351
|
+
[<Element a at 0x7e55639630>, <Element a at 0x7e55670e60>, <Element a at 0x7e55670f00>, <Element a at 0x7e55670f50>, <Element a at 0x7e55670fa0>, <Element a at 0x7e55670ff0>, <Element a at 0x7e55671040>, <Element a at 0x7e55671090>, <Element a at 0x7e556710e0>, <Element a at 0x7e55671130>, <Element a at 0x7e55671180>, <Element a at 0x7e556711d0>, <Element a at 0x7e55671220>, <Element a at 0x7e55671270>, <Element a at 0x7e556712c0>, <Element a at 0x7e55671310>, <Element a at 0x7e55671360>, <Element a at 0x7e556713b0>]
|
1344
1352
|
False
|
1345
1353
|
```
|
1346
1354
|
|
@@ -1402,7 +1410,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1402
1410
|
|
1403
1411
|
Output:
|
1404
1412
|
```py
|
1405
|
-
<generator object iscandir at
|
1413
|
+
<generator object iscandir at 0x7e5562c740>
|
1406
1414
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1407
1415
|
```
|
1408
1416
|
|
@@ -1439,76 +1447,76 @@ Output:
|
|
1439
1447
|
'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1440
1448
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1441
1449
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1442
|
-
'function': {'avg': <function avg at
|
1443
|
-
'get_filemtime': <function get_filemtime at
|
1444
|
-
'print_colorize': <function print_colorize at
|
1445
|
-
'print_log': <function print_log at
|
1446
|
-
'console_run': <function console_run at
|
1447
|
-
'auto_reload': <function auto_reload at
|
1448
|
-
'basename': <function basename at
|
1449
|
-
'chr_to_int': <function chr_to_int at
|
1450
|
-
'int_to_chr': <function int_to_chr at
|
1451
|
-
'irange': <function irange at
|
1452
|
-
'batchmaker': <function batchmaker at
|
1453
|
-
'calculate': <function calculate at
|
1454
|
-
'batch_calculate': <function batch_calculate at
|
1455
|
-
'bin_to_int': <function bin_to_int at
|
1456
|
-
'is_empty': <function is_empty at
|
1457
|
-
'exit_if_empty': <function exit_if_empty at
|
1458
|
-
'input_char': <function input_char at
|
1459
|
-
'get_by_index': <function get_by_index at
|
1460
|
-
'choices': <function choices at
|
1461
|
-
'chunk_array': <function chunk_array at
|
1462
|
-
'create_folder': <function create_folder at
|
1463
|
-
'datetime_from_string': <function datetime_from_string at
|
1464
|
-
'datetime_now': <function datetime_now at
|
1465
|
-
'dict_first': <function dict_first at
|
1466
|
-
'dirname': <function dirname at
|
1467
|
-
'is_iterable': <function is_iterable at
|
1468
|
-
'to_str': <function to_str at
|
1469
|
-
'filter_empty': <function filter_empty at
|
1470
|
-
'get_class_method': <function get_class_method at
|
1471
|
-
'get_filesize': <function get_filesize at
|
1472
|
-
'github_pull': <function github_pull at
|
1473
|
-
'github_push': <function github_push at
|
1474
|
-
'github_user': <function github_user at
|
1475
|
-
'hex_to_int': <function hex_to_int at
|
1476
|
-
'iargv': <function iargv at
|
1477
|
-
'idumps_html': <function idumps_html at
|
1478
|
-
'idumps': <function idumps at
|
1479
|
-
'int_to_int': <function int_to_int at
|
1480
|
-
'ienumerate': <function ienumerate at
|
1481
|
-
'ienv': <function ienv at
|
1482
|
-
'iexec': <function iexec at
|
1483
|
-
'ijoin': <function ijoin at
|
1484
|
-
'iloads_html': <function iloads_html at
|
1485
|
-
'iloads': <function iloads at
|
1486
|
-
'int_to_bin': <function int_to_bin at
|
1487
|
-
'int_to_hex': <function int_to_hex at
|
1488
|
-
'int_to_oct': <function int_to_oct at
|
1489
|
-
'is_valid_url': <function is_valid_url at
|
1490
|
-
'iopen': <function iopen at
|
1491
|
-
'iprint': <function iprint at
|
1492
|
-
'ireplace': <function ireplace at
|
1493
|
-
'iscandir': <function iscandir at
|
1494
|
-
'isplit': <function isplit at
|
1495
|
-
'ivars': <function ivars at
|
1496
|
-
'log': <function log at
|
1497
|
-
'oct_to_int': <function oct_to_int at
|
1498
|
-
'password_generator': <function password_generator at
|
1499
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1500
|
-
'poetry_publish': <function poetry_publish at
|
1501
|
-
'poetry_update_version': <function poetry_update_version at
|
1502
|
-
'print_dir': <function print_dir at
|
1503
|
-
'print_to_last_line': <function print_to_last_line at
|
1504
|
-
'random_bool': <function random_bool at
|
1505
|
-
'restart': <function restart at
|
1506
|
-
'set_timeout': <function set_timeout at
|
1507
|
-
'sets_ordered': <function sets_ordered at
|
1508
|
-
'str_cmp': <function str_cmp at
|
1509
|
-
'text_colorize': <function text_colorize at
|
1450
|
+
'function': {'avg': <function avg at 0x7e642ae700>,
|
1451
|
+
'get_filemtime': <function get_filemtime at 0x7e5b2cade0>,
|
1452
|
+
'print_colorize': <function print_colorize at 0x7e5b2cafc0>,
|
1453
|
+
'print_log': <function print_log at 0x7e5b38ab60>,
|
1454
|
+
'console_run': <function console_run at 0x7e5b2cae80>,
|
1455
|
+
'auto_reload': <function auto_reload at 0x7e5b2b7ec0>,
|
1456
|
+
'basename': <function basename at 0x7e5b2cad40>,
|
1457
|
+
'chr_to_int': <function chr_to_int at 0x7e5b2cb560>,
|
1458
|
+
'int_to_chr': <function int_to_chr at 0x7e5b2cb600>,
|
1459
|
+
'irange': <function irange at 0x7e5b2cb880>,
|
1460
|
+
'batchmaker': <function batchmaker at 0x7e5b2cb240>,
|
1461
|
+
'calculate': <function calculate at 0x7e5b2cb380>,
|
1462
|
+
'batch_calculate': <function batch_calculate at 0x7e5b2cb100>,
|
1463
|
+
'bin_to_int': <function bin_to_int at 0x7e5b2cb1a0>,
|
1464
|
+
'is_empty': <function is_empty at 0x7e5b0f0040>,
|
1465
|
+
'exit_if_empty': <function exit_if_empty at 0x7e5b2cbec0>,
|
1466
|
+
'input_char': <function input_char at 0x7e5b2cbf60>,
|
1467
|
+
'get_by_index': <function get_by_index at 0x7e5b0f00e0>,
|
1468
|
+
'choices': <function choices at 0x7e5b0f02c0>,
|
1469
|
+
'chunk_array': <function chunk_array at 0x7e5b0f0360>,
|
1470
|
+
'create_folder': <function create_folder at 0x7e5b0f0400>,
|
1471
|
+
'datetime_from_string': <function datetime_from_string at 0x7e5b0f04a0>,
|
1472
|
+
'datetime_now': <function datetime_now at 0x7e5b0f0540>,
|
1473
|
+
'dict_first': <function dict_first at 0x7e5b0f05e0>,
|
1474
|
+
'dirname': <function dirname at 0x7e5b0f0680>,
|
1475
|
+
'is_iterable': <function is_iterable at 0x7e5b0f0860>,
|
1476
|
+
'to_str': <function to_str at 0x7e5b0f0900>,
|
1477
|
+
'filter_empty': <function filter_empty at 0x7e5b0f0720>,
|
1478
|
+
'get_class_method': <function get_class_method at 0x7e5b0f07c0>,
|
1479
|
+
'get_filesize': <function get_filesize at 0x7e5b0f0a40>,
|
1480
|
+
'github_pull': <function github_pull at 0x7e5b0f0ae0>,
|
1481
|
+
'github_push': <function github_push at 0x7e5b0f0c20>,
|
1482
|
+
'github_user': <function github_user at 0x7e5b0f0cc0>,
|
1483
|
+
'hex_to_int': <function hex_to_int at 0x7e5b0f0d60>,
|
1484
|
+
'iargv': <function iargv at 0x7e5b0f0e00>,
|
1485
|
+
'idumps_html': <function idumps_html at 0x7e5b0f1080>,
|
1486
|
+
'idumps': <function idumps at 0x7e5b0f0f40>,
|
1487
|
+
'int_to_int': <function int_to_int at 0x7e5b1cd9e0>,
|
1488
|
+
'ienumerate': <function ienumerate at 0x7e5b0f1580>,
|
1489
|
+
'ienv': <function ienv at 0x7e5b1cd8a0>,
|
1490
|
+
'iexec': <function iexec at 0x7e5b1cda80>,
|
1491
|
+
'ijoin': <function ijoin at 0x7e5b1cdbc0>,
|
1492
|
+
'iloads_html': <function iloads_html at 0x7e5b1cdda0>,
|
1493
|
+
'iloads': <function iloads at 0x7e5b1cdb20>,
|
1494
|
+
'int_to_bin': <function int_to_bin at 0x7e5b1cdd00>,
|
1495
|
+
'int_to_hex': <function int_to_hex at 0x7e5b1cde40>,
|
1496
|
+
'int_to_oct': <function int_to_oct at 0x7e5b1cdee0>,
|
1497
|
+
'is_valid_url': <function is_valid_url at 0x7e5b1ce0c0>,
|
1498
|
+
'iopen': <function iopen at 0x7e5afda520>,
|
1499
|
+
'iprint': <function iprint at 0x7e5b1ce020>,
|
1500
|
+
'ireplace': <function ireplace at 0x7e5b1ce3e0>,
|
1501
|
+
'iscandir': <function iscandir at 0x7e5b091c60>,
|
1502
|
+
'isplit': <function isplit at 0x7e5b091d00>,
|
1503
|
+
'ivars': <function ivars at 0x7e5b091da0>,
|
1504
|
+
'log': <function log at 0x7e5b091e40>,
|
1505
|
+
'oct_to_int': <function oct_to_int at 0x7e5b091ee0>,
|
1506
|
+
'password_generator': <function password_generator at 0x7e5b091f80>,
|
1507
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7e5b0920c0>,
|
1508
|
+
'poetry_publish': <function poetry_publish at 0x7e5b092160>,
|
1509
|
+
'poetry_update_version': <function poetry_update_version at 0x7e5b0922a0>,
|
1510
|
+
'print_dir': <function print_dir at 0x7e5b092480>,
|
1511
|
+
'print_to_last_line': <function print_to_last_line at 0x7e5b092520>,
|
1512
|
+
'random_bool': <function random_bool at 0x7e5b0925c0>,
|
1513
|
+
'restart': <function restart at 0x7e5b092660>,
|
1514
|
+
'set_timeout': <function set_timeout at 0x7e5b092700>,
|
1515
|
+
'sets_ordered': <function sets_ordered at 0x7e5b0927a0>,
|
1516
|
+
'str_cmp': <function str_cmp at 0x7e5b092840>,
|
1517
|
+
'text_colorize': <function text_colorize at 0x7e5b0928e0>},
|
1510
1518
|
'variable': {'LINUX': True,
|
1511
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1519
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7e642b46d0>,
|
1512
1520
|
'WINDOWS': False},
|
1513
1521
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1514
1522
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1598,7 +1606,7 @@ print(password_generator())
|
|
1598
1606
|
|
1599
1607
|
Output:
|
1600
1608
|
```py
|
1601
|
-
|
1609
|
+
A{rjo=Qb
|
1602
1610
|
```
|
1603
1611
|
|
1604
1612
|
## pip_freeze_without_version
|
@@ -1656,7 +1664,7 @@ Output:
|
|
1656
1664
|
__enter__ : https:/www.google.com
|
1657
1665
|
__fspath__ : https:/www.google.com
|
1658
1666
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1659
|
-
__hash__ :
|
1667
|
+
__hash__ : 870142534568176700
|
1660
1668
|
__init__ : None
|
1661
1669
|
__init_subclass__ : None
|
1662
1670
|
__module__ : pathlib
|
@@ -1669,8 +1677,8 @@ Output:
|
|
1669
1677
|
_cached_cparts : ['https:', 'www.google.com']
|
1670
1678
|
_cparts : ['https:', 'www.google.com']
|
1671
1679
|
_drv :
|
1672
|
-
_flavour : <pathlib._PosixFlavour object at
|
1673
|
-
_hash :
|
1680
|
+
_flavour : <pathlib._PosixFlavour object at 0x7e6eb28ad0>
|
1681
|
+
_hash : 870142534568176700
|
1674
1682
|
_parts : ['https:', 'www.google.com']
|
1675
1683
|
_root :
|
1676
1684
|
_str : https:/www.google.com
|
@@ -1692,7 +1700,7 @@ Output:
|
|
1692
1700
|
is_reserved : False
|
1693
1701
|
is_socket : False
|
1694
1702
|
is_symlink : False
|
1695
|
-
iterdir : <generator object Path.iterdir at
|
1703
|
+
iterdir : <generator object Path.iterdir at 0x7e5561a960>
|
1696
1704
|
joinpath : https:/www.google.com
|
1697
1705
|
name : www.google.com
|
1698
1706
|
parent : https:
|
@@ -1766,7 +1774,7 @@ x.cancel()
|
|
1766
1774
|
|
1767
1775
|
Output:
|
1768
1776
|
```py
|
1769
|
-
<Timer(Thread-2, started
|
1777
|
+
<Timer(Thread-2, started 542568856816)>
|
1770
1778
|
menghentikan timeout 7
|
1771
1779
|
```
|
1772
1780
|
|
@@ -1784,7 +1792,7 @@ print(list(sets_ordered(array)))
|
|
1784
1792
|
|
1785
1793
|
Output:
|
1786
1794
|
```py
|
1787
|
-
<generator object sets_ordered at
|
1795
|
+
<generator object sets_ordered at 0x7e5564c930>
|
1788
1796
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1789
1797
|
```
|
1790
1798
|
|
@@ -1879,15 +1887,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
1879
1887
|
|
1880
1888
|
Output:
|
1881
1889
|
```py
|
1882
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1890
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7e5564cad0>,
|
1883
1891
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1884
1892
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1885
1893
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
1886
|
-
{'a':
|
1887
|
-
{'a':
|
1888
|
-
{'a':
|
1889
|
-
{'a':
|
1890
|
-
{'a':
|
1894
|
+
{'a': 115, 'b': 143, 'c': 100, 'd': 181}
|
1895
|
+
{'a': 126, 'b': 130, 'c': 100, 'd': 200}
|
1896
|
+
{'a': 112, 'b': 124, 'c': 100, 'd': 160}
|
1897
|
+
{'a': 111, 'b': 126, 'c': 100, 'd': 151}
|
1898
|
+
{'a': 118, 'b': 127, 'c': 100, 'd': 159}
|
1891
1899
|
```
|
1892
1900
|
|
1893
1901
|
## PintUregQuantity
|
@@ -9,11 +9,11 @@ def input_parameter(o):
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
def main():
|
13
|
-
|
14
|
-
m = ivars(
|
15
|
-
|
16
|
-
m = m["variable"] | m["function"]
|
12
|
+
def main(module="pypipr"):
|
13
|
+
module = __import__(module)
|
14
|
+
m = ivars(module)
|
15
|
+
m = m["module"] | m["variable"] | m["class"] | m["function"]
|
16
|
+
# m = m["variable"] | m["function"]
|
17
17
|
m = [x for x in m]
|
18
18
|
m.sort()
|
19
19
|
|
@@ -21,16 +21,18 @@ def main():
|
|
21
21
|
p = "Masukan Nomor Urut atau Nama Fungsi : "
|
22
22
|
m = choices(daftar=m, contains=a, prompt=p)
|
23
23
|
|
24
|
-
f = getattr(
|
24
|
+
f = getattr(module, m)
|
25
25
|
|
26
26
|
if a != m:
|
27
27
|
print_colorize(m)
|
28
28
|
print(f.__doc__)
|
29
29
|
|
30
|
+
|
30
31
|
if inspect.isclass(f):
|
31
32
|
print_log("Class tidak dapat dijalankan.")
|
32
33
|
elif inspect.ismodule(f):
|
33
34
|
print_log("Module tidak dapat dijalankan.")
|
35
|
+
main(f.__name__)
|
34
36
|
elif inspect.isfunction(f):
|
35
37
|
s = inspect.signature(f)
|
36
38
|
|
@@ -52,6 +54,7 @@ def main():
|
|
52
54
|
)
|
53
55
|
|
54
56
|
f = f(**k)
|
57
|
+
|
55
58
|
else:
|
56
59
|
# variable
|
57
60
|
pass
|