pypipr 1.0.99__tar.gz → 1.0.100__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.99 → pypipr-1.0.100}/PKG-INFO +137 -159
- pypipr-1.0.100/pypipr/ifunctions/irange.py +38 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pyproject.toml +1 -1
- {pypipr-1.0.99 → pypipr-1.0.100}/readme.md +136 -158
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/__init__.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/ComparePerformance.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/LINUX.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/RunParallel.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/WINDOWS.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/__init__.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/avg.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/basename.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/chr_to_int.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/chunk_array.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/create_folder.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/datetime_from_string.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/datetime_now.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/dict_first.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/dirname.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/exit_if_empty.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/filter_empty.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/get_by_index.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/get_class_method.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/get_filemtime.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/get_filesize.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/int_to_chr.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/is_empty.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/is_iterable.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/is_valid_url.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/password_generator.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/random_bool.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/restart.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/set_timeout.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/sets_ordered.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/str_cmp.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ibuiltins/to_str.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/__init__.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/choices.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/console_run.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/input_char.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/log.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/print_colorize.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/print_dir.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/print_log.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/print_to_last_line.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iconsole/text_colorize.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/idjango/APIMixinView.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/idjango/__init__.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iengineering/PintUreg.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iengineering/PintUregQuantity.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iengineering/__init__.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iengineering/batch_calculate.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iengineering/batchmaker.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iengineering/calculate.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/auto_reload.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/github_pull.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/github_push.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/github_user.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/poetry_publish.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/iflow/poetry_update_version.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/__init__.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iargv.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/idumps.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/idumps_html.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/ienv.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iexec.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/ijoin.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iloads.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iloads_html.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iopen.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iprint.py +0 -0
- /pypipr-1.0.99/pypipr/ifunctions/irange.py → /pypipr-1.0.100/pypipr/ifunctions/irange.py.bak +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/ireplace.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/iscandir.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/isplit.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/ifunctions/ivars.py +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/pypipr.py.bak +0 -0
- {pypipr-1.0.99 → pypipr-1.0.100}/pypipr/terminal.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.100
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -120,7 +120,7 @@ print(list(chunk_array(arr, 5)))
|
|
120
120
|
|
121
121
|
Output:
|
122
122
|
```py
|
123
|
-
<generator object chunk_array at
|
123
|
+
<generator object chunk_array at 0x749e6d8040>
|
124
124
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
125
125
|
```
|
126
126
|
|
@@ -171,9 +171,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
171
171
|
|
172
172
|
Output:
|
173
173
|
```py
|
174
|
-
2024-04-29
|
175
|
-
2024-04-29
|
176
|
-
2024-04-
|
174
|
+
2024-04-29 15:56:59.444584+07:00
|
175
|
+
2024-04-29 08:56:59.446216+00:00
|
176
|
+
2024-04-29 01:56:59.451028-07:00
|
177
177
|
```
|
178
178
|
|
179
179
|
## dict_first
|
@@ -240,7 +240,7 @@ print(filter_empty(var))
|
|
240
240
|
|
241
241
|
Output:
|
242
242
|
```py
|
243
|
-
<generator object filter_empty at
|
243
|
+
<generator object filter_empty at 0x749e66ed40>
|
244
244
|
```
|
245
245
|
|
246
246
|
## get_by_index
|
@@ -286,8 +286,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
286
286
|
|
287
287
|
Output:
|
288
288
|
```py
|
289
|
-
<generator object get_class_method at
|
290
|
-
[<function ExampleGetClassMethod.a at
|
289
|
+
<generator object get_class_method at 0x749e66f010>
|
290
|
+
[<function ExampleGetClassMethod.a at 0x749e6e18a0>, <function ExampleGetClassMethod.b at 0x749e6e1760>, <function ExampleGetClassMethod.c at 0x749e6e1940>, <function ExampleGetClassMethod.d at 0x749e6e19e0>]
|
291
291
|
```
|
292
292
|
|
293
293
|
## get_filemtime
|
@@ -455,7 +455,7 @@ print(password_generator())
|
|
455
455
|
|
456
456
|
Output:
|
457
457
|
```py
|
458
|
-
|
458
|
+
B4Yyp4V-
|
459
459
|
```
|
460
460
|
|
461
461
|
## random_bool
|
@@ -473,7 +473,7 @@ print(random_bool())
|
|
473
473
|
|
474
474
|
Output:
|
475
475
|
```py
|
476
|
-
|
476
|
+
True
|
477
477
|
```
|
478
478
|
|
479
479
|
## restart
|
@@ -499,7 +499,7 @@ x.cancel()
|
|
499
499
|
|
500
500
|
Output:
|
501
501
|
```py
|
502
|
-
<Timer(Thread-2, started
|
502
|
+
<Timer(Thread-2, started 500846017776)>
|
503
503
|
menghentikan timeout 7
|
504
504
|
```
|
505
505
|
|
@@ -517,7 +517,7 @@ print(list(sets_ordered(array)))
|
|
517
517
|
|
518
518
|
Output:
|
519
519
|
```py
|
520
|
-
<generator object sets_ordered at
|
520
|
+
<generator object sets_ordered at 0x749e6e81e0>
|
521
521
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
522
522
|
```
|
523
523
|
|
@@ -671,7 +671,7 @@ Output:
|
|
671
671
|
__enter__ : https:/www.google.com
|
672
672
|
__fspath__ : https:/www.google.com
|
673
673
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
674
|
-
__hash__ :
|
674
|
+
__hash__ : -2716811347520502766
|
675
675
|
__init__ : None
|
676
676
|
__init_subclass__ : None
|
677
677
|
__module__ : pathlib
|
@@ -684,8 +684,8 @@ Output:
|
|
684
684
|
_cached_cparts : ['https:', 'www.google.com']
|
685
685
|
_cparts : ['https:', 'www.google.com']
|
686
686
|
_drv :
|
687
|
-
_flavour : <pathlib._PosixFlavour object at
|
688
|
-
_hash :
|
687
|
+
_flavour : <pathlib._PosixFlavour object at 0x74a89cca10>
|
688
|
+
_hash : -2716811347520502766
|
689
689
|
_parts : ['https:', 'www.google.com']
|
690
690
|
_root :
|
691
691
|
_str : https:/www.google.com
|
@@ -707,7 +707,7 @@ Output:
|
|
707
707
|
is_reserved : False
|
708
708
|
is_socket : False
|
709
709
|
is_symlink : False
|
710
|
-
iterdir : <generator object Path.iterdir at
|
710
|
+
iterdir : <generator object Path.iterdir at 0x749e6c4ba0>
|
711
711
|
joinpath : https:/www.google.com
|
712
712
|
name : www.google.com
|
713
713
|
parent : https:
|
@@ -772,12 +772,6 @@ print(batch_calculate("{1 10} m ** {1 3}"))
|
|
772
772
|
print(list(batch_calculate("{1 10} m ** {1 3}")))
|
773
773
|
```
|
774
774
|
|
775
|
-
Output:
|
776
|
-
```py
|
777
|
-
<generator object batch_calculate at 0x77ab207b50>
|
778
|
-
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('1 m ** 3', <Quantity(1, 'meter ** 3')>), ('2 m ** 1', <Quantity(2, 'meter')>), ('2 m ** 2', <Quantity(2, 'meter ** 2')>), ('2 m ** 3', <Quantity(2, 'meter ** 3')>), ('3 m ** 1', <Quantity(3, 'meter')>), ('3 m ** 2', <Quantity(3, 'meter ** 2')>), ('3 m ** 3', <Quantity(3, 'meter ** 3')>), ('4 m ** 1', <Quantity(4, 'meter')>), ('4 m ** 2', <Quantity(4, 'meter ** 2')>), ('4 m ** 3', <Quantity(4, 'meter ** 3')>), ('5 m ** 1', <Quantity(5, 'meter')>), ('5 m ** 2', <Quantity(5, 'meter ** 2')>), ('5 m ** 3', <Quantity(5, 'meter ** 3')>), ('6 m ** 1', <Quantity(6, 'meter')>), ('6 m ** 2', <Quantity(6, 'meter ** 2')>), ('6 m ** 3', <Quantity(6, 'meter ** 3')>), ('7 m ** 1', <Quantity(7, 'meter')>), ('7 m ** 2', <Quantity(7, 'meter ** 2')>), ('7 m ** 3', <Quantity(7, 'meter ** 3')>), ('8 m ** 1', <Quantity(8, 'meter')>), ('8 m ** 2', <Quantity(8, 'meter ** 2')>), ('8 m ** 3', <Quantity(8, 'meter ** 3')>), ('9 m ** 1', <Quantity(9, 'meter')>), ('9 m ** 2', <Quantity(9, 'meter ** 2')>), ('9 m ** 3', <Quantity(9, 'meter ** 3')>), ('10 m ** 1', <Quantity(10, 'meter')>), ('10 m ** 2', <Quantity(10, 'meter ** 2')>), ('10 m ** 3', <Quantity(10, 'meter ** 3')>)]
|
779
|
-
```
|
780
|
-
|
781
775
|
## batchmaker
|
782
776
|
|
783
777
|
`batchmaker(pattern: str)`
|
@@ -797,12 +791,6 @@ print(batchmaker(s))
|
|
797
791
|
print(list(batchmaker(s)))
|
798
792
|
```
|
799
793
|
|
800
|
-
Output:
|
801
|
-
```py
|
802
|
-
<generator object batchmaker at 0x77ab26c3a0>
|
803
|
-
['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 1 dan 10 dan k dan Z saja.', 'Urutan 1 dan 10 dan k dan K saja.', 'Urutan 1 dan 9 dan j dan Z saja.', 'Urutan 1 dan 9 dan j dan K saja.', 'Urutan 1 dan 9 dan k dan Z saja.', 'Urutan 1 dan 9 dan k dan K saja.', 'Urutan 4 dan 10 dan j dan Z saja.', 'Urutan 4 dan 10 dan j dan K saja.', 'Urutan 4 dan 10 dan k dan Z saja.', 'Urutan 4 dan 10 dan k dan K saja.', 'Urutan 4 dan 9 dan j dan Z saja.', 'Urutan 4 dan 9 dan j dan K saja.', 'Urutan 4 dan 9 dan k dan Z saja.', 'Urutan 4 dan 9 dan k dan K saja.']
|
804
|
-
```
|
805
|
-
|
806
794
|
## calculate
|
807
795
|
|
808
796
|
`calculate(teks)`
|
@@ -1163,7 +1151,7 @@ print(ijoin(10, ' '))
|
|
1163
1151
|
|
1164
1152
|
Output:
|
1165
1153
|
```py
|
1166
|
-
|
1154
|
+
asd, weq, qweqw, dfs
|
1167
1155
|
,ini,path,seperti,url,
|
1168
1156
|
ini,path,seperti,url
|
1169
1157
|
<li>satu</li>
|
@@ -1229,9 +1217,9 @@ Output:
|
|
1229
1217
|
```py
|
1230
1218
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1231
1219
|
[['Harga Emas Hari Ini - Senin, 29 April 2024'],
|
1232
|
-
['Spot Emas USD
|
1233
|
-
'Kurs
|
1234
|
-
'Emas IDR
|
1220
|
+
['Spot Emas USD↑2.338,37 (+0,43) / oz',
|
1221
|
+
'Kurs IDR↑16.222,00 (+14,00) / USD',
|
1222
|
+
'Emas IDR↑1.219.575 (+1.277) / gr'],
|
1235
1223
|
['LM Antam (Jual)↓1.325.000 (-1.000) / gr',
|
1236
1224
|
'LM Antam (Beli)↓1.221.000 (-1.000) / gr']],
|
1237
1225
|
[['Harga Emas Hari Ini'],
|
@@ -1302,37 +1290,37 @@ Output:
|
|
1302
1290
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1303
1291
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1304
1292
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1305
|
-
['Ounce\xa0(oz)', '2.
|
1306
|
-
['Gram\xa0(gr)', '
|
1307
|
-
['Kilogram\xa0(kg)', '
|
1308
|
-
['Update harga emas :29 April 2024, pukul
|
1293
|
+
['Ounce\xa0(oz)', '2.338,37 (+0,43)', '16.222,00 (+14,00)', '37.933.038'],
|
1294
|
+
['Gram\xa0(gr)', '75,18', '16.222,00', '1.219.575 (+1.277)'],
|
1295
|
+
['Kilogram\xa0(kg)', '75.180,34', '16.222,00', '1.219.575.497'],
|
1296
|
+
['Update harga emas :29 April 2024, pukul 15:54Update kurs :29 April 2024, '
|
1309
1297
|
'pukul 13:10']],
|
1310
1298
|
[['Gram', 'UBS Gold 99.99%'],
|
1311
1299
|
['Jual', 'Beli'],
|
1312
1300
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1313
1301
|
['100',
|
1314
|
-
'126.
|
1315
|
-
'1.
|
1302
|
+
'126.300.000 (-512.000)',
|
1303
|
+
'1.263.000 (-5.120)',
|
1316
1304
|
'124.985.000',
|
1317
1305
|
'1.249.850'],
|
1318
1306
|
['50',
|
1319
|
-
'63.
|
1320
|
-
'1.
|
1307
|
+
'63.300.000 (-145.000)',
|
1308
|
+
'1.266.000 (-2.900)',
|
1321
1309
|
'62.545.000',
|
1322
1310
|
'1.250.900'],
|
1323
1311
|
['25',
|
1324
|
-
'31.
|
1325
|
-
'1.
|
1312
|
+
'31.700.000 (-62.000)',
|
1313
|
+
'1.268.000 (-2.480)',
|
1326
1314
|
'31.375.000',
|
1327
1315
|
'1.255.000'],
|
1328
1316
|
['10',
|
1329
|
-
'12.
|
1330
|
-
'1.
|
1317
|
+
'12.720.000 (-35.000)',
|
1318
|
+
'1.272.000 (-3.500)',
|
1331
1319
|
'12.600.000',
|
1332
1320
|
'1.260.000'],
|
1333
|
-
['5', '6.
|
1321
|
+
['5', '6.385.000 (-20.000)', '1.277.000 (-4.000)', '6.352.000', '1.270.400'],
|
1334
1322
|
['1', '1.325.000 (-1.000)', '1.325.000 (-1.000)', '1.303.000', '1.303.000'],
|
1335
|
-
['', 'Update :
|
1323
|
+
['', 'Update :29 April 2024, pukul 11:44']],
|
1336
1324
|
[['Konversi Satuan'],
|
1337
1325
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1338
1326
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1342,37 +1330,37 @@ Output:
|
|
1342
1330
|
['Waktu', 'Emas'],
|
1343
1331
|
['Unit', 'USD', 'IDR'],
|
1344
1332
|
['Angka', '+/-', 'Angka', '+/-'],
|
1345
|
-
['Hari Ini', 'Kurs', '', '', '16.208', '%'],
|
1346
|
-
['oz', '2.337,94', '
|
1347
|
-
['gr', '75,17', '
|
1348
|
-
['30 Hari', 'Kurs', '', '', '15.853', '+
|
1349
|
-
['oz', '2.232,75', '+
|
1350
|
-
['gr', '71,78', '+3,
|
1351
|
-
['2 Bulan', 'Kurs', '', '', '15.673', '+
|
1352
|
-
['oz', '2.045,83', '+
|
1353
|
-
['gr', '65,77', '+9,
|
1354
|
-
['6 Bulan', 'Kurs', '', '', '15.897', '+
|
1355
|
-
['oz', '1.977,80', '+
|
1356
|
-
['gr', '63,59', '+11,
|
1357
|
-
['1 Tahun', 'Kurs', '', '', '15.731', '+
|
1358
|
-
['oz', '1.823,86', '+
|
1359
|
-
['gr', '58,64', '+16,
|
1360
|
-
['2 Tahun', 'Kurs', '', '', '14.418', '+1.
|
1361
|
-
['oz', '1.896,95', '+
|
1362
|
-
['gr', '60,99', '+
|
1363
|
-
['3 Tahun', 'Kurs', '', '', '14.468', '+1.
|
1364
|
-
['oz', '1.767,08', '+
|
1365
|
-
['gr', '56,81', '+18,
|
1366
|
-
['5 Tahun', 'Kurs', '', '', '14.215', '+
|
1367
|
-
['oz', '1.280,61', '+1.
|
1368
|
-
['gr', '41,17', '+
|
1333
|
+
['Hari Ini', 'Kurs', '', '', '16.208', '+14+0,09%'],
|
1334
|
+
['oz', '2.337,94', '+0,43+0,02%', '37.893.332', '+39.707+0,10%'],
|
1335
|
+
['gr', '75,17', '+0,01+0,02%', '1.218.299', '+1.277+0,10%'],
|
1336
|
+
['30 Hari', 'Kurs', '', '', '15.853', '+369+2,33%'],
|
1337
|
+
['oz', '2.232,75', '+105,62+4,73%', '35.395.786', '+2.537.252+7,17%'],
|
1338
|
+
['gr', '71,78', '+3,40+4,73%', '1.138.001', '+81.575+7,17%'],
|
1339
|
+
['2 Bulan', 'Kurs', '', '', '15.673', '+549+3,50%'],
|
1340
|
+
['oz', '2.045,83', '+292,54+14,30%', '32.064.294', '+5.868.745+18,30%'],
|
1341
|
+
['gr', '65,77', '+9,41+14,30', '1.030.891', '+188.685+18,30%'],
|
1342
|
+
['6 Bulan', 'Kurs', '', '', '15.897', '+325+2,04%'],
|
1343
|
+
['oz', '1.977,80', '+360,57+18,23%', '31.441.087', '+6.491.952+20,65%'],
|
1344
|
+
['gr', '63,59', '+11,59+18,23%', '1.010.854', '+208.721+20,65%'],
|
1345
|
+
['1 Tahun', 'Kurs', '', '', '15.731', '+491+3,12%'],
|
1346
|
+
['oz', '1.823,86', '+514,51+28,21%', '28.691.142', '+9.241.896+32,21%'],
|
1347
|
+
['gr', '58,64', '+16,54+28,21%', '922.442', '+297.134+32,21%'],
|
1348
|
+
['2 Tahun', 'Kurs', '', '', '14.418', '+1.804+12,51%'],
|
1349
|
+
['oz', '1.896,95', '+441,42+23,27%', '27.350.225', '+10.582.813+38,69%'],
|
1350
|
+
['gr', '60,99', '+14,19+23,27%', '879.330', '+340.245+38,69%'],
|
1351
|
+
['3 Tahun', 'Kurs', '', '', '14.468', '+1.754+12,12%'],
|
1352
|
+
['oz', '1.767,08', '+571,29+32,33%', '25.566.113', '+12.366.925+48,37%'],
|
1353
|
+
['gr', '56,81', '+18,37+32,33%', '821.970', '+397.606+48,37%'],
|
1354
|
+
['5 Tahun', 'Kurs', '', '', '14.215', '+2.007+14,12%'],
|
1355
|
+
['oz', '1.280,61', '+1.057,76+82,60%', '18.203.871', '+19.729.167+108,38%'],
|
1356
|
+
['gr', '41,17', '+34,01+82,60%', '585.268', '+634.307+108,38%']])
|
1369
1357
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1370
1358
|
[[''],
|
1371
1359
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1372
|
-
['USD', '
|
1373
|
-
['KURS', '16.
|
1374
|
-
['IDR', '1.
|
1375
|
-
['Senin, 29 April 2024
|
1360
|
+
['USD', '75,18↑', '+0,01+0,01%'],
|
1361
|
+
['KURS', '16.258,10↑', '+16,80+0,10%'],
|
1362
|
+
['IDR', '1.222.273,83↑', '+1.471,89+0,12%'],
|
1363
|
+
['Senin, 29 April 2024 15:55']],
|
1376
1364
|
[[''],
|
1377
1365
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1378
1366
|
'Hari Ini',
|
@@ -1383,19 +1371,19 @@ Output:
|
|
1383
1371
|
'']],
|
1384
1372
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1385
1373
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1386
|
-
['USD', '75,17', '
|
1387
|
-
['KURS', '16.241,30', '16.
|
1388
|
-
['IDR', '1.220.801,94', '1.
|
1374
|
+
['USD', '75,17', '75,17 - 75,18', '75,18'],
|
1375
|
+
['KURS', '16.241,30', '16.241,30 - 16.258,10', '16.249,70'],
|
1376
|
+
['IDR', '1.220.801,94', '1.220.801,94 - 1.222.273,83', '1.221.537,89'],
|
1389
1377
|
[''],
|
1390
1378
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1391
|
-
['USD', '66,32', '64,07 - 77,14', '+8,
|
1392
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1393
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1379
|
+
['USD', '66,32', '64,07 - 77,14', '+8,86 (13,36%)'],
|
1380
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+868,00 (5,64%)'],
|
1381
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+201.544,30 (19,75%)'],
|
1394
1382
|
[''],
|
1395
1383
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1396
|
-
['USD', '64,04', '58,43 - 77,14', '+
|
1397
|
-
['KURS', '14.671,35', '14.669,40 - 16.307,80', '+1.
|
1398
|
-
['IDR', '939.568,98', '912.925,68 - 1.256.829,06', '+
|
1384
|
+
['USD', '64,04', '58,43 - 77,14', '+11,14 (17,40%)'],
|
1385
|
+
['KURS', '14.671,35', '14.669,40 - 16.307,80', '+1.586,75 (10,82%)'],
|
1386
|
+
['IDR', '939.568,98', '912.925,68 - 1.256.829,06', '+282.704,85 (30,09%)']])
|
1399
1387
|
```
|
1400
1388
|
|
1401
1389
|
## iopen
|
@@ -1437,8 +1425,7 @@ Output:
|
|
1437
1425
|
```py
|
1438
1426
|
8
|
1439
1427
|
['mana', 'aja']
|
1440
|
-
|
1441
|
-
[<Element a at 0x77ab267200>, <Element a at 0x77ab2b2800>, <Element a at 0x77ab2b28a0>, <Element a at 0x77ab2b28f0>, <Element a at 0x77ab2b2940>, <Element a at 0x77ab2b2990>, <Element a at 0x77ab2b29e0>, <Element a at 0x77ab2b2a30>, <Element a at 0x77ab2b2a80>, <Element a at 0x77ab2b2ad0>, <Element a at 0x77ab2b2b20>, <Element a at 0x77ab2b2b70>, <Element a at 0x77ab2b2bc0>, <Element a at 0x77ab2b2c10>, <Element a at 0x77ab2b2c60>, <Element a at 0x77ab2b2cb0>, <Element a at 0x77ab2b2d00>, <Element a at 0x77ab2b2d50>, <Element a at 0x77ab2b2da0>, <Element a at 0x77ab2b2df0>]
|
1428
|
+
[<Element a at 0x749e6cdea0>, <Element a at 0x749e716cb0>, <Element a at 0x749e716d50>, <Element a at 0x749e716da0>, <Element a at 0x749e716df0>, <Element a at 0x749e716e40>, <Element a at 0x749e716e90>, <Element a at 0x749e716ee0>, <Element a at 0x749e716f30>, <Element a at 0x749e716f80>, <Element a at 0x749e716fd0>, <Element a at 0x749e717020>, <Element a at 0x749e717070>, <Element a at 0x749e7170c0>, <Element a at 0x749e717110>, <Element a at 0x749e717160>, <Element a at 0x749e7171b0>, <Element a at 0x749e717200>, <Element a at 0x749e717250>, <Element a at 0x749e7172a0>]
|
1442
1429
|
False
|
1443
1430
|
```
|
1444
1431
|
|
@@ -1465,7 +1452,7 @@ Output:
|
|
1465
1452
|
|
1466
1453
|
## irange
|
1467
1454
|
|
1468
|
-
`irange(start,
|
1455
|
+
`irange(start, stop=None, step=1, index=0, numbers='abcdefghijklmnopqrstuvwxyz')`
|
1469
1456
|
|
1470
1457
|
Meningkatkan fungsi range() dari python untuk pengulangan menggunakan huruf
|
1471
1458
|
|
@@ -1477,15 +1464,6 @@ print(list(irange(1, '7')))
|
|
1477
1464
|
print(list(irange(10, 5)))
|
1478
1465
|
```
|
1479
1466
|
|
1480
|
-
Output:
|
1481
|
-
```py
|
1482
|
-
<generator object irange at 0x77ab23aac0>
|
1483
|
-
<generator object irange at 0x77ab23aac0>
|
1484
|
-
['a', 'k', 'u']
|
1485
|
-
[1, 2, 3, 4, 5, 6, 7]
|
1486
|
-
[10, 9, 8, 7, 6, 5]
|
1487
|
-
```
|
1488
|
-
|
1489
1467
|
## ireplace
|
1490
1468
|
|
1491
1469
|
`ireplace(string: str, replacements: dict, flags=re.IGNORECASE|re.MULTILINE|re.DOTALL)`
|
@@ -1523,7 +1501,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1523
1501
|
|
1524
1502
|
Output:
|
1525
1503
|
```py
|
1526
|
-
<generator object iscandir at
|
1504
|
+
<generator object iscandir at 0x749e6d8540>
|
1527
1505
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1528
1506
|
```
|
1529
1507
|
|
@@ -1561,7 +1539,7 @@ Output:
|
|
1561
1539
|
'idjango': <module 'pypipr.idjango' from '/data/data/com.termux/files/home/pypipr/pypipr/idjango/__init__.py'>,
|
1562
1540
|
'iengineering': <module 'pypipr.iengineering' from '/data/data/com.termux/files/home/pypipr/pypipr/iengineering/__init__.py'>,
|
1563
1541
|
'ifunctions': <module 'pypipr.ifunctions' from '/data/data/com.termux/files/home/pypipr/pypipr/ifunctions/__init__.py'>,
|
1564
|
-
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at
|
1542
|
+
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at 0x74a8a071d0>)>,
|
1565
1543
|
'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1566
1544
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
1567
1545
|
'csv': <module 'csv' from '/data/data/com.termux/files/usr/lib/python3.11/csv.py'>,
|
@@ -1599,67 +1577,67 @@ Output:
|
|
1599
1577
|
'PintUregQuantity': <class 'pint.Quantity'>},
|
1600
1578
|
'variable': {'LINUX': True,
|
1601
1579
|
'WINDOWS': False,
|
1602
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1603
|
-
'function': {'avg': <function avg at
|
1604
|
-
'basename': <function basename at
|
1605
|
-
'chr_to_int': <function chr_to_int at
|
1606
|
-
'chunk_array': <function chunk_array at
|
1607
|
-
'create_folder': <function create_folder at
|
1608
|
-
'datetime_from_string': <function datetime_from_string at
|
1609
|
-
'datetime_now': <function datetime_now at
|
1610
|
-
'dict_first': <function dict_first at
|
1611
|
-
'dirname': <function dirname at
|
1612
|
-
'exit_if_empty': <function exit_if_empty at
|
1613
|
-
'filter_empty': <function filter_empty at
|
1614
|
-
'get_by_index': <function get_by_index at
|
1615
|
-
'get_class_method': <function get_class_method at
|
1616
|
-
'get_filemtime': <function get_filemtime at
|
1617
|
-
'get_filesize': <function get_filesize at
|
1618
|
-
'int_to_chr': <function int_to_chr at
|
1619
|
-
'is_empty': <function is_empty at
|
1620
|
-
'is_iterable': <function is_iterable at
|
1621
|
-
'is_valid_url': <function is_valid_url at
|
1622
|
-
'password_generator': <function password_generator at
|
1623
|
-
'random_bool': <function random_bool at
|
1624
|
-
'restart': <function restart at
|
1625
|
-
'set_timeout': <function set_timeout at
|
1626
|
-
'sets_ordered': <function sets_ordered at
|
1627
|
-
'str_cmp': <function str_cmp at
|
1628
|
-
'to_str': <function to_str at
|
1629
|
-
'choices': <function choices at
|
1630
|
-
'console_run': <function console_run at
|
1631
|
-
'input_char': <function input_char at
|
1632
|
-
'log': <function log at
|
1633
|
-
'print_colorize': <function print_colorize at
|
1634
|
-
'print_dir': <function print_dir at
|
1635
|
-
'print_log': <function print_log at
|
1636
|
-
'print_to_last_line': <function print_to_last_line at
|
1637
|
-
'text_colorize': <function text_colorize at
|
1638
|
-
'batch_calculate': <function batch_calculate at
|
1639
|
-
'batchmaker': <function batchmaker at
|
1640
|
-
'calculate': <function calculate at
|
1641
|
-
'auto_reload': <function auto_reload at
|
1642
|
-
'github_pull': <function github_pull at
|
1643
|
-
'github_push': <function github_push at
|
1644
|
-
'github_user': <function github_user at
|
1645
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1646
|
-
'poetry_publish': <function poetry_publish at
|
1647
|
-
'poetry_update_version': <function poetry_update_version at
|
1648
|
-
'iargv': <function iargv at
|
1649
|
-
'idumps': <function idumps at
|
1650
|
-
'idumps_html': <function idumps_html at
|
1651
|
-
'ienv': <function ienv at
|
1652
|
-
'iexec': <function iexec at
|
1653
|
-
'ijoin': <function ijoin at
|
1654
|
-
'iloads': <function iloads at
|
1655
|
-
'iloads_html': <function iloads_html at
|
1656
|
-
'iopen': <function iopen at
|
1657
|
-
'iprint': <function iprint at
|
1658
|
-
'irange': <function irange at
|
1659
|
-
'ireplace': <function ireplace at
|
1660
|
-
'iscandir': <function iscandir at
|
1661
|
-
'isplit': <function isplit at
|
1662
|
-
'ivars': <function ivars at
|
1580
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x74a49a8750>},
|
1581
|
+
'function': {'avg': <function avg at 0x74aa3b6d40>,
|
1582
|
+
'basename': <function basename at 0x74aa3868e0>,
|
1583
|
+
'chr_to_int': <function chr_to_int at 0x74a8955080>,
|
1584
|
+
'chunk_array': <function chunk_array at 0x74a89551c0>,
|
1585
|
+
'create_folder': <function create_folder at 0x74a89553a0>,
|
1586
|
+
'datetime_from_string': <function datetime_from_string at 0x74a8955580>,
|
1587
|
+
'datetime_now': <function datetime_now at 0x74a89fd620>,
|
1588
|
+
'dict_first': <function dict_first at 0x74a89fd580>,
|
1589
|
+
'dirname': <function dirname at 0x74a89fd4e0>,
|
1590
|
+
'exit_if_empty': <function exit_if_empty at 0x74a89fd3a0>,
|
1591
|
+
'filter_empty': <function filter_empty at 0x74a89fd1c0>,
|
1592
|
+
'get_by_index': <function get_by_index at 0x74a89fce00>,
|
1593
|
+
'get_class_method': <function get_class_method at 0x74a89fccc0>,
|
1594
|
+
'get_filemtime': <function get_filemtime at 0x74a89fcb80>,
|
1595
|
+
'get_filesize': <function get_filesize at 0x74a89fc9a0>,
|
1596
|
+
'int_to_chr': <function int_to_chr at 0x74a89fc900>,
|
1597
|
+
'is_empty': <function is_empty at 0x74a89fd260>,
|
1598
|
+
'is_iterable': <function is_iterable at 0x74a89fcfe0>,
|
1599
|
+
'is_valid_url': <function is_valid_url at 0x74a89fc7c0>,
|
1600
|
+
'password_generator': <function password_generator at 0x74a89fc680>,
|
1601
|
+
'random_bool': <function random_bool at 0x74a89fc4a0>,
|
1602
|
+
'restart': <function restart at 0x74a89ff7e0>,
|
1603
|
+
'set_timeout': <function set_timeout at 0x74a89ff920>,
|
1604
|
+
'sets_ordered': <function sets_ordered at 0x74a89ffa60>,
|
1605
|
+
'str_cmp': <function str_cmp at 0x74a89ffb00>,
|
1606
|
+
'to_str': <function to_str at 0x74a89fcf40>,
|
1607
|
+
'choices': <function choices at 0x74a89ffba0>,
|
1608
|
+
'console_run': <function console_run at 0x74a89ffe20>,
|
1609
|
+
'input_char': <function input_char at 0x74a89fff60>,
|
1610
|
+
'log': <function log at 0x74a8a20180>,
|
1611
|
+
'print_colorize': <function print_colorize at 0x74a8a20220>,
|
1612
|
+
'print_dir': <function print_dir at 0x74a8a20360>,
|
1613
|
+
'print_log': <function print_log at 0x74a8a20040>,
|
1614
|
+
'print_to_last_line': <function print_to_last_line at 0x74a89ffd80>,
|
1615
|
+
'text_colorize': <function text_colorize at 0x74a89ffec0>,
|
1616
|
+
'batch_calculate': <function batch_calculate at 0x74a3b896c0>,
|
1617
|
+
'batchmaker': <function batchmaker at 0x74a3b8a160>,
|
1618
|
+
'calculate': <function calculate at 0x74a3b8a480>,
|
1619
|
+
'auto_reload': <function auto_reload at 0x74a3b8a700>,
|
1620
|
+
'github_pull': <function github_pull at 0x74a3b8a520>,
|
1621
|
+
'github_push': <function github_push at 0x74a38b20c0>,
|
1622
|
+
'github_user': <function github_user at 0x74a38b2160>,
|
1623
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x74a38b22a0>,
|
1624
|
+
'poetry_publish': <function poetry_publish at 0x74a38b2340>,
|
1625
|
+
'poetry_update_version': <function poetry_update_version at 0x74a38d6c00>,
|
1626
|
+
'iargv': <function iargv at 0x74a1e8c360>,
|
1627
|
+
'idumps': <function idumps at 0x74a1e8c4a0>,
|
1628
|
+
'idumps_html': <function idumps_html at 0x74a1ef4ea0>,
|
1629
|
+
'ienv': <function ienv at 0x74a1e8c5e0>,
|
1630
|
+
'iexec': <function iexec at 0x74a1ef5120>,
|
1631
|
+
'ijoin': <function ijoin at 0x74a38b23e0>,
|
1632
|
+
'iloads': <function iloads at 0x74a1ef51c0>,
|
1633
|
+
'iloads_html': <function iloads_html at 0x74a1ef5440>,
|
1634
|
+
'iopen': <function iopen at 0x74a38b2480>,
|
1635
|
+
'iprint': <function iprint at 0x74a1ef5300>,
|
1636
|
+
'irange': <function irange at 0x74a3b8a660>,
|
1637
|
+
'ireplace': <function ireplace at 0x74a1ef54e0>,
|
1638
|
+
'iscandir': <function iscandir at 0x74a1ef7100>,
|
1639
|
+
'isplit': <function isplit at 0x74a1ef71a0>,
|
1640
|
+
'ivars': <function ivars at 0x74a1ef7240>}}
|
1663
1641
|
```
|
1664
1642
|
|
1665
1643
|
# CLASS
|
@@ -1699,7 +1677,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1699
1677
|
|
1700
1678
|
Output:
|
1701
1679
|
```py
|
1702
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1680
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x749e6ec2b0>,
|
1703
1681
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1704
1682
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1705
1683
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
from ..ibuiltins.chr_to_int import chr_to_int
|
2
|
+
from ..ibuiltins.int_to_chr import int_to_chr
|
3
|
+
|
4
|
+
|
5
|
+
def irange(start, stop=None, step=1, index=0, numbers="abcdefghijklmnopqrstuvwxyz"):
|
6
|
+
"""
|
7
|
+
Meningkatkan fungsi range() dari python untuk pengulangan menggunakan huruf
|
8
|
+
|
9
|
+
```python
|
10
|
+
print(irange('a', 'c'))
|
11
|
+
print(irange('z', 'a', 10))
|
12
|
+
print(list(irange('a', 'z', 10)))
|
13
|
+
print(list(irange(1, '7')))
|
14
|
+
print(list(irange(10, 5)))
|
15
|
+
```
|
16
|
+
"""
|
17
|
+
if stop is None:
|
18
|
+
stop = start
|
19
|
+
start = 0
|
20
|
+
|
21
|
+
if isinstance(start, int) and isinstance(stop, int):
|
22
|
+
return range(start, stop, step)
|
23
|
+
|
24
|
+
elif isinstance(start, str) and isinstance(stop, str):
|
25
|
+
return char_range(start, stop, step, index=index, numbers=numbers)
|
26
|
+
|
27
|
+
else:
|
28
|
+
raise Exception("start dan stop tidak diketahui")
|
29
|
+
|
30
|
+
|
31
|
+
def char_range(start, stop, step, numbers, index):
|
32
|
+
start = chr_to_int(start, start=index, numbers=numbers)
|
33
|
+
stop = chr_to_int(stop, start=index, numbers=numbers)
|
34
|
+
|
35
|
+
for i in range(start, stop, step):
|
36
|
+
yield int_to_chr(i, start=index, numbers=numbers)
|
37
|
+
|
38
|
+
|