pypipr 1.0.92__tar.gz → 1.0.94__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.92 → pypipr-1.0.94}/PKG-INFO +185 -182
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/__init__.py +2 -0
- pypipr-1.0.94/pypipr/ibuiltins/restart.py +8 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/terminal.py +0 -1
- {pypipr-1.0.92 → pypipr-1.0.94}/pyproject.toml +1 -1
- {pypipr-1.0.92 → pypipr-1.0.94}/readme.md +184 -181
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/ComparePerformance.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/LINUX.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/RunParallel.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/WINDOWS.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/__init__.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/avg.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/basename.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/chunk_array.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/create_folder.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/datetime_from_string.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/datetime_now.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/dict_first.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/dirname.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/exit_if_empty.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/filter_empty.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/get_by_index.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/get_class_method.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/get_filemtime.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/get_filesize.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/is_empty.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/is_iterable.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/is_valid_url.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/ivars.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/password_generator.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/random_bool.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/set_timeout.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/sets_ordered.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/str_cmp.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ibuiltins/to_str.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/__init__.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/choices.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/console_run.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/input_char.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/log.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/print_colorize.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/print_dir.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/print_log.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/print_to_last_line.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iconsole/text_colorize.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/idjango/APIMixinView.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/idjango/__init__.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iengineering/PintUreg.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iengineering/PintUregQuantity.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iengineering/__init__.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iengineering/batch_calculate.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iengineering/batchmaker.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iengineering/calculate.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/auto_reload.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/github_pull.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/github_push.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/github_user.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/poetry_publish.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/iflow/poetry_update_version.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/__init__.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iargv.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/idumps.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/idumps_html.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/ienv.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iexec.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/ijoin.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iloads.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iloads_html.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iopen.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iprint.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/irange.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/ireplace.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/iscandir.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/ifunctions/isplit.py +0 -0
- {pypipr-1.0.92 → pypipr-1.0.94}/pypipr/pypipr.py.bak +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.94
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -101,7 +101,7 @@ print(list(chunk_array(arr, 5)))
|
|
101
101
|
|
102
102
|
Output:
|
103
103
|
```py
|
104
|
-
<generator object chunk_array at
|
104
|
+
<generator object chunk_array at 0x7a72a00240>
|
105
105
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
106
106
|
```
|
107
107
|
|
@@ -152,9 +152,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
152
152
|
|
153
153
|
Output:
|
154
154
|
```py
|
155
|
-
2024-04-
|
156
|
-
2024-04-
|
157
|
-
2024-04-
|
155
|
+
2024-04-25 20:41:51.650942+07:00
|
156
|
+
2024-04-25 13:41:51.652297+00:00
|
157
|
+
2024-04-25 06:41:51.655828-07:00
|
158
158
|
```
|
159
159
|
|
160
160
|
## dict_first
|
@@ -221,7 +221,7 @@ print(filter_empty(var))
|
|
221
221
|
|
222
222
|
Output:
|
223
223
|
```py
|
224
|
-
<generator object filter_empty at
|
224
|
+
<generator object filter_empty at 0x7a72992d40>
|
225
225
|
```
|
226
226
|
|
227
227
|
## get_by_index
|
@@ -267,8 +267,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
267
267
|
|
268
268
|
Output:
|
269
269
|
```py
|
270
|
-
<generator object get_class_method at
|
271
|
-
[<function ExampleGetClassMethod.a at
|
270
|
+
<generator object get_class_method at 0x7a72993010>
|
271
|
+
[<function ExampleGetClassMethod.a at 0x7a869867a0>, <function ExampleGetClassMethod.b at 0x7a72a096c0>, <function ExampleGetClassMethod.c at 0x7a72a09620>, <function ExampleGetClassMethod.d at 0x7a72a09760>]
|
272
272
|
```
|
273
273
|
|
274
274
|
## get_filemtime
|
@@ -393,9 +393,10 @@ Output:
|
|
393
393
|
'idjango': <module 'pypipr.idjango' from '/data/data/com.termux/files/home/pypipr/pypipr/idjango/__init__.py'>,
|
394
394
|
'iengineering': <module 'pypipr.iengineering' from '/data/data/com.termux/files/home/pypipr/pypipr/iengineering/__init__.py'>,
|
395
395
|
'ifunctions': <module 'pypipr.ifunctions' from '/data/data/com.termux/files/home/pypipr/pypipr/ifunctions/__init__.py'>,
|
396
|
-
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at
|
396
|
+
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at 0x7a7f2cf610>)>,
|
397
397
|
'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
398
398
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
399
|
+
'csv': <module 'csv' from '/data/data/com.termux/files/usr/lib/python3.11/csv.py'>,
|
399
400
|
'datetime': <module 'datetime' from '/data/data/com.termux/files/usr/lib/python3.11/datetime.py'>,
|
400
401
|
'functools': <module 'functools' from '/data/data/com.termux/files/usr/lib/python3.11/functools.py'>,
|
401
402
|
'inspect': <module 'inspect' from '/data/data/com.termux/files/usr/lib/python3.11/inspect.py'>,
|
@@ -430,64 +431,65 @@ Output:
|
|
430
431
|
'PintUregQuantity': <class 'pint.Quantity'>},
|
431
432
|
'variable': {'LINUX': True,
|
432
433
|
'WINDOWS': False,
|
433
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
434
|
-
'function': {'avg': <function avg at
|
435
|
-
'basename': <function basename at
|
436
|
-
'chunk_array': <function chunk_array at
|
437
|
-
'create_folder': <function create_folder at
|
438
|
-
'datetime_from_string': <function datetime_from_string at
|
439
|
-
'datetime_now': <function datetime_now at
|
440
|
-
'dict_first': <function dict_first at
|
441
|
-
'dirname': <function dirname at
|
442
|
-
'exit_if_empty': <function exit_if_empty at
|
443
|
-
'filter_empty': <function filter_empty at
|
444
|
-
'get_by_index': <function get_by_index at
|
445
|
-
'get_class_method': <function get_class_method at
|
446
|
-
'get_filemtime': <function get_filemtime at
|
447
|
-
'get_filesize': <function get_filesize at
|
448
|
-
'is_empty': <function is_empty at
|
449
|
-
'is_iterable': <function is_iterable at
|
450
|
-
'is_valid_url': <function is_valid_url at
|
451
|
-
'ivars': <function ivars at
|
452
|
-
'password_generator': <function password_generator at
|
453
|
-
'random_bool': <function random_bool at
|
454
|
-
'
|
455
|
-
'
|
456
|
-
'
|
457
|
-
'
|
458
|
-
'
|
459
|
-
'
|
460
|
-
'
|
461
|
-
'
|
462
|
-
'
|
463
|
-
'
|
464
|
-
'
|
465
|
-
'
|
466
|
-
'
|
467
|
-
'
|
468
|
-
'
|
469
|
-
'
|
470
|
-
'
|
471
|
-
'
|
472
|
-
'
|
473
|
-
'
|
474
|
-
'
|
475
|
-
'
|
476
|
-
'
|
477
|
-
'
|
478
|
-
'
|
479
|
-
'
|
480
|
-
'
|
481
|
-
'
|
482
|
-
'
|
483
|
-
'
|
484
|
-
'
|
485
|
-
'
|
486
|
-
'
|
487
|
-
'
|
488
|
-
'
|
489
|
-
'
|
490
|
-
'
|
434
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7a78af4750>},
|
435
|
+
'function': {'avg': <function avg at 0x7a869bed40>,
|
436
|
+
'basename': <function basename at 0x7a869868e0>,
|
437
|
+
'chunk_array': <function chunk_array at 0x7a83471120>,
|
438
|
+
'create_folder': <function create_folder at 0x7a83471300>,
|
439
|
+
'datetime_from_string': <function datetime_from_string at 0x7a834714e0>,
|
440
|
+
'datetime_now': <function datetime_now at 0x7a83519620>,
|
441
|
+
'dict_first': <function dict_first at 0x7a83519580>,
|
442
|
+
'dirname': <function dirname at 0x7a835194e0>,
|
443
|
+
'exit_if_empty': <function exit_if_empty at 0x7a834f34c0>,
|
444
|
+
'filter_empty': <function filter_empty at 0x7a835191c0>,
|
445
|
+
'get_by_index': <function get_by_index at 0x7a83518ea0>,
|
446
|
+
'get_class_method': <function get_class_method at 0x7a83518cc0>,
|
447
|
+
'get_filemtime': <function get_filemtime at 0x7a83518b80>,
|
448
|
+
'get_filesize': <function get_filesize at 0x7a835189a0>,
|
449
|
+
'is_empty': <function is_empty at 0x7a83519260>,
|
450
|
+
'is_iterable': <function is_iterable at 0x7a83518fe0>,
|
451
|
+
'is_valid_url': <function is_valid_url at 0x7a83518860>,
|
452
|
+
'ivars': <function ivars at 0x7a835187c0>,
|
453
|
+
'password_generator': <function password_generator at 0x7a83518680>,
|
454
|
+
'random_bool': <function random_bool at 0x7a83518400>,
|
455
|
+
'restart': <function restart at 0x7a8351b740>,
|
456
|
+
'set_timeout': <function set_timeout at 0x7a8351b880>,
|
457
|
+
'sets_ordered': <function sets_ordered at 0x7a8351b9c0>,
|
458
|
+
'str_cmp': <function str_cmp at 0x7a8351ba60>,
|
459
|
+
'to_str': <function to_str at 0x7a83518f40>,
|
460
|
+
'choices': <function choices at 0x7a8351bb00>,
|
461
|
+
'console_run': <function console_run at 0x7a8351bd80>,
|
462
|
+
'input_char': <function input_char at 0x7a8351bec0>,
|
463
|
+
'log': <function log at 0x7a8351bc40>,
|
464
|
+
'print_colorize': <function print_colorize at 0x7a83540180>,
|
465
|
+
'print_dir': <function print_dir at 0x7a835402c0>,
|
466
|
+
'print_log': <function print_log at 0x7a8351bf60>,
|
467
|
+
'print_to_last_line': <function print_to_last_line at 0x7a8351bce0>,
|
468
|
+
'text_colorize': <function text_colorize at 0x7a8351be20>,
|
469
|
+
'batch_calculate': <function batch_calculate at 0x7a780d9620>,
|
470
|
+
'batchmaker': <function batchmaker at 0x7a780da0c0>,
|
471
|
+
'calculate': <function calculate at 0x7a780da340>,
|
472
|
+
'auto_reload': <function auto_reload at 0x7a780da5c0>,
|
473
|
+
'github_pull': <function github_pull at 0x7a780da520>,
|
474
|
+
'github_push': <function github_push at 0x7a780da7a0>,
|
475
|
+
'github_user': <function github_user at 0x7a780daac0>,
|
476
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7a77e1a0c0>,
|
477
|
+
'poetry_publish': <function poetry_publish at 0x7a77e1a200>,
|
478
|
+
'poetry_update_version': <function poetry_update_version at 0x7a77e3aa20>,
|
479
|
+
'iargv': <function iargv at 0x7a72bd0180>,
|
480
|
+
'idumps': <function idumps at 0x7a72bd02c0>,
|
481
|
+
'idumps_html': <function idumps_html at 0x7a72c38cc0>,
|
482
|
+
'ienv': <function ienv at 0x7a72bd0400>,
|
483
|
+
'iexec': <function iexec at 0x7a72c38f40>,
|
484
|
+
'ijoin': <function ijoin at 0x7a77e19f80>,
|
485
|
+
'iloads': <function iloads at 0x7a72c38fe0>,
|
486
|
+
'iloads_html': <function iloads_html at 0x7a72c39260>,
|
487
|
+
'iopen': <function iopen at 0x7a77e1a2a0>,
|
488
|
+
'iprint': <function iprint at 0x7a72c39120>,
|
489
|
+
'irange': <function irange at 0x7a780da480>,
|
490
|
+
'ireplace': <function ireplace at 0x7a72c39300>,
|
491
|
+
'iscandir': <function iscandir at 0x7a72c3af20>,
|
492
|
+
'isplit': <function isplit at 0x7a72c3afc0>}}
|
491
493
|
```
|
492
494
|
|
493
495
|
## password_generator
|
@@ -502,7 +504,7 @@ print(password_generator())
|
|
502
504
|
|
503
505
|
Output:
|
504
506
|
```py
|
505
|
-
|
507
|
+
n.,UG}_N
|
506
508
|
```
|
507
509
|
|
508
510
|
## random_bool
|
@@ -520,9 +522,13 @@ print(random_bool())
|
|
520
522
|
|
521
523
|
Output:
|
522
524
|
```py
|
523
|
-
|
525
|
+
False
|
524
526
|
```
|
525
527
|
|
528
|
+
## restart
|
529
|
+
|
530
|
+
`restart()`
|
531
|
+
|
526
532
|
## set_timeout
|
527
533
|
|
528
534
|
`set_timeout(interval, func, args=None, kwargs=None)`
|
@@ -542,7 +548,7 @@ x.cancel()
|
|
542
548
|
|
543
549
|
Output:
|
544
550
|
```py
|
545
|
-
<Timer(Thread-2, started
|
551
|
+
<Timer(Thread-2, started 525885381872)>
|
546
552
|
menghentikan timeout 7
|
547
553
|
```
|
548
554
|
|
@@ -560,7 +566,7 @@ print(list(sets_ordered(array)))
|
|
560
566
|
|
561
567
|
Output:
|
562
568
|
```py
|
563
|
-
<generator object sets_ordered at
|
569
|
+
<generator object sets_ordered at 0x7a72a141e0>
|
564
570
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
565
571
|
```
|
566
572
|
|
@@ -714,7 +720,7 @@ Output:
|
|
714
720
|
__enter__ : https:/www.google.com
|
715
721
|
__fspath__ : https:/www.google.com
|
716
722
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
717
|
-
__hash__ :
|
723
|
+
__hash__ : 355454826737572805
|
718
724
|
__init__ : None
|
719
725
|
__init_subclass__ : None
|
720
726
|
__module__ : pathlib
|
@@ -727,8 +733,8 @@ Output:
|
|
727
733
|
_cached_cparts : ['https:', 'www.google.com']
|
728
734
|
_cparts : ['https:', 'www.google.com']
|
729
735
|
_drv :
|
730
|
-
_flavour : <pathlib._PosixFlavour object at
|
731
|
-
_hash :
|
736
|
+
_flavour : <pathlib._PosixFlavour object at 0x7a834ec650>
|
737
|
+
_hash : 355454826737572805
|
732
738
|
_parts : ['https:', 'www.google.com']
|
733
739
|
_root :
|
734
740
|
_str : https:/www.google.com
|
@@ -750,7 +756,7 @@ Output:
|
|
750
756
|
is_reserved : False
|
751
757
|
is_socket : False
|
752
758
|
is_symlink : False
|
753
|
-
iterdir : <generator object Path.iterdir at
|
759
|
+
iterdir : <generator object Path.iterdir at 0x7a729f0900>
|
754
760
|
joinpath : https:/www.google.com
|
755
761
|
name : www.google.com
|
756
762
|
parent : https:
|
@@ -817,7 +823,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
817
823
|
|
818
824
|
Output:
|
819
825
|
```py
|
820
|
-
<generator object batch_calculate at
|
826
|
+
<generator object batch_calculate at 0x7a72993970>
|
821
827
|
[('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')>)]
|
822
828
|
```
|
823
829
|
|
@@ -842,7 +848,7 @@ print(list(batchmaker(s)))
|
|
842
848
|
|
843
849
|
Output:
|
844
850
|
```py
|
845
|
-
<generator object batchmaker at
|
851
|
+
<generator object batchmaker at 0x7a72a04160>
|
846
852
|
['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.']
|
847
853
|
```
|
848
854
|
|
@@ -1206,7 +1212,7 @@ print(ijoin(10, ' '))
|
|
1206
1212
|
|
1207
1213
|
Output:
|
1208
1214
|
```py
|
1209
|
-
asd, dfs, qweqw
|
1215
|
+
weq, asd, dfs, qweqw
|
1210
1216
|
,ini,path,seperti,url,
|
1211
1217
|
ini,path,seperti,url
|
1212
1218
|
<li>satu</li>
|
@@ -1271,119 +1277,115 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1271
1277
|
Output:
|
1272
1278
|
```py
|
1273
1279
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1274
|
-
[['Harga Emas Hari Ini -
|
1275
|
-
['Spot Emas USD↓2.
|
1276
|
-
'Kurs IDR
|
1277
|
-
'Emas IDR↓1.
|
1278
|
-
['LM Antam (Jual)↓1.
|
1279
|
-
'LM Antam (Beli)↓1.
|
1280
|
+
[['Harga Emas Hari Ini - Kamis, 25 April 2024'],
|
1281
|
+
['Spot Emas USD↓2.316,87 (-8,41) / oz',
|
1282
|
+
'Kurs IDR↓16.161,00 (-83,00) / USD',
|
1283
|
+
'Emas IDR↓1.203.818 (-10.575) / gr'],
|
1284
|
+
['LM Antam (Jual)↓1.319.000 (-1.000) / gr',
|
1285
|
+
'LM Antam (Beli)↓1.217.000 (-1.000) / gr']],
|
1280
1286
|
[['Harga Emas Hari Ini'],
|
1281
1287
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1282
1288
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1283
1289
|
['1000',
|
1284
|
-
'1.
|
1285
|
-
'1.
|
1290
|
+
'1.260 (-1)',
|
1291
|
+
'1.259.600 (-1.000)',
|
1286
1292
|
'1.043.040 (+8.200)',
|
1287
1293
|
'1.043.040.000 (+8.200.000)'],
|
1288
1294
|
['500',
|
1289
|
-
'2.
|
1290
|
-
'1.
|
1295
|
+
'2.519 (-2)',
|
1296
|
+
'1.259.640 (-1.000)',
|
1291
1297
|
'1.043.082 (+8.200)',
|
1292
1298
|
'521.541.000 (+4.100.000)'],
|
1293
1299
|
['250',
|
1294
|
-
'5.
|
1295
|
-
'1.
|
1300
|
+
'5.040 (-4)',
|
1301
|
+
'1.260.060 (-1.000)',
|
1296
1302
|
'1.043.512 (+8.200)',
|
1297
1303
|
'260.878.000 (+2.050.000)'],
|
1298
1304
|
['100',
|
1299
|
-
'12.
|
1300
|
-
'1.
|
1305
|
+
'12.611 (-10)',
|
1306
|
+
'1.261.120 (-1.000)',
|
1301
1307
|
'1.044.600 (+8.200)',
|
1302
1308
|
'104.460.000 (+820.000)'],
|
1303
1309
|
['50',
|
1304
|
-
'25.
|
1305
|
-
'1.
|
1310
|
+
'25.238 (-20)',
|
1311
|
+
'1.261.900 (-1.000)',
|
1306
1312
|
'1.045.400 (+8.200)',
|
1307
1313
|
'52.270.000 (+410.000)'],
|
1308
1314
|
['25',
|
1309
|
-
'50.
|
1310
|
-
'1.
|
1315
|
+
'50.539 (-40)',
|
1316
|
+
'1.263.480 (-1.000)',
|
1311
1317
|
'1.047.040 (+8.200)',
|
1312
1318
|
'26.176.000 (+205.000)'],
|
1313
1319
|
['10',
|
1314
|
-
'126.
|
1315
|
-
'1.
|
1320
|
+
'126.850 (-100)',
|
1321
|
+
'1.268.500 (-1.000)',
|
1316
1322
|
'1.052.200 (+8.200)',
|
1317
1323
|
'10.522.000 (+82.000)'],
|
1318
1324
|
['5',
|
1319
|
-
'
|
1320
|
-
'1.
|
1325
|
+
'254.800 (-200)',
|
1326
|
+
'1.274.000 (-1.000)',
|
1321
1327
|
'1.057.800 (+8.200)',
|
1322
1328
|
'5.289.000 (+41.000)'],
|
1323
1329
|
['3',
|
1324
|
-
'
|
1325
|
-
'1.
|
1330
|
+
'426.889 (-333)',
|
1331
|
+
'1.280.667 (-1.000)',
|
1326
1332
|
'1.064.667 (+8.000)',
|
1327
1333
|
'3.194.000 (+24.000)'],
|
1328
1334
|
['2',
|
1329
|
-
'
|
1330
|
-
'1.
|
1335
|
+
'644.500 (-500)',
|
1336
|
+
'1.289.000 (-1.000)',
|
1331
1337
|
'1.073.500 (+8.500)',
|
1332
1338
|
'2.147.000 (+17.000)'],
|
1333
1339
|
['1',
|
1334
|
-
'1.
|
1335
|
-
'1.
|
1340
|
+
'1.319.000 (-1.000)',
|
1341
|
+
'1.319.000 (-1.000)',
|
1336
1342
|
'1.104.000 (+8.000)',
|
1337
1343
|
'1.104.000 (+8.000)'],
|
1338
1344
|
['0.5',
|
1339
|
-
'2.
|
1340
|
-
'1.
|
1345
|
+
'2.838.000 (-2.000)',
|
1346
|
+
'1.419.000 (-1.000)',
|
1341
1347
|
'1.208.000 (+8.000)',
|
1342
1348
|
'604.000 (+4.000)'],
|
1343
|
-
['Update harga LM Antam :
|
1344
|
-
':Rp. 1.
|
1349
|
+
['Update harga LM Antam :25 April 2024, pukul 08:05Harga pembelian kembali '
|
1350
|
+
':Rp. 1.217.000/gram (-1.000)',
|
1345
1351
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1346
1352
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1347
1353
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1348
|
-
['Ounce\xa0(oz)', '2.
|
1349
|
-
['Gram\xa0(gr)', '74,
|
1350
|
-
['Kilogram\xa0(kg)', '74.
|
1351
|
-
['Update harga emas :
|
1354
|
+
['Ounce\xa0(oz)', '2.316,87 (-8,41)', '16.161,00 (-83,00)', '37.442.936'],
|
1355
|
+
['Gram\xa0(gr)', '74,49', '16.161,00', '1.203.818 (-10.575)'],
|
1356
|
+
['Kilogram\xa0(kg)', '74.489,10', '16.161,00', '1.203.818.350'],
|
1357
|
+
['Update harga emas :25 April 2024, pukul 20:41Update kurs :25 April 2024, '
|
1352
1358
|
'pukul 13:10']],
|
1353
1359
|
[['Gram', 'UBS Gold 99.99%'],
|
1354
1360
|
['Jual', 'Beli'],
|
1355
1361
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1356
1362
|
['100',
|
1357
|
-
'126.000.000
|
1358
|
-
'1.260.000
|
1359
|
-
'124.
|
1360
|
-
'1.
|
1363
|
+
'126.000.000',
|
1364
|
+
'1.260.000',
|
1365
|
+
'124.385.000 (+400.000)',
|
1366
|
+
'1.243.850 (+4.000)'],
|
1361
1367
|
['50',
|
1362
|
-
'63.100.000
|
1363
|
-
'1.262.000
|
1364
|
-
'62.
|
1365
|
-
'1.
|
1368
|
+
'63.100.000',
|
1369
|
+
'1.262.000',
|
1370
|
+
'62.245.000 (+200.000)',
|
1371
|
+
'1.244.900 (+4.000)'],
|
1366
1372
|
['25',
|
1367
|
-
'31.600.000
|
1368
|
-
'1.264.000
|
1369
|
-
'31.
|
1370
|
-
'1.
|
1373
|
+
'31.600.000',
|
1374
|
+
'1.264.000',
|
1375
|
+
'31.225.000 (+100.000)',
|
1376
|
+
'1.249.000 (+4.000)'],
|
1371
1377
|
['10',
|
1372
|
-
'12.680.000
|
1373
|
-
'1.268.000
|
1374
|
-
'12.
|
1375
|
-
'1.
|
1376
|
-
['5',
|
1377
|
-
'6.365.000 (-35.000)',
|
1378
|
-
'1.273.000 (-7.000)',
|
1379
|
-
'6.327.000 (+37.500)',
|
1380
|
-
'1.265.400 (+7.500)'],
|
1378
|
+
'12.680.000',
|
1379
|
+
'1.268.000',
|
1380
|
+
'12.540.000 (+40.000)',
|
1381
|
+
'1.254.000 (+4.000)'],
|
1382
|
+
['5', '6.365.000', '1.273.000', '6.322.000 (+20.000)', '1.264.400 (+4.000)'],
|
1381
1383
|
['1',
|
1382
|
-
'1.
|
1383
|
-
'1.
|
1384
|
-
'1.
|
1385
|
-
'1.
|
1386
|
-
['', 'Update :
|
1384
|
+
'1.315.000 (-5.000)',
|
1385
|
+
'1.315.000 (-5.000)',
|
1386
|
+
'1.297.000 (+4.000)',
|
1387
|
+
'1.297.000 (+4.000)'],
|
1388
|
+
['', 'Update :25 April 2024, pukul 14:44']],
|
1387
1389
|
[['Konversi Satuan'],
|
1388
1390
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1389
1391
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1393,37 +1395,38 @@ Output:
|
|
1393
1395
|
['Waktu', 'Emas'],
|
1394
1396
|
['Unit', 'USD', 'IDR'],
|
1395
1397
|
['Angka', '+/-', 'Angka', '+/-'],
|
1396
|
-
['Hari Ini', 'Kurs', '', '', '16.
|
1397
|
-
['oz', '2.
|
1398
|
-
['gr', '74,
|
1399
|
-
['30 Hari', 'Kurs', '', '', '15.
|
1400
|
-
['oz', '2.
|
1401
|
-
['gr', '
|
1402
|
-
['2 Bulan', 'Kurs', '', '', '15.630', '+
|
1403
|
-
['oz', '2.035,57', '+
|
1404
|
-
['gr', '65,45', '+9,
|
1405
|
-
['6 Bulan', 'Kurs', '', '', '15.933', '+
|
1406
|
-
['oz', '
|
1407
|
-
['gr', '
|
1408
|
-
['1 Tahun', 'Kurs', '', '', '15.731', '+
|
1409
|
-
['oz', '1.823,86', '+
|
1410
|
-
['gr', '58,64', '+15,
|
1411
|
-
['2 Tahun', 'Kurs', '', '', '14.
|
1412
|
-
['oz', '1.
|
1413
|
-
['gr', '
|
1414
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1415
|
-
['oz', '1.
|
1416
|
-
['gr', '57,
|
1417
|
-
['5 Tahun', 'Kurs', '', '', '14.188', '+
|
1418
|
-
['oz', '1.
|
1419
|
-
['gr', '41,
|
1398
|
+
['Hari Ini', 'Kurs', '', '', '16.244', '-83-0,51%'],
|
1399
|
+
['oz', '2.325,28', '-8,41-0,36%', '37.771.848', '-328.912-0,87%'],
|
1400
|
+
['gr', '74,76', '-0,27-0,36%', '1.214.393', '-10.575-0,87%'],
|
1401
|
+
['30 Hari', 'Kurs', '', '', '15.795', '+366+2,32%'],
|
1402
|
+
['oz', '2.177,78', '+139,09+6,39%', '34.398.035', '+3.044.901+8,85%'],
|
1403
|
+
['gr', '70,02', '+4,47+6,39%', '1.105.923', '+97.896+8,85%'],
|
1404
|
+
['2 Bulan', 'Kurs', '', '', '15.630', '+531+3,40%'],
|
1405
|
+
['oz', '2.035,57', '+281,30+13,82%', '31.815.959', '+5.626.977+17,69%'],
|
1406
|
+
['gr', '65,45', '+9,04+13,82', '1.022.907', '+180.912+17,69%'],
|
1407
|
+
['6 Bulan', 'Kurs', '', '', '15.933', '+228+1,43%'],
|
1408
|
+
['oz', '2.006,33', '+310,54+15,48%', '31.966.856', '+5.476.080+17,13%'],
|
1409
|
+
['gr', '64,51', '+9,98+15,48%', '1.027.758', '+176.060+17,13%'],
|
1410
|
+
['1 Tahun', 'Kurs', '', '', '15.731', '+430+2,73%'],
|
1411
|
+
['oz', '1.823,86', '+493,01+27,03%', '28.691.142', '+8.751.794+30,50%'],
|
1412
|
+
['gr', '58,64', '+15,85+27,03%', '922.442', '+281.377+30,50%'],
|
1413
|
+
['2 Tahun', 'Kurs', '', '', '14.452', '+1.709+11,83%'],
|
1414
|
+
['oz', '1.901,97', '+414,90+21,81%', '27.487.270', '+9.955.666+36,22%'],
|
1415
|
+
['gr', '61,15', '+13,34+21,81%', '883.736', '+320.082+36,22%'],
|
1416
|
+
['3 Tahun', 'Kurs', '', '', '14.548', '+1.613+11,09%'],
|
1417
|
+
['oz', '1.779,86', '+537,01+30,17%', '25.893.403', '+11.549.533+44,60%'],
|
1418
|
+
['gr', '57,22', '+17,27+30,17%', '832.492', '+371.326+44,60%'],
|
1419
|
+
['5 Tahun', 'Kurs', '', '', '14.188', '+1.973+13,91%'],
|
1420
|
+
['oz', '1.286,10', '+1.030,77+80,15%', '18.247.187', '+19.195.749+105,20%'],
|
1421
|
+
['gr', '41,35', '+33,14+80,15%', '586.661', '+617.158+105,20%']])
|
1422
|
+
Timeout 3
|
1420
1423
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1421
1424
|
[[''],
|
1422
1425
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1423
|
-
['USD', '74,
|
1424
|
-
['KURS', '16.
|
1425
|
-
['IDR', '1.
|
1426
|
-
['
|
1426
|
+
['USD', '74,49↓', '-0,27-0,36%'],
|
1427
|
+
['KURS', '16.227,80↓', '-4,55-0,03%'],
|
1428
|
+
['IDR', '1.208.794,22↓', '-4.727,96-0,39%'],
|
1429
|
+
['Kamis, 25 April 2024 20:41']],
|
1427
1430
|
[[''],
|
1428
1431
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1429
1432
|
'Hari Ini',
|
@@ -1434,19 +1437,19 @@ Output:
|
|
1434
1437
|
'']],
|
1435
1438
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1436
1439
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1437
|
-
['USD', '74,
|
1438
|
-
['KURS', '16.
|
1439
|
-
['IDR', '1.
|
1440
|
+
['USD', '74,76', '74,49 - 74,76', '74,63'],
|
1441
|
+
['KURS', '16.232,35', '16.227,80 - 16.232,35', '16.230,08'],
|
1442
|
+
['IDR', '1.213.522,18', '1.208.794,22 - 1.213.522,18', '1.211.158,20'],
|
1440
1443
|
[''],
|
1441
1444
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1442
|
-
['USD', '66,32', '64,07 - 77,14', '+8,
|
1443
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1444
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1445
|
+
['USD', '66,32', '64,07 - 77,14', '+8,17 (12,32%)'],
|
1446
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+837,70 (5,44%)'],
|
1447
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+188.064,69 (18,42%)'],
|
1445
1448
|
[''],
|
1446
1449
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1447
|
-
['USD', '63,
|
1448
|
-
['KURS', '14.
|
1449
|
-
['IDR', '
|
1450
|
+
['USD', '63,84', '58,43 - 77,14', '+10,65 (16,68%)'],
|
1451
|
+
['KURS', '14.930,10', '14.669,40 - 16.307,80', '+1.297,70 (8,69%)'],
|
1452
|
+
['IDR', '953.091,52', '912.925,68 - 1.256.829,06', '+255.702,70 (26,83%)']])
|
1450
1453
|
```
|
1451
1454
|
|
1452
1455
|
## iopen
|
@@ -1488,7 +1491,7 @@ Output:
|
|
1488
1491
|
```py
|
1489
1492
|
8
|
1490
1493
|
['mana', 'aja']
|
1491
|
-
[<Element a at
|
1494
|
+
[<Element a at 0x7a729faee0>, <Element a at 0x7a72a42580>, <Element a at 0x7a72a42620>, <Element a at 0x7a72a42670>, <Element a at 0x7a72a426c0>, <Element a at 0x7a72a42710>, <Element a at 0x7a72a42760>, <Element a at 0x7a72a427b0>, <Element a at 0x7a72a42800>, <Element a at 0x7a72a42850>, <Element a at 0x7a72a428a0>, <Element a at 0x7a72a428f0>, <Element a at 0x7a72a42940>, <Element a at 0x7a72a42990>, <Element a at 0x7a72a429e0>, <Element a at 0x7a72a42a30>, <Element a at 0x7a72a42a80>, <Element a at 0x7a72a42ad0>]
|
1492
1495
|
False
|
1493
1496
|
```
|
1494
1497
|
|
@@ -1529,8 +1532,8 @@ print(list(irange(10, 5)))
|
|
1529
1532
|
|
1530
1533
|
Output:
|
1531
1534
|
```py
|
1532
|
-
<generator object irange at
|
1533
|
-
<generator object irange at
|
1535
|
+
<generator object irange at 0x7a729ca9b0>
|
1536
|
+
<generator object irange at 0x7a729ca9b0>
|
1534
1537
|
['a', 'k', 'u']
|
1535
1538
|
[1, 2, 3, 4, 5, 6, 7]
|
1536
1539
|
[10, 9, 8, 7, 6, 5]
|
@@ -1573,7 +1576,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1573
1576
|
|
1574
1577
|
Output:
|
1575
1578
|
```py
|
1576
|
-
<generator object iscandir at
|
1579
|
+
<generator object iscandir at 0x7a72a00840>
|
1577
1580
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1578
1581
|
```
|
1579
1582
|
|
@@ -1630,7 +1633,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1630
1633
|
|
1631
1634
|
Output:
|
1632
1635
|
```py
|
1633
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1636
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7a72a14520>,
|
1634
1637
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1635
1638
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1636
1639
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
@@ -22,6 +22,7 @@ from .ibuiltins.is_valid_url import is_valid_url
|
|
22
22
|
from .ibuiltins.ivars import ivars
|
23
23
|
from .ibuiltins.password_generator import password_generator
|
24
24
|
from .ibuiltins.random_bool import random_bool
|
25
|
+
from .ibuiltins.restart import restart
|
25
26
|
from .ibuiltins.set_timeout import set_timeout
|
26
27
|
from .ibuiltins.sets_ordered import sets_ordered
|
27
28
|
from .ibuiltins.str_cmp import str_cmp
|
@@ -64,6 +65,7 @@ from .ifunctions.iscandir import iscandir
|
|
64
65
|
from .ifunctions.isplit import isplit
|
65
66
|
import asyncio
|
66
67
|
import colorama
|
68
|
+
import csv
|
67
69
|
import datetime
|
68
70
|
import functools
|
69
71
|
import inspect
|