pypipr 1.0.96__py3-none-any.whl → 1.0.98__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/__init__.py +2 -0
- pypipr/ibuiltins/chr_to_int.py +28 -0
- pypipr/ibuiltins/int_to_chr.py +26 -0
- {pypipr-1.0.96.dist-info → pypipr-1.0.98.dist-info}/METADATA +207 -187
- {pypipr-1.0.96.dist-info → pypipr-1.0.98.dist-info}/RECORD +7 -5
- {pypipr-1.0.96.dist-info → pypipr-1.0.98.dist-info}/WHEEL +0 -0
- {pypipr-1.0.96.dist-info → pypipr-1.0.98.dist-info}/entry_points.txt +0 -0
pypipr/__init__.py
CHANGED
@@ -4,6 +4,7 @@ from .ibuiltins.RunParallel import RunParallel
|
|
4
4
|
from .ibuiltins.WINDOWS import WINDOWS
|
5
5
|
from .ibuiltins.avg import avg
|
6
6
|
from .ibuiltins.basename import basename
|
7
|
+
from .ibuiltins.chr_to_int import chr_to_int
|
7
8
|
from .ibuiltins.chunk_array import chunk_array
|
8
9
|
from .ibuiltins.create_folder import create_folder
|
9
10
|
from .ibuiltins.datetime_from_string import datetime_from_string
|
@@ -16,6 +17,7 @@ from .ibuiltins.get_by_index import get_by_index
|
|
16
17
|
from .ibuiltins.get_class_method import get_class_method
|
17
18
|
from .ibuiltins.get_filemtime import get_filemtime
|
18
19
|
from .ibuiltins.get_filesize import get_filesize
|
20
|
+
from .ibuiltins.int_to_chr import int_to_chr
|
19
21
|
from .ibuiltins.is_empty import is_empty
|
20
22
|
from .ibuiltins.is_iterable import is_iterable
|
21
23
|
from .ibuiltins.is_valid_url import is_valid_url
|
@@ -0,0 +1,28 @@
|
|
1
|
+
def chr_to_int(s, start=1, numbers="abcdefghijklmnopqrstuvwxyz"):
|
2
|
+
"""
|
3
|
+
Fungsi ini berguna untuk mengubah urutan huruf menjadi angka.
|
4
|
+
|
5
|
+
```python
|
6
|
+
print(chr_to_int('z')) # Output: 26
|
7
|
+
print(chr_to_int('aa')) # Output: 27
|
8
|
+
print(chr_to_int('abc', numbers="abc")) # Output: 10
|
9
|
+
```
|
10
|
+
"""
|
11
|
+
result = 0
|
12
|
+
digit = len(numbers)
|
13
|
+
for char in s:
|
14
|
+
result = result * digit + numbers.index(char) + 1
|
15
|
+
return result + start - 1
|
16
|
+
|
17
|
+
|
18
|
+
if __name__ == "__main__":
|
19
|
+
print(chr_to_int("z")) # Output: 25
|
20
|
+
print(chr_to_int("aa")) # Output: 26
|
21
|
+
print(chr_to_int("abc", numbers="abc")) # Output: 5
|
22
|
+
for i in "abcdefghijklmnopqrstuvwxyz":
|
23
|
+
print(chr_to_int(i, start=9))
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
def int_to_chr(n, start=1, numbers="abcdefghijklmnopqrstuvwxyz"):
|
2
|
+
"""
|
3
|
+
Fungsi ini berguna untuk membuat urutan dari huruf.
|
4
|
+
Seperti a, b, ...., z, aa, bb, ....
|
5
|
+
|
6
|
+
```python
|
7
|
+
for i in range(30):
|
8
|
+
print(f"{i} = {int_to_chr(i)}")
|
9
|
+
|
10
|
+
print(int_to_chr(7777))
|
11
|
+
```
|
12
|
+
"""
|
13
|
+
result = ""
|
14
|
+
digit = len(numbers)
|
15
|
+
n -= start
|
16
|
+
while n >= 0:
|
17
|
+
result = numbers[n % digit] + result
|
18
|
+
n = n // digit - 1
|
19
|
+
return result
|
20
|
+
|
21
|
+
if __name__ == "__main__":
|
22
|
+
for i in range(30):
|
23
|
+
itc = int_to_chr(i)
|
24
|
+
print(f"{i} = {itc}")
|
25
|
+
|
26
|
+
print(int_to_chr(17, numbers="abc"))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.98
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -87,6 +87,25 @@ Output:
|
|
87
87
|
file.py
|
88
88
|
```
|
89
89
|
|
90
|
+
## chr_to_int
|
91
|
+
|
92
|
+
`chr_to_int(s, start=1, numbers='abcdefghijklmnopqrstuvwxyz')`
|
93
|
+
|
94
|
+
Fungsi ini berguna untuk mengubah urutan huruf menjadi angka.
|
95
|
+
|
96
|
+
```python
|
97
|
+
print(chr_to_int('z')) # Output: 26
|
98
|
+
print(chr_to_int('aa')) # Output: 27
|
99
|
+
print(chr_to_int('abc', numbers="abc")) # Output: 10
|
100
|
+
```
|
101
|
+
|
102
|
+
Output:
|
103
|
+
```py
|
104
|
+
26
|
105
|
+
27
|
106
|
+
18
|
107
|
+
```
|
108
|
+
|
90
109
|
## chunk_array
|
91
110
|
|
92
111
|
`chunk_array(array, size, start=0)`
|
@@ -101,7 +120,7 @@ print(list(chunk_array(arr, 5)))
|
|
101
120
|
|
102
121
|
Output:
|
103
122
|
```py
|
104
|
-
<generator object chunk_array at
|
123
|
+
<generator object chunk_array at 0x776a6b4140>
|
105
124
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
106
125
|
```
|
107
126
|
|
@@ -152,9 +171,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
152
171
|
|
153
172
|
Output:
|
154
173
|
```py
|
155
|
-
2024-04-
|
156
|
-
2024-04-
|
157
|
-
2024-04-
|
174
|
+
2024-04-28 20:23:44.929045+07:00
|
175
|
+
2024-04-28 13:23:44.930043+00:00
|
176
|
+
2024-04-28 06:23:44.931315-07:00
|
158
177
|
```
|
159
178
|
|
160
179
|
## dict_first
|
@@ -221,7 +240,7 @@ print(filter_empty(var))
|
|
221
240
|
|
222
241
|
Output:
|
223
242
|
```py
|
224
|
-
<generator object filter_empty at
|
243
|
+
<generator object filter_empty at 0x776a646d40>
|
225
244
|
```
|
226
245
|
|
227
246
|
## get_by_index
|
@@ -267,8 +286,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
267
286
|
|
268
287
|
Output:
|
269
288
|
```py
|
270
|
-
<generator object get_class_method at
|
271
|
-
[<function ExampleGetClassMethod.a at
|
289
|
+
<generator object get_class_method at 0x776a647010>
|
290
|
+
[<function ExampleGetClassMethod.a at 0x776a6b9760>, <function ExampleGetClassMethod.b at 0x776a6b9620>, <function ExampleGetClassMethod.c at 0x776a6b9800>, <function ExampleGetClassMethod.d at 0x776a6b98a0>]
|
272
291
|
```
|
273
292
|
|
274
293
|
## get_filemtime
|
@@ -301,6 +320,55 @@ Output:
|
|
301
320
|
465
|
302
321
|
```
|
303
322
|
|
323
|
+
## int_to_chr
|
324
|
+
|
325
|
+
`int_to_chr(n, start=1, numbers='abcdefghijklmnopqrstuvwxyz')`
|
326
|
+
|
327
|
+
Fungsi ini berguna untuk membuat urutan dari huruf.
|
328
|
+
Seperti a, b, ...., z, aa, bb, ....
|
329
|
+
|
330
|
+
```python
|
331
|
+
for i in range(30):
|
332
|
+
print(f"{i} = {int_to_chr(i)}")
|
333
|
+
|
334
|
+
print(int_to_chr(7777))
|
335
|
+
```
|
336
|
+
|
337
|
+
Output:
|
338
|
+
```py
|
339
|
+
0 =
|
340
|
+
1 = a
|
341
|
+
2 = b
|
342
|
+
3 = c
|
343
|
+
4 = d
|
344
|
+
5 = e
|
345
|
+
6 = f
|
346
|
+
7 = g
|
347
|
+
8 = h
|
348
|
+
9 = i
|
349
|
+
10 = j
|
350
|
+
11 = k
|
351
|
+
12 = l
|
352
|
+
13 = m
|
353
|
+
14 = n
|
354
|
+
15 = o
|
355
|
+
16 = p
|
356
|
+
17 = q
|
357
|
+
18 = r
|
358
|
+
19 = s
|
359
|
+
20 = t
|
360
|
+
21 = u
|
361
|
+
22 = v
|
362
|
+
23 = w
|
363
|
+
24 = x
|
364
|
+
25 = y
|
365
|
+
26 = z
|
366
|
+
27 = aa
|
367
|
+
28 = ab
|
368
|
+
29 = ac
|
369
|
+
kmc
|
370
|
+
```
|
371
|
+
|
304
372
|
## is_empty
|
305
373
|
|
306
374
|
`is_empty(variable, empty=[None, False, 0, 0, '0', '', '-0', '\n', '\t', set(), {}, [], ()])`
|
@@ -393,7 +461,7 @@ Output:
|
|
393
461
|
'idjango': <module 'pypipr.idjango' from '/data/data/com.termux/files/home/pypipr/pypipr/idjango/__init__.py'>,
|
394
462
|
'iengineering': <module 'pypipr.iengineering' from '/data/data/com.termux/files/home/pypipr/pypipr/iengineering/__init__.py'>,
|
395
463
|
'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
|
464
|
+
'iflow': <module 'pypipr.iflow' (<_frozen_importlib_external.NamespaceLoader object at 0x7770ee6f90>)>,
|
397
465
|
'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
398
466
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
399
467
|
'csv': <module 'csv' from '/data/data/com.termux/files/usr/lib/python3.11/csv.py'>,
|
@@ -431,65 +499,67 @@ Output:
|
|
431
499
|
'PintUregQuantity': <class 'pint.Quantity'>},
|
432
500
|
'variable': {'LINUX': True,
|
433
501
|
'WINDOWS': False,
|
434
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
435
|
-
'function': {'avg': <function avg at
|
436
|
-
'basename': <function basename at
|
437
|
-
'
|
438
|
-
'
|
439
|
-
'
|
440
|
-
'
|
441
|
-
'
|
442
|
-
'
|
443
|
-
'
|
444
|
-
'
|
445
|
-
'
|
446
|
-
'
|
447
|
-
'
|
448
|
-
'
|
449
|
-
'
|
450
|
-
'
|
451
|
-
'
|
452
|
-
'
|
453
|
-
'
|
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
|
-
'
|
491
|
-
'
|
492
|
-
'
|
502
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7776e3fd50>},
|
503
|
+
'function': {'avg': <function avg at 0x777bfb6d40>,
|
504
|
+
'basename': <function basename at 0x777bf868e0>,
|
505
|
+
'chr_to_int': <function chr_to_int at 0x7776d79080>,
|
506
|
+
'chunk_array': <function chunk_array at 0x7776d791c0>,
|
507
|
+
'create_folder': <function create_folder at 0x7776d793a0>,
|
508
|
+
'datetime_from_string': <function datetime_from_string at 0x7776d79580>,
|
509
|
+
'datetime_now': <function datetime_now at 0x7776e21620>,
|
510
|
+
'dict_first': <function dict_first at 0x7776e21580>,
|
511
|
+
'dirname': <function dirname at 0x7776e214e0>,
|
512
|
+
'exit_if_empty': <function exit_if_empty at 0x7776e213a0>,
|
513
|
+
'filter_empty': <function filter_empty at 0x7776e211c0>,
|
514
|
+
'get_by_index': <function get_by_index at 0x7776e20e00>,
|
515
|
+
'get_class_method': <function get_class_method at 0x7776e20cc0>,
|
516
|
+
'get_filemtime': <function get_filemtime at 0x7776e20b80>,
|
517
|
+
'get_filesize': <function get_filesize at 0x7776e209a0>,
|
518
|
+
'int_to_chr': <function int_to_chr at 0x7776e20900>,
|
519
|
+
'is_empty': <function is_empty at 0x7776e21260>,
|
520
|
+
'is_iterable': <function is_iterable at 0x7776e20fe0>,
|
521
|
+
'is_valid_url': <function is_valid_url at 0x7776e207c0>,
|
522
|
+
'ivars': <function ivars at 0x7776e20720>,
|
523
|
+
'password_generator': <function password_generator at 0x7776e205e0>,
|
524
|
+
'random_bool': <function random_bool at 0x7776e20400>,
|
525
|
+
'restart': <function restart at 0x7776e23880>,
|
526
|
+
'set_timeout': <function set_timeout at 0x7776e239c0>,
|
527
|
+
'sets_ordered': <function sets_ordered at 0x7776e23b00>,
|
528
|
+
'str_cmp': <function str_cmp at 0x7776e23ba0>,
|
529
|
+
'to_str': <function to_str at 0x7776e20f40>,
|
530
|
+
'choices': <function choices at 0x7776e23c40>,
|
531
|
+
'console_run': <function console_run at 0x7776e23ec0>,
|
532
|
+
'input_char': <function input_char at 0x7776e44040>,
|
533
|
+
'log': <function log at 0x7776e44220>,
|
534
|
+
'print_colorize': <function print_colorize at 0x7776e442c0>,
|
535
|
+
'print_dir': <function print_dir at 0x7776e44400>,
|
536
|
+
'print_log': <function print_log at 0x7776e440e0>,
|
537
|
+
'print_to_last_line': <function print_to_last_line at 0x7776e23e20>,
|
538
|
+
'text_colorize': <function text_colorize at 0x7776e23f60>,
|
539
|
+
'batch_calculate': <function batch_calculate at 0x7770ef1760>,
|
540
|
+
'batchmaker': <function batchmaker at 0x7776e44540>,
|
541
|
+
'calculate': <function calculate at 0x7770ef2480>,
|
542
|
+
'auto_reload': <function auto_reload at 0x7770ef2700>,
|
543
|
+
'github_pull': <function github_pull at 0x7770ef2200>,
|
544
|
+
'github_push': <function github_push at 0x7770ef28e0>,
|
545
|
+
'github_user': <function github_user at 0x7770ef2c00>,
|
546
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7770c22160>,
|
547
|
+
'poetry_publish': <function poetry_publish at 0x7770c22340>,
|
548
|
+
'poetry_update_version': <function poetry_update_version at 0x7770c46b60>,
|
549
|
+
'iargv': <function iargv at 0x776d2702c0>,
|
550
|
+
'idumps': <function idumps at 0x776d270400>,
|
551
|
+
'idumps_html': <function idumps_html at 0x776d2d4e00>,
|
552
|
+
'ienv': <function ienv at 0x776d270540>,
|
553
|
+
'iexec': <function iexec at 0x776d2d5080>,
|
554
|
+
'ijoin': <function ijoin at 0x7770c220c0>,
|
555
|
+
'iloads': <function iloads at 0x776d2d5120>,
|
556
|
+
'iloads_html': <function iloads_html at 0x776d2d53a0>,
|
557
|
+
'iopen': <function iopen at 0x7770c223e0>,
|
558
|
+
'iprint': <function iprint at 0x776d2d5260>,
|
559
|
+
'irange': <function irange at 0x7770ef25c0>,
|
560
|
+
'ireplace': <function ireplace at 0x776d2d5440>,
|
561
|
+
'iscandir': <function iscandir at 0x776d2d7060>,
|
562
|
+
'isplit': <function isplit at 0x776d2d7100>}}
|
493
563
|
```
|
494
564
|
|
495
565
|
## password_generator
|
@@ -504,7 +574,7 @@ print(password_generator())
|
|
504
574
|
|
505
575
|
Output:
|
506
576
|
```py
|
507
|
-
|
577
|
+
5M|h(ik`
|
508
578
|
```
|
509
579
|
|
510
580
|
## random_bool
|
@@ -522,7 +592,7 @@ print(random_bool())
|
|
522
592
|
|
523
593
|
Output:
|
524
594
|
```py
|
525
|
-
|
595
|
+
True
|
526
596
|
```
|
527
597
|
|
528
598
|
## restart
|
@@ -548,7 +618,7 @@ x.cancel()
|
|
548
618
|
|
549
619
|
Output:
|
550
620
|
```py
|
551
|
-
<Timer(Thread-2, started
|
621
|
+
<Timer(Thread-2, started 512858504432)>
|
552
622
|
menghentikan timeout 7
|
553
623
|
```
|
554
624
|
|
@@ -566,7 +636,7 @@ print(list(sets_ordered(array)))
|
|
566
636
|
|
567
637
|
Output:
|
568
638
|
```py
|
569
|
-
<generator object sets_ordered at
|
639
|
+
<generator object sets_ordered at 0x776a6c42b0>
|
570
640
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
571
641
|
```
|
572
642
|
|
@@ -720,7 +790,7 @@ Output:
|
|
720
790
|
__enter__ : https:/www.google.com
|
721
791
|
__fspath__ : https:/www.google.com
|
722
792
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
723
|
-
__hash__ : -
|
793
|
+
__hash__ : -1747193618484435558
|
724
794
|
__init__ : None
|
725
795
|
__init_subclass__ : None
|
726
796
|
__module__ : pathlib
|
@@ -733,8 +803,8 @@ Output:
|
|
733
803
|
_cached_cparts : ['https:', 'www.google.com']
|
734
804
|
_cparts : ['https:', 'www.google.com']
|
735
805
|
_drv :
|
736
|
-
_flavour : <pathlib._PosixFlavour object at
|
737
|
-
_hash : -
|
806
|
+
_flavour : <pathlib._PosixFlavour object at 0x7776df0bd0>
|
807
|
+
_hash : -1747193618484435558
|
738
808
|
_parts : ['https:', 'www.google.com']
|
739
809
|
_root :
|
740
810
|
_str : https:/www.google.com
|
@@ -756,7 +826,7 @@ Output:
|
|
756
826
|
is_reserved : False
|
757
827
|
is_socket : False
|
758
828
|
is_symlink : False
|
759
|
-
iterdir : <generator object Path.iterdir at
|
829
|
+
iterdir : <generator object Path.iterdir at 0x776a69c740>
|
760
830
|
joinpath : https:/www.google.com
|
761
831
|
name : www.google.com
|
762
832
|
parent : https:
|
@@ -823,7 +893,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
823
893
|
|
824
894
|
Output:
|
825
895
|
```py
|
826
|
-
<generator object batch_calculate at
|
896
|
+
<generator object batch_calculate at 0x776a647b50>
|
827
897
|
[('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')>)]
|
828
898
|
```
|
829
899
|
|
@@ -848,7 +918,7 @@ print(list(batchmaker(s)))
|
|
848
918
|
|
849
919
|
Output:
|
850
920
|
```py
|
851
|
-
<generator object batchmaker at
|
921
|
+
<generator object batchmaker at 0x776a6b03a0>
|
852
922
|
['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.']
|
853
923
|
```
|
854
924
|
|
@@ -1212,7 +1282,7 @@ print(ijoin(10, ' '))
|
|
1212
1282
|
|
1213
1283
|
Output:
|
1214
1284
|
```py
|
1215
|
-
qweqw,
|
1285
|
+
qweqw, dfs, weq, asd
|
1216
1286
|
,ini,path,seperti,url,
|
1217
1287
|
ini,path,seperti,url
|
1218
1288
|
<li>satu</li>
|
@@ -1277,110 +1347,61 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1277
1347
|
Output:
|
1278
1348
|
```py
|
1279
1349
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1280
|
-
[['Harga Emas Hari Ini -
|
1350
|
+
[['Harga Emas Hari Ini - Minggu, 28 April 2024'],
|
1281
1351
|
['Spot Emas USD↑2.337,94 (+3,37) / oz',
|
1282
1352
|
'Kurs IDR16.208,00 / USD',
|
1283
1353
|
'Emas IDR↑1.218.299 (+1.756) / gr'],
|
1284
|
-
['LM Antam (Jual)
|
1285
|
-
'LM Antam (Beli)↑1.222.000 (+5.000) / gr']],
|
1354
|
+
['LM Antam (Jual)1.326.000 / gr', 'LM Antam (Beli)1.222.000 / gr']],
|
1286
1355
|
[['Harga Emas Hari Ini'],
|
1287
1356
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1288
1357
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1289
1358
|
['1000',
|
1290
|
-
'1.267
|
1291
|
-
'1.266.600
|
1359
|
+
'1.267',
|
1360
|
+
'1.266.600',
|
1292
1361
|
'1.043.040 (+8.200)',
|
1293
1362
|
'1.043.040.000 (+8.200.000)'],
|
1294
1363
|
['500',
|
1295
|
-
'2.533
|
1296
|
-
'1.266.640
|
1364
|
+
'2.533',
|
1365
|
+
'1.266.640',
|
1297
1366
|
'1.043.082 (+8.200)',
|
1298
1367
|
'521.541.000 (+4.100.000)'],
|
1299
1368
|
['250',
|
1300
|
-
'5.068
|
1301
|
-
'1.267.060
|
1369
|
+
'5.068',
|
1370
|
+
'1.267.060',
|
1302
1371
|
'1.043.512 (+8.200)',
|
1303
1372
|
'260.878.000 (+2.050.000)'],
|
1304
1373
|
['100',
|
1305
|
-
'12.681
|
1306
|
-
'1.268.120
|
1374
|
+
'12.681',
|
1375
|
+
'1.268.120',
|
1307
1376
|
'1.044.600 (+8.200)',
|
1308
1377
|
'104.460.000 (+820.000)'],
|
1309
|
-
['50',
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
1314
|
-
['
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
'
|
1319
|
-
['10',
|
1320
|
-
'127.550 (+700)',
|
1321
|
-
'1.275.500 (+7.000)',
|
1322
|
-
'1.052.200 (+8.200)',
|
1323
|
-
'10.522.000 (+82.000)'],
|
1324
|
-
['5',
|
1325
|
-
'256.200 (+1.400)',
|
1326
|
-
'1.281.000 (+7.000)',
|
1327
|
-
'1.057.800 (+8.200)',
|
1328
|
-
'5.289.000 (+41.000)'],
|
1329
|
-
['3',
|
1330
|
-
'429.222 (+2.333)',
|
1331
|
-
'1.287.667 (+7.000)',
|
1332
|
-
'1.064.667 (+8.000)',
|
1333
|
-
'3.194.000 (+24.000)'],
|
1334
|
-
['2',
|
1335
|
-
'648.000 (+3.500)',
|
1336
|
-
'1.296.000 (+7.000)',
|
1337
|
-
'1.073.500 (+8.500)',
|
1338
|
-
'2.147.000 (+17.000)'],
|
1339
|
-
['1',
|
1340
|
-
'1.326.000 (+7.000)',
|
1341
|
-
'1.326.000 (+7.000)',
|
1342
|
-
'1.104.000 (+8.000)',
|
1343
|
-
'1.104.000 (+8.000)'],
|
1344
|
-
['0.5',
|
1345
|
-
'2.852.000 (+14.000)',
|
1346
|
-
'1.426.000 (+7.000)',
|
1347
|
-
'1.208.000 (+8.000)',
|
1348
|
-
'604.000 (+4.000)'],
|
1349
|
-
['Update harga LM Antam :27 April 2024, pukul 08:30Harga pembelian kembali '
|
1350
|
-
':Rp. 1.222.000/gram (+5.000)',
|
1378
|
+
['50', '25.378', '1.268.900', '1.045.400 (+8.200)', '52.270.000 (+410.000)'],
|
1379
|
+
['25', '50.819', '1.270.480', '1.047.040 (+8.200)', '26.176.000 (+205.000)'],
|
1380
|
+
['10', '127.550', '1.275.500', '1.052.200 (+8.200)', '10.522.000 (+82.000)'],
|
1381
|
+
['5', '256.200', '1.281.000', '1.057.800 (+8.200)', '5.289.000 (+41.000)'],
|
1382
|
+
['3', '429.222', '1.287.667', '1.064.667 (+8.000)', '3.194.000 (+24.000)'],
|
1383
|
+
['2', '648.000', '1.296.000', '1.073.500 (+8.500)', '2.147.000 (+17.000)'],
|
1384
|
+
['1', '1.326.000', '1.326.000', '1.104.000 (+8.000)', '1.104.000 (+8.000)'],
|
1385
|
+
['0.5', '2.852.000', '1.426.000', '1.208.000 (+8.000)', '604.000 (+4.000)'],
|
1386
|
+
['Update harga LM Antam :28 April 2024, pukul 08:07Harga pembelian kembali '
|
1387
|
+
':Rp. 1.222.000/gram',
|
1351
1388
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1352
1389
|
[['Spot Harga Emas Hari Ini (Market Close)'],
|
1353
1390
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1354
1391
|
['Ounce\xa0(oz)', '2.337,94 (+3,37)', '16.208,00', '37.893.332'],
|
1355
1392
|
['Gram\xa0(gr)', '75,17', '16.208,00', '1.218.299 (+1.756)'],
|
1356
1393
|
['Kilogram\xa0(kg)', '75.166,52', '16.208,00', '1.218.298.900'],
|
1357
|
-
['Update harga emas :
|
1394
|
+
['Update harga emas :28 April 2024, pukul 20:23Update kurs :28 April 2024, '
|
1358
1395
|
'pukul 13:10']],
|
1359
1396
|
[['Gram', 'UBS Gold 99.99%'],
|
1360
1397
|
['Jual', 'Beli'],
|
1361
1398
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1362
|
-
['100',
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
|
1367
|
-
['
|
1368
|
-
'63.445.000 (+345.000)',
|
1369
|
-
'1.268.900 (+6.900)',
|
1370
|
-
'62.545.000',
|
1371
|
-
'1.250.900'],
|
1372
|
-
['25',
|
1373
|
-
'31.762.000 (+162.000)',
|
1374
|
-
'1.270.480 (+6.480)',
|
1375
|
-
'31.375.000',
|
1376
|
-
'1.255.000'],
|
1377
|
-
['10',
|
1378
|
-
'12.755.000 (+75.000)',
|
1379
|
-
'1.275.500 (+7.500)',
|
1380
|
-
'12.600.000',
|
1381
|
-
'1.260.000'],
|
1382
|
-
['5', '6.405.000 (+40.000)', '1.281.000 (+8.000)', '6.352.000', '1.270.400'],
|
1383
|
-
['1', '1.326.000 (+11.000)', '1.326.000 (+11.000)', '1.303.000', '1.303.000'],
|
1399
|
+
['100', '126.812.000', '1.268.120', '124.985.000', '1.249.850'],
|
1400
|
+
['50', '63.445.000', '1.268.900', '62.545.000', '1.250.900'],
|
1401
|
+
['25', '31.762.000', '1.270.480', '31.375.000', '1.255.000'],
|
1402
|
+
['10', '12.755.000', '1.275.500', '12.600.000', '1.260.000'],
|
1403
|
+
['5', '6.405.000', '1.281.000', '6.352.000', '1.270.400'],
|
1404
|
+
['1', '1.326.000', '1.326.000', '1.303.000', '1.303.000'],
|
1384
1405
|
['', 'Update :26 April 2024, pukul 13:52']],
|
1385
1406
|
[['Konversi Satuan'],
|
1386
1407
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
@@ -1395,34 +1416,33 @@ Output:
|
|
1395
1416
|
['oz', '2.334,57', '+3,37+0,14%', '37.838.711', '+54.621+0,14%'],
|
1396
1417
|
['gr', '75,06', '+0,11+0,14%', '1.216.543', '+1.756+0,14%'],
|
1397
1418
|
['30 Hari', 'Kurs', '', '', '15.853', '+355+2,24%'],
|
1398
|
-
['oz', '2.
|
1399
|
-
['gr', '71,
|
1400
|
-
['2 Bulan', 'Kurs', '', '', '15.
|
1401
|
-
['oz', '2.
|
1402
|
-
['gr', '65,
|
1403
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1404
|
-
['oz', '1.
|
1405
|
-
['gr', '64,
|
1419
|
+
['oz', '2.232,75', '+105,19+4,71%', '35.395.786', '+2.497.546+7,06%'],
|
1420
|
+
['gr', '71,78', '+3,38+4,71%', '1.138.001', '+80.298+7,06%'],
|
1421
|
+
['2 Bulan', 'Kurs', '', '', '15.655', '+553+3,53%'],
|
1422
|
+
['oz', '2.033,12', '+304,82+14,99%', '31.828.494', '+6.064.838+19,05%'],
|
1423
|
+
['gr', '65,37', '+9,80+14,99', '1.023.310', '+194.989+19,05%'],
|
1424
|
+
['6 Bulan', 'Kurs', '', '', '15.916', '+292+1,83%'],
|
1425
|
+
['oz', '1.991,61', '+346,33+17,39%', '31.698.465', '+6.194.867+19,54%'],
|
1426
|
+
['gr', '64,03', '+11,13+17,39%', '1.019.129', '+199.170+19,54%'],
|
1406
1427
|
['1 Tahun', 'Kurs', '', '', '15.731', '+477+3,03%'],
|
1407
1428
|
['oz', '1.823,86', '+514,08+28,19%', '28.691.142', '+9.202.190+32,07%'],
|
1408
1429
|
['gr', '58,64', '+16,53+28,19%', '922.442', '+295.857+32,07%'],
|
1409
1430
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.790+12,42%'],
|
1410
|
-
['oz', '1.
|
1411
|
-
['gr', '
|
1412
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1413
|
-
['oz', '1.
|
1414
|
-
['gr', '
|
1415
|
-
['5 Tahun', 'Kurs', '', '', '14.
|
1416
|
-
['oz', '1.
|
1417
|
-
['gr', '41,
|
1418
|
-
Timeout 3
|
1431
|
+
['oz', '1.908,16', '+429,78+22,52%', '27.511.851', '+10.381.481+37,73%'],
|
1432
|
+
['gr', '61,35', '+13,82+22,52%', '884.527', '+333.772+37,73%'],
|
1433
|
+
['3 Tahun', 'Kurs', '', '', '14.510', '+1.698+11,70%'],
|
1434
|
+
['oz', '1.768,76', '+569,18+32,18%', '25.664.708', '+12.228.624+47,65%'],
|
1435
|
+
['gr', '56,87', '+18,30+32,18%', '825.140', '+393.159+47,65%'],
|
1436
|
+
['5 Tahun', 'Kurs', '', '', '14.215', '+1.993+14,02%'],
|
1437
|
+
['oz', '1.283,64', '+1.054,30+82,13%', '18.246.943', '+19.646.389+107,67%'],
|
1438
|
+
['gr', '41,27', '+33,90+82,13%', '586.653', '+631.646+107,67%']])
|
1419
1439
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1420
1440
|
[[''],
|
1421
1441
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1422
|
-
['USD', '75,17
|
1423
|
-
['KURS', '16.241,30
|
1424
|
-
['IDR', '1.220.801,94
|
1425
|
-
['
|
1442
|
+
['USD', '75,17↓', '%'],
|
1443
|
+
['KURS', '16.241,30↓', '%'],
|
1444
|
+
['IDR', '1.220.801,94↓', '%'],
|
1445
|
+
['Minggu, 28 April 2024 20:23']],
|
1426
1446
|
[[''],
|
1427
1447
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1428
1448
|
'Hari Ini',
|
@@ -1433,9 +1453,9 @@ Timeout 3
|
|
1433
1453
|
'']],
|
1434
1454
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1435
1455
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1436
|
-
['USD', '75,
|
1437
|
-
['KURS', '16.
|
1438
|
-
['IDR', '1.
|
1456
|
+
['USD', '75,17', '75,17 - 75,17', '75,17'],
|
1457
|
+
['KURS', '16.241,30', '16.241,30 - 16.241,30', '16.241,30'],
|
1458
|
+
['IDR', '1.220.801,94', '1.220.801,94 - 1.220.801,94', '1.220.801,94'],
|
1439
1459
|
[''],
|
1440
1460
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1441
1461
|
['USD', '66,32', '64,07 - 77,14', '+8,85 (13,34%)'],
|
@@ -1443,9 +1463,9 @@ Timeout 3
|
|
1443
1463
|
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+200.072,41 (19,60%)'],
|
1444
1464
|
[''],
|
1445
1465
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1446
|
-
['USD', '63,
|
1447
|
-
['KURS', '14.
|
1448
|
-
['IDR', '
|
1466
|
+
['USD', '63,78', '58,43 - 77,14', '+11,39 (17,86%)'],
|
1467
|
+
['KURS', '14.708,55', '14.669,40 - 16.307,80', '+1.532,75 (10,42%)'],
|
1468
|
+
['IDR', '938.054,69', '912.925,68 - 1.256.829,06', '+282.747,25 (30,14%)']])
|
1449
1469
|
```
|
1450
1470
|
|
1451
1471
|
## iopen
|
@@ -1487,7 +1507,7 @@ Output:
|
|
1487
1507
|
```py
|
1488
1508
|
8
|
1489
1509
|
['mana', 'aja']
|
1490
|
-
[<Element a at
|
1510
|
+
[<Element a at 0x776a6a7d90>, <Element a at 0x776a6f2990>, <Element a at 0x776a6f2a30>, <Element a at 0x776a6f2a80>, <Element a at 0x776a6f2ad0>, <Element a at 0x776a6f2b20>, <Element a at 0x776a6f2b70>, <Element a at 0x776a6f2bc0>, <Element a at 0x776a6f2c10>, <Element a at 0x776a6f2c60>, <Element a at 0x776a6f2cb0>, <Element a at 0x776a6f2d00>, <Element a at 0x776a6f2d50>, <Element a at 0x776a6f2da0>, <Element a at 0x776a6f2df0>, <Element a at 0x776a6f2e40>, <Element a at 0x776a6f2e90>, <Element a at 0x776a6f2ee0>]
|
1491
1511
|
False
|
1492
1512
|
```
|
1493
1513
|
|
@@ -1528,8 +1548,8 @@ print(list(irange(10, 5)))
|
|
1528
1548
|
|
1529
1549
|
Output:
|
1530
1550
|
```py
|
1531
|
-
<generator object irange at
|
1532
|
-
<generator object irange at
|
1551
|
+
<generator object irange at 0x776a67abd0>
|
1552
|
+
<generator object irange at 0x776a67abd0>
|
1533
1553
|
['a', 'k', 'u']
|
1534
1554
|
[1, 2, 3, 4, 5, 6, 7]
|
1535
1555
|
[10, 9, 8, 7, 6, 5]
|
@@ -1572,7 +1592,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1572
1592
|
|
1573
1593
|
Output:
|
1574
1594
|
```py
|
1575
|
-
<generator object iscandir at
|
1595
|
+
<generator object iscandir at 0x776a6b4740>
|
1576
1596
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1577
1597
|
```
|
1578
1598
|
|
@@ -1629,7 +1649,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1629
1649
|
|
1630
1650
|
Output:
|
1631
1651
|
```py
|
1632
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1652
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x776a6c45f0>,
|
1633
1653
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1634
1654
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1635
1655
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
pypipr/__init__.py,sha256=
|
1
|
+
pypipr/__init__.py,sha256=N6SdO8m0wG4nEQ5iX8mlzinXc-TA_6HuWZW00XEBgfw,3487
|
2
2
|
pypipr/ibuiltins/ComparePerformance.py,sha256=fCATdlDgmgiz7QkQNLDMF9VweicesjOaTtfQeBRr64U,2229
|
3
3
|
pypipr/ibuiltins/LINUX.py,sha256=p8OJwS9GCs50pz2UlcbUooPWSZgWmLI67PjcnzDTSWI,100
|
4
4
|
pypipr/ibuiltins/RunParallel.py,sha256=BnMasZTnr2gUVVy9dOXePlL_-ud2rWkVPFL2i-sN7rg,7358
|
@@ -6,6 +6,7 @@ pypipr/ibuiltins/WINDOWS.py,sha256=D-qiViq9LWTCaTefJhbxt-7Z2ty8ll7-DZ5NPFitT94,1
|
|
6
6
|
pypipr/ibuiltins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
pypipr/ibuiltins/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
8
8
|
pypipr/ibuiltins/basename.py,sha256=nypVfls6YL_7sY-MYHDcatm5flpBpGj2aMlIOKG9YqE,194
|
9
|
+
pypipr/ibuiltins/chr_to_int.py,sha256=LoSpKazhnMzO2HBAfNrRTehJe3Gobt_P4M07xIQy6Ko,714
|
9
10
|
pypipr/ibuiltins/chunk_array.py,sha256=aodjp-daihl-Xd8kPqcpHZICZub7Jx0QBqyoF0bd0dY,385
|
10
11
|
pypipr/ibuiltins/create_folder.py,sha256=pR1Oq0qM4imZ8lWaQez4kKwBxHblCxvDh7kQA_Q3-mc,500
|
11
12
|
pypipr/ibuiltins/datetime_from_string.py,sha256=-GJ_QHD1feUMX0o8nwCPHGflDPXr84ovN4Awnk1T9r8,466
|
@@ -18,6 +19,7 @@ pypipr/ibuiltins/get_by_index.py,sha256=wCJa8su5QZyZPA4UfEvR2nSEir0NfXcU0pxx2Lzp
|
|
18
19
|
pypipr/ibuiltins/get_class_method.py,sha256=RThCReUbF0uAlU-n5u0ELuP5yUbFqcKFfShswh7mgqc,639
|
19
20
|
pypipr/ibuiltins/get_filemtime.py,sha256=e8Glf4p9PJcL2yU8ZbrKOHYB-puaSNQsTS6Qhgp9F9s,227
|
20
21
|
pypipr/ibuiltins/get_filesize.py,sha256=2RCjrdZvaBDCdessFj-h7gLi13rPe6IXJXZcAoywWIA,196
|
22
|
+
pypipr/ibuiltins/int_to_chr.py,sha256=B-HnKziRQgDObsr2vMd2TnL3EkZAIMbK6fSY8b8r_dc,610
|
21
23
|
pypipr/ibuiltins/is_empty.py,sha256=eqsH6ATuuOLVVSpIsV_8zTBBibPrWjESu9LCMAv8YyY,683
|
22
24
|
pypipr/ibuiltins/is_iterable.py,sha256=VCzLfFZyQO5qF2wFTVbuZIxyf4BVkflWiRQaOjd9kFs,922
|
23
25
|
pypipr/ibuiltins/is_valid_url.py,sha256=g72vv4_9Zy8dtT0i1JvToRX-mgCzojQCBVHdO1KDwqo,1008
|
@@ -71,7 +73,7 @@ pypipr/ifunctions/iscandir.py,sha256=U1zvRZrz--5Kge0JooQbY4kQN17bRt-8XR26ZFxUyoA
|
|
71
73
|
pypipr/ifunctions/isplit.py,sha256=N2BiA_wVnrENYwokSzvo0CAiQWk3g7AnwuWFIUgevNM,383
|
72
74
|
pypipr/pypipr.py.bak,sha256=HF-ehQd6BY8hm9fRkQHravLNrJRlI5g_AzbCc3dbikQ,1061
|
73
75
|
pypipr/terminal.py,sha256=4w-2p_Rudm_dNdfG-rkO24heVgKLrve4xVXiRpWxVcc,1800
|
74
|
-
pypipr-1.0.
|
75
|
-
pypipr-1.0.
|
76
|
-
pypipr-1.0.
|
77
|
-
pypipr-1.0.
|
76
|
+
pypipr-1.0.98.dist-info/METADATA,sha256=ewpoMqlXT9LIt78xu5RBvVx7edtgOaoC69-wfvwASBU,51091
|
77
|
+
pypipr-1.0.98.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
78
|
+
pypipr-1.0.98.dist-info/entry_points.txt,sha256=ikcrTRCn3jaySem1mM9uhYEPDq2PVOs48CyEqLUkY38,47
|
79
|
+
pypipr-1.0.98.dist-info/RECORD,,
|
File without changes
|
File without changes
|