pypipr 1.0.85__py3-none-any.whl → 1.0.86__py3-none-any.whl
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/iflow/auto_reload.py +6 -10
- pypipr/ifunctions/iargv.py +10 -0
- pypipr/ifunctions/ienv.py +5 -0
- {pypipr-1.0.85.dist-info → pypipr-1.0.86.dist-info}/METADATA +140 -121
- {pypipr-1.0.85.dist-info → pypipr-1.0.86.dist-info}/RECORD +7 -7
- {pypipr-1.0.85.dist-info → pypipr-1.0.86.dist-info}/WHEEL +0 -0
- {pypipr-1.0.85.dist-info → pypipr-1.0.86.dist-info}/entry_points.txt +0 -0
pypipr/iflow/auto_reload.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
import subprocess
|
1
|
+
# import subprocess
|
2
2
|
import time
|
3
3
|
|
4
4
|
from ..ibuiltins.get_filemtime import get_filemtime
|
5
5
|
from ..iconsole.print_log import print_log
|
6
|
+
from ..iconsole.console_run import console_run
|
6
7
|
|
7
8
|
|
8
9
|
def auto_reload(filename):
|
@@ -13,7 +14,8 @@ def auto_reload(filename):
|
|
13
14
|
Jalankan kode ini di terminal console.
|
14
15
|
|
15
16
|
```py
|
16
|
-
|
17
|
+
if __name__ == "__main__":
|
18
|
+
auto_reload("file_name.py")
|
17
19
|
```
|
18
20
|
"""
|
19
21
|
mtime = get_filemtime(filename)
|
@@ -24,17 +26,11 @@ def auto_reload(filename):
|
|
24
26
|
print_log("Start")
|
25
27
|
while True:
|
26
28
|
last_mtime = mtime
|
27
|
-
|
29
|
+
console_run(cmd, print_info=False)
|
30
|
+
# subprocess.run(cmd, shell=True)
|
28
31
|
while mtime == last_mtime:
|
29
32
|
time.sleep(1)
|
30
33
|
mtime = get_filemtime(filename)
|
31
34
|
print_log("Reload")
|
32
35
|
except KeyboardInterrupt:
|
33
36
|
print_log("Stop")
|
34
|
-
|
35
|
-
|
36
|
-
if __name__ == "__main__":
|
37
|
-
from pypipr.ifunctions.iargv import iargv
|
38
|
-
|
39
|
-
if f := iargv(1):
|
40
|
-
auto_reload(f)
|
pypipr/ifunctions/iargv.py
CHANGED
@@ -2,6 +2,16 @@ import sys
|
|
2
2
|
|
3
3
|
|
4
4
|
def iargv(key: int, cast=None, on_error=None):
|
5
|
+
"""
|
6
|
+
Mengambil parameter input dari terminal tanpa menimbulkan error
|
7
|
+
apabila parameter kosong.
|
8
|
+
Parameter yg berupa string juga dapat diubah menggunakan cast.
|
9
|
+
|
10
|
+
```python
|
11
|
+
if __name__ == "__main__":
|
12
|
+
print(iargv(1, cast=int, on_error=100))
|
13
|
+
```
|
14
|
+
"""
|
5
15
|
try:
|
6
16
|
v = sys.argv[key]
|
7
17
|
if cast:
|
pypipr/ifunctions/ienv.py
CHANGED
@@ -9,6 +9,11 @@ def ienv(on_windows=None, on_linux=None):
|
|
9
9
|
```py
|
10
10
|
getch = __import__(ienv(on_windows="msvcrt", on_linux="getch"))
|
11
11
|
|
12
|
+
|
13
|
+
f = ienv(on_windows=fwin, on_linux=flin)
|
14
|
+
f()
|
15
|
+
|
16
|
+
|
12
17
|
inherit = ienv(
|
13
18
|
on_windows=[BaseForWindows, BaseEnv, object],
|
14
19
|
on_linux=[SpecialForLinux, BaseForLinux, BaseEnv, object]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.86
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -94,7 +94,7 @@ print(list(chunk_array(arr, 5)))
|
|
94
94
|
|
95
95
|
Output:
|
96
96
|
```py
|
97
|
-
<generator object chunk_array at
|
97
|
+
<generator object chunk_array at 0x7dc427c340>
|
98
98
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
99
99
|
```
|
100
100
|
|
@@ -145,9 +145,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
145
145
|
|
146
146
|
Output:
|
147
147
|
```py
|
148
|
-
2024-04-23 18:
|
149
|
-
2024-04-23 11:
|
150
|
-
2024-04-23 04:
|
148
|
+
2024-04-23 18:59:54.152844+07:00
|
149
|
+
2024-04-23 11:59:54.153729+00:00
|
150
|
+
2024-04-23 04:59:54.155149-07:00
|
151
151
|
```
|
152
152
|
|
153
153
|
## dict_first
|
@@ -214,7 +214,7 @@ print(filter_empty(var))
|
|
214
214
|
|
215
215
|
Output:
|
216
216
|
```py
|
217
|
-
<generator object filter_empty at
|
217
|
+
<generator object filter_empty at 0x7dc41f2f20>
|
218
218
|
```
|
219
219
|
|
220
220
|
## get_class_method
|
@@ -243,8 +243,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
243
243
|
|
244
244
|
Output:
|
245
245
|
```py
|
246
|
-
<generator object get_class_method at
|
247
|
-
[<function ExampleGetClassMethod.a at
|
246
|
+
<generator object get_class_method at 0x7dc41f31f0>
|
247
|
+
[<function ExampleGetClassMethod.a at 0x7dc43cd3a0>, <function ExampleGetClassMethod.b at 0x7dd9baec00>, <function ExampleGetClassMethod.c at 0x7dc428d580>, <function ExampleGetClassMethod.d at 0x7dc428d620>]
|
248
248
|
```
|
249
249
|
|
250
250
|
## get_filemtime
|
@@ -386,7 +386,7 @@ Output:
|
|
386
386
|
'idjango': <module 'pypipr.idjango' from '/data/data/com.termux/files/home/pypipr/pypipr/idjango/__init__.py'>,
|
387
387
|
'iengineering': <module 'pypipr.iengineering' from '/data/data/com.termux/files/home/pypipr/pypipr/iengineering/__init__.py'>,
|
388
388
|
'ifunctions': <module 'pypipr.ifunctions' from '/data/data/com.termux/files/home/pypipr/pypipr/ifunctions/__init__.py'>,
|
389
|
-
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at
|
389
|
+
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at 0x7dd9b81750>)>,
|
390
390
|
'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
391
391
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
392
392
|
'datetime': <module 'datetime' from '/data/data/com.termux/files/usr/lib/python3.11/datetime.py'>,
|
@@ -423,64 +423,64 @@ Output:
|
|
423
423
|
'PintUregQuantity': <class 'pint.Quantity'>},
|
424
424
|
'variable': {'LINUX': True,
|
425
425
|
'WINDOWS': False,
|
426
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
427
|
-
'function': {'avg': <function avg at
|
428
|
-
'basename': <function basename at
|
429
|
-
'chunk_array': <function chunk_array at
|
430
|
-
'create_folder': <function create_folder at
|
431
|
-
'datetime_from_string': <function datetime_from_string at
|
432
|
-
'datetime_now': <function datetime_now at
|
433
|
-
'dict_first': <function dict_first at
|
434
|
-
'dirname': <function dirname at
|
435
|
-
'exit_if_empty': <function exit_if_empty at
|
436
|
-
'filter_empty': <function filter_empty at
|
437
|
-
'get_class_method': <function get_class_method at
|
438
|
-
'get_filemtime': <function get_filemtime at
|
439
|
-
'get_filesize': <function get_filesize at
|
440
|
-
'get_from_index': <function get_from_index at
|
441
|
-
'is_empty': <function is_empty at
|
442
|
-
'is_iterable': <function is_iterable at
|
443
|
-
'is_valid_url': <function is_valid_url at
|
444
|
-
'ivars': <function ivars at
|
445
|
-
'password_generator': <function password_generator at
|
446
|
-
'random_bool': <function random_bool at
|
447
|
-
'set_timeout': <function set_timeout at
|
448
|
-
'sets_ordered': <function sets_ordered at
|
449
|
-
'str_cmp': <function str_cmp at
|
450
|
-
'to_str': <function to_str at
|
451
|
-
'choices': <function choices at
|
452
|
-
'console_run': <function console_run at
|
453
|
-
'input_char': <function input_char at
|
454
|
-
'log': <function log at
|
455
|
-
'print_colorize': <function print_colorize at
|
456
|
-
'print_dir': <function print_dir at
|
457
|
-
'print_log': <function print_log at
|
458
|
-
'print_to_last_line': <function print_to_last_line at
|
459
|
-
'text_colorize': <function text_colorize at
|
460
|
-
'batch_calculate': <function batch_calculate at
|
461
|
-
'batchmaker': <function batchmaker at
|
462
|
-
'calculate': <function calculate at
|
463
|
-
'auto_reload': <function auto_reload at
|
464
|
-
'github_pull': <function github_pull at
|
465
|
-
'github_push': <function github_push at
|
466
|
-
'github_user': <function github_user at
|
467
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
468
|
-
'poetry_publish': <function poetry_publish at
|
469
|
-
'poetry_update_version': <function poetry_update_version at
|
470
|
-
'iargv': <function iargv at
|
471
|
-
'idumps': <function idumps at
|
472
|
-
'idumps_html': <function idumps_html at
|
473
|
-
'ienv': <function ienv at
|
474
|
-
'iexec': <function iexec at
|
475
|
-
'ijoin': <function ijoin at
|
476
|
-
'iloads': <function iloads at
|
477
|
-
'iloads_html': <function iloads_html at
|
478
|
-
'iopen': <function iopen at
|
479
|
-
'iprint': <function iprint at
|
480
|
-
'irange': <function irange at
|
481
|
-
'ireplace': <function ireplace at
|
482
|
-
'iscandir': <function iscandir at
|
483
|
-
'isplit': <function isplit at
|
426
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7dccb96750>},
|
427
|
+
'function': {'avg': <function avg at 0x7dd9baed40>,
|
428
|
+
'basename': <function basename at 0x7dd9b7e8e0>,
|
429
|
+
'chunk_array': <function chunk_array at 0x7dd4db9120>,
|
430
|
+
'create_folder': <function create_folder at 0x7dd4db9300>,
|
431
|
+
'datetime_from_string': <function datetime_from_string at 0x7dd4db94e0>,
|
432
|
+
'datetime_now': <function datetime_now at 0x7dd4e61620>,
|
433
|
+
'dict_first': <function dict_first at 0x7dd4e61580>,
|
434
|
+
'dirname': <function dirname at 0x7dd4e614e0>,
|
435
|
+
'exit_if_empty': <function exit_if_empty at 0x7dd4e3b4c0>,
|
436
|
+
'filter_empty': <function filter_empty at 0x7dd4e611c0>,
|
437
|
+
'get_class_method': <function get_class_method at 0x7dd4e60ea0>,
|
438
|
+
'get_filemtime': <function get_filemtime at 0x7dd4e60cc0>,
|
439
|
+
'get_filesize': <function get_filesize at 0x7dd4e60ae0>,
|
440
|
+
'get_from_index': <function get_from_index at 0x7dd4e609a0>,
|
441
|
+
'is_empty': <function is_empty at 0x7dd4e61260>,
|
442
|
+
'is_iterable': <function is_iterable at 0x7dd4e60fe0>,
|
443
|
+
'is_valid_url': <function is_valid_url at 0x7dd4e60860>,
|
444
|
+
'ivars': <function ivars at 0x7dd4e607c0>,
|
445
|
+
'password_generator': <function password_generator at 0x7dd4e60680>,
|
446
|
+
'random_bool': <function random_bool at 0x7dd4e60400>,
|
447
|
+
'set_timeout': <function set_timeout at 0x7dd4e637e0>,
|
448
|
+
'sets_ordered': <function sets_ordered at 0x7dd4e63920>,
|
449
|
+
'str_cmp': <function str_cmp at 0x7dd4e639c0>,
|
450
|
+
'to_str': <function to_str at 0x7dd4e60f40>,
|
451
|
+
'choices': <function choices at 0x7dd4e63a60>,
|
452
|
+
'console_run': <function console_run at 0x7dd4e63ce0>,
|
453
|
+
'input_char': <function input_char at 0x7dd4e63e20>,
|
454
|
+
'log': <function log at 0x7dd4e84040>,
|
455
|
+
'print_colorize': <function print_colorize at 0x7dd4e840e0>,
|
456
|
+
'print_dir': <function print_dir at 0x7dd4e84220>,
|
457
|
+
'print_log': <function print_log at 0x7dd4e63ec0>,
|
458
|
+
'print_to_last_line': <function print_to_last_line at 0x7dd4e63c40>,
|
459
|
+
'text_colorize': <function text_colorize at 0x7dd4e63d80>,
|
460
|
+
'batch_calculate': <function batch_calculate at 0x7dcbd01580>,
|
461
|
+
'batchmaker': <function batchmaker at 0x7dcbcde980>,
|
462
|
+
'calculate': <function calculate at 0x7dcbd022a0>,
|
463
|
+
'auto_reload': <function auto_reload at 0x7dcbd02480>,
|
464
|
+
'github_pull': <function github_pull at 0x7dcbd02020>,
|
465
|
+
'github_push': <function github_push at 0x7dcbd02700>,
|
466
|
+
'github_user': <function github_user at 0x7dcbd02a20>,
|
467
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7dcba29f80>,
|
468
|
+
'poetry_publish': <function poetry_publish at 0x7dcba2a160>,
|
469
|
+
'poetry_update_version': <function poetry_update_version at 0x7dcba52980>,
|
470
|
+
'iargv': <function iargv at 0x7dc44580e0>,
|
471
|
+
'idumps': <function idumps at 0x7dc4458220>,
|
472
|
+
'idumps_html': <function idumps_html at 0x7dc44bcc20>,
|
473
|
+
'ienv': <function ienv at 0x7dc4458360>,
|
474
|
+
'iexec': <function iexec at 0x7dc44bcea0>,
|
475
|
+
'ijoin': <function ijoin at 0x7dcba29ee0>,
|
476
|
+
'iloads': <function iloads at 0x7dc44bcf40>,
|
477
|
+
'iloads_html': <function iloads_html at 0x7dc44bd1c0>,
|
478
|
+
'iopen': <function iopen at 0x7dcba2a200>,
|
479
|
+
'iprint': <function iprint at 0x7dc4458180>,
|
480
|
+
'irange': <function irange at 0x7dcbd023e0>,
|
481
|
+
'ireplace': <function ireplace at 0x7dc44bd080>,
|
482
|
+
'iscandir': <function iscandir at 0x7dc44bee80>,
|
483
|
+
'isplit': <function isplit at 0x7dc44bef20>}}
|
484
484
|
```
|
485
485
|
|
486
486
|
## password_generator
|
@@ -495,7 +495,7 @@ print(password_generator())
|
|
495
495
|
|
496
496
|
Output:
|
497
497
|
```py
|
498
|
-
|
498
|
+
4j>9S0-:
|
499
499
|
```
|
500
500
|
|
501
501
|
## random_bool
|
@@ -513,7 +513,7 @@ print(random_bool())
|
|
513
513
|
|
514
514
|
Output:
|
515
515
|
```py
|
516
|
-
|
516
|
+
True
|
517
517
|
```
|
518
518
|
|
519
519
|
## set_timeout
|
@@ -535,7 +535,7 @@ x.cancel()
|
|
535
535
|
|
536
536
|
Output:
|
537
537
|
```py
|
538
|
-
<Timer(Thread-2, started
|
538
|
+
<Timer(Thread-2, started 540138257648)>
|
539
539
|
menghentikan timeout 7
|
540
540
|
```
|
541
541
|
|
@@ -553,7 +553,7 @@ print(list(sets_ordered(array)))
|
|
553
553
|
|
554
554
|
Output:
|
555
555
|
```py
|
556
|
-
<generator object sets_ordered at
|
556
|
+
<generator object sets_ordered at 0x7dc429c110>
|
557
557
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
558
558
|
```
|
559
559
|
|
@@ -707,7 +707,7 @@ Output:
|
|
707
707
|
__enter__ : https:/www.google.com
|
708
708
|
__fspath__ : https:/www.google.com
|
709
709
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
710
|
-
__hash__ :
|
710
|
+
__hash__ : 969759906076413030
|
711
711
|
__init__ : None
|
712
712
|
__init_subclass__ : None
|
713
713
|
__module__ : pathlib
|
@@ -720,8 +720,8 @@ Output:
|
|
720
720
|
_cached_cparts : ['https:', 'www.google.com']
|
721
721
|
_cparts : ['https:', 'www.google.com']
|
722
722
|
_drv :
|
723
|
-
_flavour : <pathlib._PosixFlavour object at
|
724
|
-
_hash :
|
723
|
+
_flavour : <pathlib._PosixFlavour object at 0x7dd4e341d0>
|
724
|
+
_hash : 969759906076413030
|
725
725
|
_parts : ['https:', 'www.google.com']
|
726
726
|
_root :
|
727
727
|
_str : https:/www.google.com
|
@@ -743,7 +743,7 @@ Output:
|
|
743
743
|
is_reserved : False
|
744
744
|
is_socket : False
|
745
745
|
is_symlink : False
|
746
|
-
iterdir : <generator object Path.iterdir at
|
746
|
+
iterdir : <generator object Path.iterdir at 0x7dc4274c80>
|
747
747
|
joinpath : https:/www.google.com
|
748
748
|
name : www.google.com
|
749
749
|
parent : https:
|
@@ -786,7 +786,8 @@ print_to_last_line(f"masukkan apa saja : {c} [ok]")
|
|
786
786
|
|
787
787
|
Output:
|
788
788
|
```py
|
789
|
-
masukkan apa saja :
|
789
|
+
masukkan apa saja : Timeout 3
|
790
|
+
[Fmasukkan apa saja : [ok]
|
790
791
|
```
|
791
792
|
|
792
793
|
## text_colorize
|
@@ -815,7 +816,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
815
816
|
|
816
817
|
Output:
|
817
818
|
```py
|
818
|
-
<generator object batch_calculate at
|
819
|
+
<generator object batch_calculate at 0x7dc41f3970>
|
819
820
|
[('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')>)]
|
820
821
|
```
|
821
822
|
|
@@ -840,7 +841,7 @@ print(list(batchmaker(s)))
|
|
840
841
|
|
841
842
|
Output:
|
842
843
|
```py
|
843
|
-
<generator object batchmaker at
|
844
|
+
<generator object batchmaker at 0x7dc4288160>
|
844
845
|
['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.']
|
845
846
|
```
|
846
847
|
|
@@ -889,7 +890,8 @@ Pastikan kode aman untuk dijalankan.
|
|
889
890
|
Jalankan kode ini di terminal console.
|
890
891
|
|
891
892
|
```py
|
892
|
-
|
893
|
+
if __name__ == "__main__":
|
894
|
+
auto_reload("file_name.py")
|
893
895
|
```
|
894
896
|
|
895
897
|
## github_pull
|
@@ -958,6 +960,19 @@ poetry_update_version()
|
|
958
960
|
|
959
961
|
`iargv(key: int, cast=None, on_error=None)`
|
960
962
|
|
963
|
+
Mengambil parameter input dari terminal tanpa menimbulkan error
|
964
|
+
apabila parameter kosong.
|
965
|
+
Parameter yg berupa string juga dapat diubah menggunakan cast.
|
966
|
+
|
967
|
+
```python
|
968
|
+
if __name__ == "__main__":
|
969
|
+
print(iargv(1, cast=int, on_error=100))
|
970
|
+
```
|
971
|
+
|
972
|
+
Output:
|
973
|
+
```py
|
974
|
+
```
|
975
|
+
|
961
976
|
## idumps
|
962
977
|
|
963
978
|
`idumps(data, syntax='yaml', indent=4)`
|
@@ -1136,6 +1151,11 @@ Mengambalikan hasil berdasarkan environment dimana program dijalankan
|
|
1136
1151
|
```py
|
1137
1152
|
getch = __import__(ienv(on_windows="msvcrt", on_linux="getch"))
|
1138
1153
|
|
1154
|
+
|
1155
|
+
f = ienv(on_windows=fwin, on_linux=flin)
|
1156
|
+
f()
|
1157
|
+
|
1158
|
+
|
1139
1159
|
inherit = ienv(
|
1140
1160
|
on_windows=[BaseForWindows, BaseEnv, object],
|
1141
1161
|
on_linux=[SpecialForLinux, BaseForLinux, BaseEnv, object]
|
@@ -1185,7 +1205,7 @@ print(ijoin(10, ' '))
|
|
1185
1205
|
|
1186
1206
|
Output:
|
1187
1207
|
```py
|
1188
|
-
|
1208
|
+
asd, dfs, weq, qweqw
|
1189
1209
|
,ini,path,seperti,url,
|
1190
1210
|
ini,path,seperti,url
|
1191
1211
|
<li>satu</li>
|
@@ -1249,12 +1269,11 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1249
1269
|
|
1250
1270
|
Output:
|
1251
1271
|
```py
|
1252
|
-
Timeout 3
|
1253
1272
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1254
1273
|
[['Harga Emas Hari Ini - Selasa, 23 April 2024'],
|
1255
|
-
['Spot Emas USD↓2.
|
1274
|
+
['Spot Emas USD↓2.302,65 (-27,48) / oz',
|
1256
1275
|
'Kurs IDR↓16.224,00 (-56,00) / USD',
|
1257
|
-
'Emas IDR↓1.201.
|
1276
|
+
'Emas IDR↓1.201.094 (-18.529) / gr'],
|
1258
1277
|
['LM Antam (Jual)↓1.325.000 (-18.000) / gr',
|
1259
1278
|
'LM Antam (Beli)↓1.223.000 (-15.000) / gr']],
|
1260
1279
|
[['Harga Emas Hari Ini'],
|
@@ -1325,10 +1344,10 @@ Timeout 3
|
|
1325
1344
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1326
1345
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1327
1346
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1328
|
-
['Ounce\xa0(oz)', '2.
|
1329
|
-
['Gram\xa0(gr)', '74,
|
1330
|
-
['Kilogram\xa0(kg)', '74.
|
1331
|
-
['Update harga emas :23 April 2024, pukul 18:
|
1347
|
+
['Ounce\xa0(oz)', '2.302,65 (-27,48)', '16.224,00 (-56,00)', '37.358.194'],
|
1348
|
+
['Gram\xa0(gr)', '74,03', '16.224,00', '1.201.094 (-18.529)'],
|
1349
|
+
['Kilogram\xa0(kg)', '74.031,92', '16.224,00', '1.201.093.816'],
|
1350
|
+
['Update harga emas :23 April 2024, pukul 18:59Update kurs :23 April 2024, '
|
1332
1351
|
'pukul 13:10']],
|
1333
1352
|
[['Gram', 'UBS Gold 99.99%'],
|
1334
1353
|
['Jual', 'Beli'],
|
@@ -1374,36 +1393,36 @@ Timeout 3
|
|
1374
1393
|
['Unit', 'USD', 'IDR'],
|
1375
1394
|
['Angka', '+/-', 'Angka', '+/-'],
|
1376
1395
|
['Hari Ini', 'Kurs', '', '', '16.280', '-56-0,34%'],
|
1377
|
-
['oz', '2.330,13', '-
|
1378
|
-
['gr', '74,92', '-0,
|
1396
|
+
['oz', '2.330,13', '-27,48-1,18%', '37.934.516', '-576.323-1,52%'],
|
1397
|
+
['gr', '74,92', '-0,88-1,18%', '1.219.623', '-18.529-1,52%'],
|
1379
1398
|
['30 Hari', 'Kurs', '', '', '15.662', '+562+3,59%'],
|
1380
|
-
['oz', '2.165,64', '+
|
1381
|
-
['gr', '69,63', '+4,
|
1399
|
+
['oz', '2.165,64', '+137,01+6,33%', '33.918.254', '+3.439.940+10,14%'],
|
1400
|
+
['gr', '69,63', '+4,40+6,33%', '1.090.497', '+110.597+10,14%'],
|
1382
1401
|
['2 Bulan', 'Kurs', '', '', '15.630', '+594+3,80%'],
|
1383
|
-
['oz', '2.038,19', '+
|
1384
|
-
['gr', '65,53', '+8,
|
1402
|
+
['oz', '2.038,19', '+264,46+12,98%', '31.856.910', '+5.501.284+17,27%'],
|
1403
|
+
['gr', '65,53', '+8,50+12,98', '1.024.223', '+176.870+17,27%'],
|
1385
1404
|
['6 Bulan', 'Kurs', '', '', '15.871', '+353+2,22%'],
|
1386
|
-
['oz', '1.984,00', '+
|
1387
|
-
['gr', '63,79', '+10,
|
1405
|
+
['oz', '1.984,00', '+318,65+16,06%', '31.488.064', '+5.870.130+18,64%'],
|
1406
|
+
['gr', '63,79', '+10,24+16,06%', '1.012.365', '+188.729+18,64%'],
|
1388
1407
|
['1 Tahun', 'Kurs', '', '', '15.731', '+493+3,13%'],
|
1389
|
-
['oz', '1.823,86', '+
|
1390
|
-
['gr', '58,64', '+15,
|
1408
|
+
['oz', '1.823,86', '+478,79+26,25%', '28.691.142', '+8.667.052+30,21%'],
|
1409
|
+
['gr', '58,64', '+15,39+26,25%', '922.442', '+278.652+30,21%'],
|
1391
1410
|
['2 Tahun', 'Kurs', '', '', '14.348', '+1.876+13,07%'],
|
1392
|
-
['oz', '1.931,96', '+
|
1393
|
-
['gr', '62,11', '+11,
|
1411
|
+
['oz', '1.931,96', '+370,69+19,19%', '27.719.762', '+9.638.432+34,77%'],
|
1412
|
+
['gr', '62,11', '+11,92+19,19%', '891.211', '+309.883+34,77%'],
|
1394
1413
|
['3 Tahun', 'Kurs', '', '', '14.530', '+1.694+11,66%'],
|
1395
|
-
['oz', '1.777,11', '+
|
1396
|
-
['gr', '57,14', '+16,
|
1414
|
+
['oz', '1.777,11', '+525,54+29,57%', '25.821.408', '+11.536.785+44,68%'],
|
1415
|
+
['gr', '57,14', '+16,90+29,57%', '830.178', '+370.916+44,68%'],
|
1397
1416
|
['5 Tahun', 'Kurs', '', '', '14.154', '+2.070+14,62%'],
|
1398
|
-
['oz', '1.277,64', '+1.
|
1399
|
-
['gr', '41,08', '+
|
1417
|
+
['oz', '1.277,64', '+1.025,01+80,23%', '18.083.717', '+19.274.477+106,58%'],
|
1418
|
+
['gr', '41,08', '+32,95+80,23%', '581.405', '+619.689+106,58%']])
|
1400
1419
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1401
1420
|
[[''],
|
1402
1421
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1403
|
-
['USD', '74,
|
1404
|
-
['KURS', '16.210,
|
1405
|
-
['IDR', '1.200.
|
1406
|
-
['Selasa, 23 April 2024
|
1422
|
+
['USD', '74,03↓', '-0,89-1,19%'],
|
1423
|
+
['KURS', '16.210,05↓', '-36,30-0,22%'],
|
1424
|
+
['IDR', '1.200.061,07↓', '-17.041,05-1,40%'],
|
1425
|
+
['Selasa, 23 April 2024 19:00']],
|
1407
1426
|
[[''],
|
1408
1427
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1409
1428
|
'Hari Ini',
|
@@ -1414,19 +1433,19 @@ Timeout 3
|
|
1414
1433
|
'']],
|
1415
1434
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1416
1435
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1417
|
-
['USD', '74,92', '74,
|
1418
|
-
['KURS', '16.246,35', '16.210,
|
1419
|
-
['IDR', '1.217.102,12', '1.200.
|
1436
|
+
['USD', '74,92', '74,03 - 74,92', '74,48'],
|
1437
|
+
['KURS', '16.246,35', '16.210,05 - 16.246,35', '16.228,20'],
|
1438
|
+
['IDR', '1.217.102,12', '1.200.061,07 - 1.217.102,12', '1.208.581,60'],
|
1420
1439
|
[''],
|
1421
1440
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1422
|
-
['USD', '66,32', '64,07 - 77,14', '+7,
|
1423
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1424
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1441
|
+
['USD', '66,32', '64,07 - 77,14', '+7,71 (11,63%)'],
|
1442
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+819,95 (5,33%)'],
|
1443
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+179.331,54 (17,57%)'],
|
1425
1444
|
[''],
|
1426
1445
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1427
|
-
['USD', '63,76', '58,43 - 77,14', '+10,
|
1428
|
-
['KURS', '14.936,00', '14.669,40 - 16.307,80', '+1.274,
|
1429
|
-
['IDR', '952.339,68', '912.925,68 - 1.256.829,06', '+
|
1446
|
+
['USD', '63,76', '58,43 - 77,14', '+10,27 (16,11%)'],
|
1447
|
+
['KURS', '14.936,00', '14.669,40 - 16.307,80', '+1.274,05 (8,53%)'],
|
1448
|
+
['IDR', '952.339,68', '912.925,68 - 1.256.829,06', '+247.721,39 (26,01%)']])
|
1430
1449
|
```
|
1431
1450
|
|
1432
1451
|
## iopen
|
@@ -1468,7 +1487,7 @@ Output:
|
|
1468
1487
|
```py
|
1469
1488
|
8
|
1470
1489
|
['mana', 'aja']
|
1471
|
-
[<Element a at
|
1490
|
+
[<Element a at 0x7dd9bb9cc0>, <Element a at 0x7dc42ca490>, <Element a at 0x7dc42ca530>, <Element a at 0x7dc42ca580>, <Element a at 0x7dc42ca5d0>, <Element a at 0x7dc42ca620>, <Element a at 0x7dc42ca670>, <Element a at 0x7dc42ca6c0>, <Element a at 0x7dc42ca710>, <Element a at 0x7dc42ca760>, <Element a at 0x7dc42ca7b0>, <Element a at 0x7dc42ca800>, <Element a at 0x7dc42ca850>, <Element a at 0x7dc42ca8a0>, <Element a at 0x7dc42ca8f0>, <Element a at 0x7dc42ca940>, <Element a at 0x7dc42ca990>, <Element a at 0x7dc42ca9e0>]
|
1472
1491
|
False
|
1473
1492
|
```
|
1474
1493
|
|
@@ -1509,8 +1528,8 @@ print(list(irange(10, 5)))
|
|
1509
1528
|
|
1510
1529
|
Output:
|
1511
1530
|
```py
|
1512
|
-
<generator object irange at
|
1513
|
-
<generator object irange at
|
1531
|
+
<generator object irange at 0x7dc424e9b0>
|
1532
|
+
<generator object irange at 0x7dc424e9b0>
|
1514
1533
|
['a', 'k', 'u']
|
1515
1534
|
[1, 2, 3, 4, 5, 6, 7]
|
1516
1535
|
[10, 9, 8, 7, 6, 5]
|
@@ -1553,7 +1572,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1553
1572
|
|
1554
1573
|
Output:
|
1555
1574
|
```py
|
1556
|
-
<generator object iscandir at
|
1575
|
+
<generator object iscandir at 0x7dc427c840>
|
1557
1576
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1558
1577
|
```
|
1559
1578
|
|
@@ -1610,7 +1629,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1610
1629
|
|
1611
1630
|
Output:
|
1612
1631
|
```py
|
1613
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1632
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7dc429c450>,
|
1614
1633
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1615
1634
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1616
1635
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
@@ -46,7 +46,7 @@ pypipr/iengineering/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
46
46
|
pypipr/iengineering/batch_calculate.py,sha256=GYJH84KlNlh1MDjUZDdKf7GKVZ81JS-sysjt9vtaaUE,695
|
47
47
|
pypipr/iengineering/batchmaker.py,sha256=4pNoAjQsubHNJT6ZA6myKuPY_RBigKkEeV4mEgWWq2c,1277
|
48
48
|
pypipr/iengineering/calculate.py,sha256=wzEbP8V1haM-JeIz85fBAuT2mgPc7uxQZ7wEuSUEXLc,805
|
49
|
-
pypipr/iflow/auto_reload.py,sha256=
|
49
|
+
pypipr/iflow/auto_reload.py,sha256=KxgOwyhLR01gLMWmIpUHULpTXbG8fLM1sVxoZJYtTCI,966
|
50
50
|
pypipr/iflow/github_pull.py,sha256=ORoMehOoSNNrAjqB9TudvhKjZP5u2oaszhGctqHH3mM,243
|
51
51
|
pypipr/iflow/github_push.py,sha256=140pmM3Q_v3ZAXS7gSunbNykNLm7d84Ab2r5gwl8Wzo,951
|
52
52
|
pypipr/iflow/github_user.py,sha256=vP5dwiK8ETqEuQr5pCceYuDgD_l0e79tZOVpe3jLyy0,600
|
@@ -54,10 +54,10 @@ pypipr/iflow/pip_freeze_without_version.py,sha256=7R7WVs3bwedUhbJr1zFsMabfMYub5W
|
|
54
54
|
pypipr/iflow/poetry_publish.py,sha256=2KxBOHTRgbf8R9Zqt6ys2Rx93S7TlPhlVJpz_7H3e-c,409
|
55
55
|
pypipr/iflow/poetry_update_version.py,sha256=GMmXSlr926GgKqqXb1ruOUYlsN1uZ7789YgSY18P_-Q,622
|
56
56
|
pypipr/ifunctions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
57
|
-
pypipr/ifunctions/iargv.py,sha256=
|
57
|
+
pypipr/ifunctions/iargv.py,sha256=QcTbk2vnqQC686-2B0CFs8nBJADYygsBFGiUJpmnXQ4,503
|
58
58
|
pypipr/ifunctions/idumps.py,sha256=-YMI6aZmRAMaiQOYXYDvuQLmJMCc4Z4tREEuuoVmFR4,748
|
59
59
|
pypipr/ifunctions/idumps_html.py,sha256=gKngmLaxGQRip3XEiWEK2TvsVkjYhizapS_Tscqn1Ts,1423
|
60
|
-
pypipr/ifunctions/ienv.py,sha256
|
60
|
+
pypipr/ifunctions/ienv.py,sha256=-UadfUxrFAdkzoG3SGlJShJYbj9LHs0C3-niBDc_fhI,679
|
61
61
|
pypipr/ifunctions/iexec.py,sha256=nK_WMRK2LnyZh9i7NpYii_bfDZUKfAsJ5PVf5ZrHuRo,465
|
62
62
|
pypipr/ifunctions/ijoin.py,sha256=tgL-9UofF1gmRPzU6jCkd6X28EOzEUenlNi2cwZDOZk,2069
|
63
63
|
pypipr/ifunctions/iloads.py,sha256=eyvSgqDxOXzU5dcPDT8cbtGtUIfjogxOqeQfwIhc92Q,638
|
@@ -70,7 +70,7 @@ pypipr/ifunctions/iscandir.py,sha256=U1zvRZrz--5Kge0JooQbY4kQN17bRt-8XR26ZFxUyoA
|
|
70
70
|
pypipr/ifunctions/isplit.py,sha256=N2BiA_wVnrENYwokSzvo0CAiQWk3g7AnwuWFIUgevNM,383
|
71
71
|
pypipr/pypipr.py.bak,sha256=HF-ehQd6BY8hm9fRkQHravLNrJRlI5g_AzbCc3dbikQ,1061
|
72
72
|
pypipr/terminal.py,sha256=XhZz9lntVfRHEs6P7rOjJ688ukw_Xnrht8mbqcAR8QY,1745
|
73
|
-
pypipr-1.0.
|
74
|
-
pypipr-1.0.
|
75
|
-
pypipr-1.0.
|
76
|
-
pypipr-1.0.
|
73
|
+
pypipr-1.0.86.dist-info/METADATA,sha256=z9dlZJ0knx2mNUXbCwFx6GVR1JgnXD4U2Hb-llf8_cA,50661
|
74
|
+
pypipr-1.0.86.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
75
|
+
pypipr-1.0.86.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
|
76
|
+
pypipr-1.0.86.dist-info/RECORD,,
|
File without changes
|
File without changes
|