pypipr 1.0.110__tar.gz → 1.0.112__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.110 → pypipr-1.0.112}/PKG-INFO +244 -171
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/__init__.py +5 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/__terminal__.py +4 -2
- pypipr-1.0.112/pypipr/choices.py +61 -0
- pypipr-1.0.112/pypipr/ienumerate.py +5 -0
- pypipr-1.0.112/pypipr/int_to_bin.py +10 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/int_to_chr.py +1 -1
- pypipr-1.0.112/pypipr/int_to_hex.py +10 -0
- pypipr-1.0.112/pypipr/int_to_int.py +10 -0
- pypipr-1.0.112/pypipr/int_to_oct.py +10 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pyproject.toml +1 -1
- {pypipr-1.0.110 → pypipr-1.0.112}/readme.md +243 -170
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/APIMixinView.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/avg.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/basename.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/calculate.py +0 -0
- /pypipr-1.0.110/pypipr/choices.py → /pypipr-1.0.112/pypipr/choices.py.bak +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/console_run.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/dirname.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/github_push.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/github_user.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iargv.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/idumps.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/ienv.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iexec.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iloads.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/input_char.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iopen.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iprint.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/irange.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/isplit.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/ivars.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/log.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/print_log.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/restart.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.110 → pypipr-1.0.112}/pypipr/to_str.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.112
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -182,7 +182,7 @@ Output:
|
|
182
182
|
|
183
183
|
## int_to_chr
|
184
184
|
|
185
|
-
`int_to_chr(n, start=
|
185
|
+
`int_to_chr(n, start=0, numbers='abcdefghijklmnopqrstuvwxyz')`
|
186
186
|
|
187
187
|
Fungsi ini berguna untuk membuat urutan dari huruf.
|
188
188
|
Seperti a, b, ...., z, aa, bb, ....
|
@@ -196,37 +196,37 @@ print(int_to_chr(7777))
|
|
196
196
|
|
197
197
|
Output:
|
198
198
|
```py
|
199
|
-
0 =
|
200
|
-
1 =
|
201
|
-
2 =
|
202
|
-
3 =
|
203
|
-
4 =
|
204
|
-
5 =
|
205
|
-
6 =
|
206
|
-
7 =
|
207
|
-
8 =
|
208
|
-
9 =
|
209
|
-
10 =
|
210
|
-
11 =
|
211
|
-
12 =
|
212
|
-
13 =
|
213
|
-
14 =
|
214
|
-
15 =
|
215
|
-
16 =
|
216
|
-
17 =
|
217
|
-
18 =
|
218
|
-
19 =
|
219
|
-
20 =
|
220
|
-
21 =
|
221
|
-
22 =
|
222
|
-
23 =
|
223
|
-
24 =
|
224
|
-
25 =
|
225
|
-
26 =
|
226
|
-
27 =
|
227
|
-
28 =
|
228
|
-
29 =
|
229
|
-
|
199
|
+
0 = a
|
200
|
+
1 = b
|
201
|
+
2 = c
|
202
|
+
3 = d
|
203
|
+
4 = e
|
204
|
+
5 = f
|
205
|
+
6 = g
|
206
|
+
7 = h
|
207
|
+
8 = i
|
208
|
+
9 = j
|
209
|
+
10 = k
|
210
|
+
11 = l
|
211
|
+
12 = m
|
212
|
+
13 = n
|
213
|
+
14 = o
|
214
|
+
15 = p
|
215
|
+
16 = q
|
216
|
+
17 = r
|
217
|
+
18 = s
|
218
|
+
19 = t
|
219
|
+
20 = u
|
220
|
+
21 = v
|
221
|
+
22 = w
|
222
|
+
23 = x
|
223
|
+
24 = y
|
224
|
+
25 = z
|
225
|
+
26 = aa
|
226
|
+
27 = ab
|
227
|
+
28 = ac
|
228
|
+
29 = ad
|
229
|
+
kmd
|
230
230
|
```
|
231
231
|
|
232
232
|
## irange
|
@@ -245,8 +245,8 @@ print(list(irange(10, 5)))
|
|
245
245
|
|
246
246
|
Output:
|
247
247
|
```py
|
248
|
-
<generator object chr_range at
|
249
|
-
<generator object chr_range at
|
248
|
+
<generator object chr_range at 0x730b2b89d0>
|
249
|
+
<generator object chr_range at 0x730b2b89d0>
|
250
250
|
['a', 'k', 'u']
|
251
251
|
[1, 2, 3, 4, 5, 6]
|
252
252
|
[10, 9, 8, 7, 6]
|
@@ -273,7 +273,7 @@ print(list(batchmaker(s)))
|
|
273
273
|
|
274
274
|
Output:
|
275
275
|
```py
|
276
|
-
<generator object batchmaker at
|
276
|
+
<generator object batchmaker at 0x730b2e4280>
|
277
277
|
['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 4 dan 10 dan j dan Z saja.', 'Urutan 4 dan 10 dan j dan K saja.']
|
278
278
|
```
|
279
279
|
|
@@ -327,38 +327,30 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
327
327
|
|
328
328
|
Output:
|
329
329
|
```py
|
330
|
-
<generator object batch_calculate at
|
330
|
+
<generator object batch_calculate at 0x730b25f100>
|
331
331
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('2 m ** 1', <Quantity(2, 'meter')>), ('2 m ** 2', <Quantity(2, 'meter ** 2')>), ('3 m ** 1', <Quantity(3, 'meter')>), ('3 m ** 2', <Quantity(3, 'meter ** 2')>), ('4 m ** 1', <Quantity(4, 'meter')>), ('4 m ** 2', <Quantity(4, 'meter ** 2')>), ('5 m ** 1', <Quantity(5, 'meter')>), ('5 m ** 2', <Quantity(5, 'meter ** 2')>), ('6 m ** 1', <Quantity(6, 'meter')>), ('6 m ** 2', <Quantity(6, 'meter ** 2')>), ('7 m ** 1', <Quantity(7, 'meter')>), ('7 m ** 2', <Quantity(7, 'meter ** 2')>), ('8 m ** 1', <Quantity(8, 'meter')>), ('8 m ** 2', <Quantity(8, 'meter ** 2')>), ('9 m ** 1', <Quantity(9, 'meter')>), ('9 m ** 2', <Quantity(9, 'meter ** 2')>)]
|
332
332
|
```
|
333
333
|
|
334
|
-
##
|
334
|
+
## int_to_int
|
335
335
|
|
336
|
-
`
|
336
|
+
`int_to_int(n)`
|
337
337
|
|
338
|
-
|
338
|
+
Fungsi ini sama seperti fungsi int().
|
339
|
+
fungsi ini dibuat hanya untuk keperluan pembuatan module semata.
|
339
340
|
|
340
341
|
```python
|
341
|
-
|
342
|
-
print(is_iterable(s))
|
343
|
-
|
344
|
-
l = [12,21,2,1]
|
345
|
-
print(is_iterable(l))
|
346
|
-
|
347
|
-
r = range(100)
|
348
|
-
print(is_iterable(r))
|
349
|
-
|
350
|
-
d = {'a':1, 'b':2}
|
351
|
-
print(is_iterable(d.values()))
|
342
|
+
print(int_to_int(7777))
|
352
343
|
```
|
353
344
|
|
354
345
|
Output:
|
355
346
|
```py
|
356
|
-
|
357
|
-
True
|
358
|
-
True
|
359
|
-
True
|
347
|
+
7777
|
360
348
|
```
|
361
349
|
|
350
|
+
## ienumerate
|
351
|
+
|
352
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x731029c4a0>)`
|
353
|
+
|
362
354
|
## print_to_last_line
|
363
355
|
|
364
356
|
`print_to_last_line(text: str, latest=1, clear=True)`
|
@@ -384,7 +376,7 @@ text_colorize("Print some text", color=colorama.Fore.RED)
|
|
384
376
|
|
385
377
|
## choices
|
386
378
|
|
387
|
-
`choices(iterator, title=None, prompt='', default=None)`
|
379
|
+
`choices(iterator, title=None, prompt='', default=None, key=<function int_to_int at 0x731029c4a0>)`
|
388
380
|
|
389
381
|
Memudahkan dalam membuat pilihan untuk user dalam tampilan console
|
390
382
|
|
@@ -420,7 +412,7 @@ print(list(chunk_array(arr, 5)))
|
|
420
412
|
|
421
413
|
Output:
|
422
414
|
```py
|
423
|
-
<generator object chunk_array at
|
415
|
+
<generator object chunk_array at 0x730b2f0540>
|
424
416
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
425
417
|
```
|
426
418
|
|
@@ -471,9 +463,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
471
463
|
|
472
464
|
Output:
|
473
465
|
```py
|
474
|
-
2024-04-30
|
475
|
-
2024-04-30
|
476
|
-
2024-04-30
|
466
|
+
2024-04-30 19:16:49.963720+07:00
|
467
|
+
2024-04-30 12:16:49.965180+00:00
|
468
|
+
2024-04-30 05:16:49.969415-07:00
|
477
469
|
```
|
478
470
|
|
479
471
|
## dict_first
|
@@ -555,6 +547,34 @@ var2 = '0'
|
|
555
547
|
exit_if_empty(var1, var2)
|
556
548
|
```
|
557
549
|
|
550
|
+
## is_iterable
|
551
|
+
|
552
|
+
`is_iterable(var, str_is_iterable=False)`
|
553
|
+
|
554
|
+
Mengecek apakah suatu variabel bisa dilakukan forloop atau tidak
|
555
|
+
|
556
|
+
```python
|
557
|
+
s = 'ini string'
|
558
|
+
print(is_iterable(s))
|
559
|
+
|
560
|
+
l = [12,21,2,1]
|
561
|
+
print(is_iterable(l))
|
562
|
+
|
563
|
+
r = range(100)
|
564
|
+
print(is_iterable(r))
|
565
|
+
|
566
|
+
d = {'a':1, 'b':2}
|
567
|
+
print(is_iterable(d.values()))
|
568
|
+
```
|
569
|
+
|
570
|
+
Output:
|
571
|
+
```py
|
572
|
+
False
|
573
|
+
True
|
574
|
+
True
|
575
|
+
True
|
576
|
+
```
|
577
|
+
|
558
578
|
## to_str
|
559
579
|
|
560
580
|
`to_str(value)`
|
@@ -591,7 +611,7 @@ print(filter_empty(var))
|
|
591
611
|
|
592
612
|
Output:
|
593
613
|
```py
|
594
|
-
<generator object filter_empty at
|
614
|
+
<generator object filter_empty at 0x730b25d6c0>
|
595
615
|
```
|
596
616
|
|
597
617
|
## get_by_index
|
@@ -637,8 +657,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
637
657
|
|
638
658
|
Output:
|
639
659
|
```py
|
640
|
-
<generator object get_class_method at
|
641
|
-
[<function ExampleGetClassMethod.a at
|
660
|
+
<generator object get_class_method at 0x730b25f3d0>
|
661
|
+
[<function ExampleGetClassMethod.a at 0x730b301080>, <function ExampleGetClassMethod.b at 0x730b301120>, <function ExampleGetClassMethod.c at 0x730b3011c0>, <function ExampleGetClassMethod.d at 0x730b301260>]
|
642
662
|
```
|
643
663
|
|
644
664
|
## get_filesize
|
@@ -936,7 +956,7 @@ print(ijoin(10, ' '))
|
|
936
956
|
|
937
957
|
Output:
|
938
958
|
```py
|
939
|
-
|
959
|
+
asd, weq, dfs, qweqw
|
940
960
|
,ini,path,seperti,url,
|
941
961
|
ini,path,seperti,url
|
942
962
|
<li>satu</li>
|
@@ -980,9 +1000,9 @@ Output:
|
|
980
1000
|
```py
|
981
1001
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
982
1002
|
[['Harga Emas Hari Ini - Selasa, 30 April 2024'],
|
983
|
-
['Spot Emas USD↓2.
|
1003
|
+
['Spot Emas USD↓2.311,01 (-33,53) / oz',
|
984
1004
|
'Kurs IDR↑16.249,00 (+27,00) / USD',
|
985
|
-
'Emas IDR↓1.
|
1005
|
+
'Emas IDR↓1.207.312 (-15.481) / gr'],
|
986
1006
|
['LM Antam (Jual)1.325.000 / gr', 'LM Antam (Beli)1.221.000 / gr']],
|
987
1007
|
[['Harga Emas Hari Ini'],
|
988
1008
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
@@ -1020,10 +1040,10 @@ Output:
|
|
1020
1040
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1021
1041
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1022
1042
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1023
|
-
['Ounce\xa0(oz)', '2.
|
1024
|
-
['Gram\xa0(gr)', '74,
|
1025
|
-
['Kilogram\xa0(kg)', '74.
|
1026
|
-
['Update harga emas :30 April 2024, pukul
|
1043
|
+
['Ounce\xa0(oz)', '2.311,01 (-33,53)', '16.249,00 (+27,00)', '37.551.601'],
|
1044
|
+
['Gram\xa0(gr)', '74,30', '16.249,00', '1.207.312 (-15.481)'],
|
1045
|
+
['Kilogram\xa0(kg)', '74.300,70', '16.249,00', '1.207.312.024'],
|
1046
|
+
['Update harga emas :30 April 2024, pukul 19:16Update kurs :30 April 2024, '
|
1027
1047
|
'pukul 13:10']],
|
1028
1048
|
[['Gram', 'UBS Gold 99.99%'],
|
1029
1049
|
['Jual', 'Beli'],
|
@@ -1045,36 +1065,36 @@ Output:
|
|
1045
1065
|
['Unit', 'USD', 'IDR'],
|
1046
1066
|
['Angka', '+/-', 'Angka', '+/-'],
|
1047
1067
|
['Hari Ini', 'Kurs', '', '', '16.222', '+27+0,17%'],
|
1048
|
-
['oz', '2.344,54', '-
|
1049
|
-
['gr', '75,38', '-
|
1068
|
+
['oz', '2.344,54', '-33,53-1,43%', '38.033.128', '-481.526-1,27%'],
|
1069
|
+
['gr', '75,38', '-1,08-1,43%', '1.222.793', '-15.481-1,27%'],
|
1050
1070
|
['30 Hari', 'Kurs', '', '', '15.853', '+396+2,50%'],
|
1051
|
-
['oz', '2.232,75', '+
|
1052
|
-
['gr', '71,78', '+2,
|
1071
|
+
['oz', '2.232,75', '+78,26+3,51%', '35.395.786', '+2.155.816+6,09%'],
|
1072
|
+
['gr', '71,78', '+2,52+3,51%', '1.138.001', '+69.311+6,09%'],
|
1053
1073
|
['2 Bulan', 'Kurs', '', '', '15.715', '+534+3,40%'],
|
1054
|
-
['oz', '2.081,20', '+
|
1055
|
-
['gr', '66,91', '+7,
|
1074
|
+
['oz', '2.081,20', '+229,81+11,04%', '32.706.058', '+4.845.543+14,82%'],
|
1075
|
+
['gr', '66,91', '+7,39+11,04', '1.051.524', '+155.788+14,82%'],
|
1056
1076
|
['6 Bulan', 'Kurs', '', '', '15.946', '+303+1,90%'],
|
1057
|
-
['oz', '1.981,84', '+
|
1058
|
-
['gr', '63,72', '+10,
|
1077
|
+
['oz', '1.981,84', '+329,17+16,61%', '31.602.421', '+5.949.181+18,83%'],
|
1078
|
+
['gr', '63,72', '+10,58+16,61%', '1.016.041', '+191.271+18,83%'],
|
1059
1079
|
['1 Tahun', 'Kurs', '', '', '15.731', '+518+3,29%'],
|
1060
|
-
['oz', '1.823,86', '+
|
1061
|
-
['gr', '58,64', '+15,
|
1080
|
+
['oz', '1.823,86', '+487,15+26,71%', '28.691.142', '+8.860.460+30,88%'],
|
1081
|
+
['gr', '58,64', '+15,66+26,71%', '922.442', '+284.870+30,88%'],
|
1062
1082
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.831+12,70%'],
|
1063
|
-
['oz', '1.896,95', '+
|
1064
|
-
['gr', '60,99', '+13,
|
1083
|
+
['oz', '1.896,95', '+414,06+21,83%', '27.350.225', '+10.201.376+37,30%'],
|
1084
|
+
['gr', '60,99', '+13,31+21,83%', '879.330', '+327.982+37,30%'],
|
1065
1085
|
['3 Tahun', 'Kurs', '', '', '14.468', '+1.781+12,31%'],
|
1066
|
-
['oz', '1.768,91', '+
|
1067
|
-
['gr', '56,87', '+17,
|
1086
|
+
['oz', '1.768,91', '+542,10+30,65%', '25.592.590', '+11.959.012+46,73%'],
|
1087
|
+
['gr', '56,87', '+17,43+30,65%', '822.821', '+384.491+46,73%'],
|
1068
1088
|
['5 Tahun', 'Kurs', '', '', '14.245', '+2.004+14,07%'],
|
1069
|
-
['oz', '1.270,94', '+1.
|
1070
|
-
['gr', '40,86', '+33,
|
1089
|
+
['oz', '1.270,94', '+1.040,07+81,83%', '18.104.540', '+19.447.061+107,42%'],
|
1090
|
+
['gr', '40,86', '+33,44+81,83%', '582.074', '+625.238+107,42%']])
|
1071
1091
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1072
1092
|
[[''],
|
1073
1093
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1074
|
-
['USD', '74,
|
1075
|
-
['KURS', '16.
|
1076
|
-
['IDR', '1.
|
1077
|
-
['Selasa, 30 April 2024
|
1094
|
+
['USD', '74,30↓', '-1,08-1,43%'],
|
1095
|
+
['KURS', '16.243,45↑', '+29,95+0,18%'],
|
1096
|
+
['IDR', '1.206.899,66↓', '-15.253,08-1,25%'],
|
1097
|
+
['Selasa, 30 April 2024 19:16']],
|
1078
1098
|
[[''],
|
1079
1099
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1080
1100
|
'Hari Ini',
|
@@ -1085,19 +1105,19 @@ Output:
|
|
1085
1105
|
'']],
|
1086
1106
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1087
1107
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1088
|
-
['USD', '75,38', '74,
|
1089
|
-
['KURS', '16.213,50', '16.213,50 - 16.
|
1090
|
-
['IDR', '1.222.152,74', '1.
|
1108
|
+
['USD', '75,38', '74,30 - 75,38', '74,84'],
|
1109
|
+
['KURS', '16.213,50', '16.213,50 - 16.243,45', '16.228,48'],
|
1110
|
+
['IDR', '1.222.152,74', '1.206.899,66 - 1.222.152,74', '1.214.526,20'],
|
1091
1111
|
[''],
|
1092
1112
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1093
|
-
['USD', '66,32', '64,07 - 77,14', '+
|
1094
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1095
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1113
|
+
['USD', '66,32', '64,07 - 77,14', '+7,98 (12,03%)'],
|
1114
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+853,35 (5,54%)'],
|
1115
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+186.170,13 (18,24%)'],
|
1096
1116
|
[''],
|
1097
1117
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1098
|
-
['USD', '63,97', '58,43 - 77,14', '+10,
|
1099
|
-
['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.
|
1100
|
-
['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+
|
1118
|
+
['USD', '63,97', '58,43 - 77,14', '+10,33 (16,15%)'],
|
1119
|
+
['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.569,90 (10,70%)'],
|
1120
|
+
['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+268.189,93 (28,57%)']])
|
1101
1121
|
```
|
1102
1122
|
|
1103
1123
|
## iloads
|
@@ -1134,6 +1154,54 @@ input_char("Input char : ", default='Y')
|
|
1134
1154
|
input_char("Input Char without print : ", echo_char=False)
|
1135
1155
|
```
|
1136
1156
|
|
1157
|
+
## int_to_bin
|
1158
|
+
|
1159
|
+
`int_to_bin(n)`
|
1160
|
+
|
1161
|
+
Fungsi ini sama seperti fungsi bin().
|
1162
|
+
fungsi ini dibuat hanya untuk keperluan pembuatan module semata.
|
1163
|
+
|
1164
|
+
```python
|
1165
|
+
print(int_to_bin(7777))
|
1166
|
+
```
|
1167
|
+
|
1168
|
+
Output:
|
1169
|
+
```py
|
1170
|
+
0b1111001100001
|
1171
|
+
```
|
1172
|
+
|
1173
|
+
## int_to_hex
|
1174
|
+
|
1175
|
+
`int_to_hex(n)`
|
1176
|
+
|
1177
|
+
Fungsi ini sama seperti fungsi hex().
|
1178
|
+
fungsi ini dibuat hanya untuk keperluan pembuatan module semata.
|
1179
|
+
|
1180
|
+
```python
|
1181
|
+
print(int_to_hex(7777))
|
1182
|
+
```
|
1183
|
+
|
1184
|
+
Output:
|
1185
|
+
```py
|
1186
|
+
0x1e61
|
1187
|
+
```
|
1188
|
+
|
1189
|
+
## int_to_oct
|
1190
|
+
|
1191
|
+
`int_to_oct(n)`
|
1192
|
+
|
1193
|
+
Fungsi ini sama seperti fungsi oct().
|
1194
|
+
fungsi ini dibuat hanya untuk keperluan pembuatan module semata.
|
1195
|
+
|
1196
|
+
```python
|
1197
|
+
print(int_to_oct(7777))
|
1198
|
+
```
|
1199
|
+
|
1200
|
+
Output:
|
1201
|
+
```py
|
1202
|
+
0o17141
|
1203
|
+
```
|
1204
|
+
|
1137
1205
|
## is_valid_url
|
1138
1206
|
|
1139
1207
|
`is_valid_url(path)`
|
@@ -1191,7 +1259,7 @@ Output:
|
|
1191
1259
|
```py
|
1192
1260
|
8
|
1193
1261
|
['mana', 'aja']
|
1194
|
-
[<Element a at
|
1262
|
+
[<Element a at 0x730b2faad0>, <Element a at 0x730b339180>, <Element a at 0x730b339220>, <Element a at 0x730b339270>, <Element a at 0x730b3392c0>, <Element a at 0x730b339310>, <Element a at 0x730b339360>, <Element a at 0x730b3393b0>, <Element a at 0x730b339400>, <Element a at 0x730b339450>, <Element a at 0x730b3394a0>, <Element a at 0x730b3394f0>, <Element a at 0x730b339540>, <Element a at 0x730b339590>, <Element a at 0x730b3395e0>, <Element a at 0x730b339630>, <Element a at 0x730b339680>, <Element a at 0x730b3396d0>]
|
1195
1263
|
False
|
1196
1264
|
```
|
1197
1265
|
|
@@ -1253,7 +1321,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1253
1321
|
|
1254
1322
|
Output:
|
1255
1323
|
```py
|
1256
|
-
<generator object iscandir at
|
1324
|
+
<generator object iscandir at 0x730b2f0740>
|
1257
1325
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1258
1326
|
```
|
1259
1327
|
|
@@ -1290,68 +1358,73 @@ Output:
|
|
1290
1358
|
'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1291
1359
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1292
1360
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1293
|
-
'function': {'avg': <function avg at
|
1294
|
-
'get_filemtime': <function get_filemtime at
|
1295
|
-
'print_colorize': <function print_colorize at
|
1296
|
-
'print_log': <function print_log at
|
1297
|
-
'console_run': <function console_run at
|
1298
|
-
'auto_reload': <function auto_reload at
|
1299
|
-
'basename': <function basename at
|
1300
|
-
'chr_to_int': <function chr_to_int at
|
1301
|
-
'int_to_chr': <function int_to_chr at
|
1302
|
-
'irange': <function irange at
|
1303
|
-
'batchmaker': <function batchmaker at
|
1304
|
-
'calculate': <function calculate at
|
1305
|
-
'batch_calculate': <function batch_calculate at
|
1306
|
-
'
|
1307
|
-
'
|
1308
|
-
'
|
1309
|
-
'
|
1310
|
-
'
|
1311
|
-
'
|
1312
|
-
'
|
1313
|
-
'
|
1314
|
-
'
|
1315
|
-
'
|
1316
|
-
'
|
1317
|
-
'
|
1318
|
-
'
|
1319
|
-
'
|
1320
|
-
'
|
1321
|
-
'
|
1322
|
-
'
|
1323
|
-
'
|
1324
|
-
'
|
1325
|
-
'
|
1326
|
-
'
|
1327
|
-
'
|
1328
|
-
'
|
1329
|
-
'
|
1330
|
-
'
|
1331
|
-
'
|
1332
|
-
'
|
1333
|
-
'
|
1334
|
-
'
|
1335
|
-
'
|
1336
|
-
'
|
1337
|
-
'
|
1338
|
-
'
|
1339
|
-
'
|
1340
|
-
'
|
1341
|
-
'
|
1342
|
-
'
|
1343
|
-
'
|
1344
|
-
'
|
1345
|
-
'
|
1346
|
-
'
|
1347
|
-
'
|
1348
|
-
'
|
1349
|
-
'
|
1350
|
-
'
|
1351
|
-
'
|
1352
|
-
'
|
1361
|
+
'function': {'avg': <function avg at 0x7315236700>,
|
1362
|
+
'get_filemtime': <function get_filemtime at 0x73102ab2e0>,
|
1363
|
+
'print_colorize': <function print_colorize at 0x73102ab4c0>,
|
1364
|
+
'print_log': <function print_log at 0x7310532b60>,
|
1365
|
+
'console_run': <function console_run at 0x73102ab380>,
|
1366
|
+
'auto_reload': <function auto_reload at 0x7310463ec0>,
|
1367
|
+
'basename': <function basename at 0x73102ab240>,
|
1368
|
+
'chr_to_int': <function chr_to_int at 0x73102aba60>,
|
1369
|
+
'int_to_chr': <function int_to_chr at 0x73102abb00>,
|
1370
|
+
'irange': <function irange at 0x73102abd80>,
|
1371
|
+
'batchmaker': <function batchmaker at 0x73102ab740>,
|
1372
|
+
'calculate': <function calculate at 0x731029c2c0>,
|
1373
|
+
'batch_calculate': <function batch_calculate at 0x73102ab600>,
|
1374
|
+
'int_to_int': <function int_to_int at 0x731029c4a0>,
|
1375
|
+
'ienumerate': <function ienumerate at 0x731029c360>,
|
1376
|
+
'print_to_last_line': <function print_to_last_line at 0x731029c400>,
|
1377
|
+
'text_colorize': <function text_colorize at 0x731029c540>,
|
1378
|
+
'choices': <function choices at 0x73102ab6a0>,
|
1379
|
+
'chunk_array': <function chunk_array at 0x73102ab7e0>,
|
1380
|
+
'create_folder': <function create_folder at 0x731029c5e0>,
|
1381
|
+
'datetime_from_string': <function datetime_from_string at 0x731029c680>,
|
1382
|
+
'datetime_now': <function datetime_now at 0x731029c720>,
|
1383
|
+
'dict_first': <function dict_first at 0x731029c7c0>,
|
1384
|
+
'dirname': <function dirname at 0x731029c860>,
|
1385
|
+
'is_empty': <function is_empty at 0x731029ca40>,
|
1386
|
+
'exit_if_empty': <function exit_if_empty at 0x731029c900>,
|
1387
|
+
'is_iterable': <function is_iterable at 0x731029cb80>,
|
1388
|
+
'to_str': <function to_str at 0x731029cc20>,
|
1389
|
+
'filter_empty': <function filter_empty at 0x731029c9a0>,
|
1390
|
+
'get_by_index': <function get_by_index at 0x731029cae0>,
|
1391
|
+
'get_class_method': <function get_class_method at 0x731029ccc0>,
|
1392
|
+
'get_filesize': <function get_filesize at 0x731029ce00>,
|
1393
|
+
'github_pull': <function github_pull at 0x731029cea0>,
|
1394
|
+
'github_push': <function github_push at 0x731029d080>,
|
1395
|
+
'github_user': <function github_user at 0x731029d120>,
|
1396
|
+
'iargv': <function iargv at 0x731029cfe0>,
|
1397
|
+
'idumps_html': <function idumps_html at 0x731029d3a0>,
|
1398
|
+
'idumps': <function idumps at 0x731029d260>,
|
1399
|
+
'ienv': <function ienv at 0x731029d8a0>,
|
1400
|
+
'iexec': <function iexec at 0x7310379bc0>,
|
1401
|
+
'ijoin': <function ijoin at 0x7310379da0>,
|
1402
|
+
'iloads_html': <function iloads_html at 0x7310379f80>,
|
1403
|
+
'iloads': <function iloads at 0x7310379d00>,
|
1404
|
+
'input_char': <function input_char at 0x7310379ee0>,
|
1405
|
+
'int_to_bin': <function int_to_bin at 0x731037a020>,
|
1406
|
+
'int_to_hex': <function int_to_hex at 0x731037a0c0>,
|
1407
|
+
'int_to_oct': <function int_to_oct at 0x731037a160>,
|
1408
|
+
'is_valid_url': <function is_valid_url at 0x731037a340>,
|
1409
|
+
'iopen': <function iopen at 0x73101ae7a0>,
|
1410
|
+
'iprint': <function iprint at 0x731037a2a0>,
|
1411
|
+
'ireplace': <function ireplace at 0x731037a660>,
|
1412
|
+
'iscandir': <function iscandir at 0x7310265ee0>,
|
1413
|
+
'isplit': <function isplit at 0x7310265f80>,
|
1414
|
+
'ivars': <function ivars at 0x7310266020>,
|
1415
|
+
'log': <function log at 0x73102660c0>,
|
1416
|
+
'password_generator': <function password_generator at 0x7310266160>,
|
1417
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x73102662a0>,
|
1418
|
+
'poetry_publish': <function poetry_publish at 0x7310266340>,
|
1419
|
+
'poetry_update_version': <function poetry_update_version at 0x7310266480>,
|
1420
|
+
'print_dir': <function print_dir at 0x7310266660>,
|
1421
|
+
'random_bool': <function random_bool at 0x7310266700>,
|
1422
|
+
'restart': <function restart at 0x73102667a0>,
|
1423
|
+
'set_timeout': <function set_timeout at 0x7310266840>,
|
1424
|
+
'sets_ordered': <function sets_ordered at 0x73102668e0>,
|
1425
|
+
'str_cmp': <function str_cmp at 0x7310266980>},
|
1353
1426
|
'variable': {'LINUX': True,
|
1354
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1427
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7310fac810>,
|
1355
1428
|
'WINDOWS': False},
|
1356
1429
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1357
1430
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1425,7 +1498,7 @@ print(password_generator())
|
|
1425
1498
|
|
1426
1499
|
Output:
|
1427
1500
|
```py
|
1428
|
-
|
1501
|
+
~N5#gon~
|
1429
1502
|
```
|
1430
1503
|
|
1431
1504
|
## pip_freeze_without_version
|
@@ -1483,7 +1556,7 @@ Output:
|
|
1483
1556
|
__enter__ : https:/www.google.com
|
1484
1557
|
__fspath__ : https:/www.google.com
|
1485
1558
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1486
|
-
__hash__ :
|
1559
|
+
__hash__ : -3740726322500476650
|
1487
1560
|
__init__ : None
|
1488
1561
|
__init_subclass__ : None
|
1489
1562
|
__module__ : pathlib
|
@@ -1496,8 +1569,8 @@ Output:
|
|
1496
1569
|
_cached_cparts : ['https:', 'www.google.com']
|
1497
1570
|
_cparts : ['https:', 'www.google.com']
|
1498
1571
|
_drv :
|
1499
|
-
_flavour : <pathlib._PosixFlavour object at
|
1500
|
-
_hash :
|
1572
|
+
_flavour : <pathlib._PosixFlavour object at 0x7318530b90>
|
1573
|
+
_hash : -3740726322500476650
|
1501
1574
|
_parts : ['https:', 'www.google.com']
|
1502
1575
|
_root :
|
1503
1576
|
_str : https:/www.google.com
|
@@ -1519,7 +1592,7 @@ Output:
|
|
1519
1592
|
is_reserved : False
|
1520
1593
|
is_socket : False
|
1521
1594
|
is_symlink : False
|
1522
|
-
iterdir : <generator object Path.iterdir at
|
1595
|
+
iterdir : <generator object Path.iterdir at 0x730b2ee7a0>
|
1523
1596
|
joinpath : https:/www.google.com
|
1524
1597
|
name : www.google.com
|
1525
1598
|
parent : https:
|
@@ -1547,7 +1620,7 @@ print(random_bool())
|
|
1547
1620
|
|
1548
1621
|
Output:
|
1549
1622
|
```py
|
1550
|
-
|
1623
|
+
False
|
1551
1624
|
```
|
1552
1625
|
|
1553
1626
|
## restart
|
@@ -1573,7 +1646,7 @@ x.cancel()
|
|
1573
1646
|
|
1574
1647
|
Output:
|
1575
1648
|
```py
|
1576
|
-
<Timer(Thread-2, started
|
1649
|
+
<Timer(Thread-2, started 494080605424)>
|
1577
1650
|
menghentikan timeout 7
|
1578
1651
|
```
|
1579
1652
|
|
@@ -1591,7 +1664,7 @@ print(list(sets_ordered(array)))
|
|
1591
1664
|
|
1592
1665
|
Output:
|
1593
1666
|
```py
|
1594
|
-
<generator object sets_ordered at
|
1667
|
+
<generator object sets_ordered at 0x730b314e10>
|
1595
1668
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1596
1669
|
```
|
1597
1670
|
|
@@ -1666,7 +1739,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1666
1739
|
|
1667
1740
|
Output:
|
1668
1741
|
```py
|
1669
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1742
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x730b314860>,
|
1670
1743
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1671
1744
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1672
1745
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|