pypipr 1.0.117__py3-none-any.whl → 1.0.119__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 +3 -0
- pypipr/bin_to_int.py +12 -0
- pypipr/choices.py +1 -0
- pypipr/hex_to_int.py +12 -0
- pypipr/oct_to_int.py +12 -0
- {pypipr-1.0.117.dist-info → pypipr-1.0.119.dist-info}/METADATA +230 -146
- {pypipr-1.0.117.dist-info → pypipr-1.0.119.dist-info}/RECORD +9 -6
- {pypipr-1.0.117.dist-info → pypipr-1.0.119.dist-info}/WHEEL +0 -0
- {pypipr-1.0.117.dist-info → pypipr-1.0.119.dist-info}/entry_points.txt +0 -0
pypipr/__init__.py
CHANGED
@@ -10,6 +10,7 @@ from .avg import avg
|
|
10
10
|
from .basename import basename
|
11
11
|
from .batch_calculate import batch_calculate
|
12
12
|
from .batchmaker import batchmaker
|
13
|
+
from .bin_to_int import bin_to_int
|
13
14
|
from .calculate import calculate
|
14
15
|
from .choices import choices
|
15
16
|
from .chr_to_int import chr_to_int
|
@@ -29,6 +30,7 @@ from .get_filesize import get_filesize
|
|
29
30
|
from .github_pull import github_pull
|
30
31
|
from .github_push import github_push
|
31
32
|
from .github_user import github_user
|
33
|
+
from .hex_to_int import hex_to_int
|
32
34
|
from .iargv import iargv
|
33
35
|
from .idumps import idumps
|
34
36
|
from .idumps_html import idumps_html
|
@@ -55,6 +57,7 @@ from .iscandir import iscandir
|
|
55
57
|
from .isplit import isplit
|
56
58
|
from .ivars import ivars
|
57
59
|
from .log import log
|
60
|
+
from .oct_to_int import oct_to_int
|
58
61
|
from .password_generator import password_generator
|
59
62
|
from .pip_freeze_without_version import pip_freeze_without_version
|
60
63
|
from .poetry_publish import poetry_publish
|
pypipr/bin_to_int.py
ADDED
pypipr/choices.py
CHANGED
pypipr/hex_to_int.py
ADDED
pypipr/oct_to_int.py
ADDED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.119
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -250,8 +250,8 @@ iprint(irange("z", "a", 4))
|
|
250
250
|
|
251
251
|
Output:
|
252
252
|
```py
|
253
|
-
<generator object int_range at
|
254
|
-
<generator object int_range at
|
253
|
+
<generator object int_range at 0x74077c8540>
|
254
|
+
<generator object int_range at 0x74077c8540>
|
255
255
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
256
256
|
[2, 5, 8]
|
257
257
|
[2, 5, 8]
|
@@ -283,7 +283,7 @@ print(list(batchmaker(s)))
|
|
283
283
|
|
284
284
|
Output:
|
285
285
|
```py
|
286
|
-
<generator object batchmaker at
|
286
|
+
<generator object batchmaker at 0x74077bc3a0>
|
287
287
|
['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.']
|
288
288
|
```
|
289
289
|
|
@@ -337,10 +337,26 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
337
337
|
|
338
338
|
Output:
|
339
339
|
```py
|
340
|
-
<generator object batch_calculate at
|
340
|
+
<generator object batch_calculate at 0x740773f010>
|
341
341
|
[('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')>)]
|
342
342
|
```
|
343
343
|
|
344
|
+
## bin_to_int
|
345
|
+
|
346
|
+
`bin_to_int(n)`
|
347
|
+
|
348
|
+
Fungsi ini berguna untuk mengubah angka binary
|
349
|
+
menjadi angka integer.
|
350
|
+
|
351
|
+
```python
|
352
|
+
print(bin_to_int(bin(244)))
|
353
|
+
```
|
354
|
+
|
355
|
+
Output:
|
356
|
+
```py
|
357
|
+
244
|
358
|
+
```
|
359
|
+
|
344
360
|
## is_empty
|
345
361
|
|
346
362
|
`is_empty(variable, empty=[None, False, 0, 0, '0', '', '-0', '\n', '\t', set(), {}, [], ()])`
|
@@ -449,7 +465,7 @@ print(list(chunk_array(arr, 5)))
|
|
449
465
|
|
450
466
|
Output:
|
451
467
|
```py
|
452
|
-
<generator object chunk_array at
|
468
|
+
<generator object chunk_array at 0x74077c8540>
|
453
469
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
454
470
|
```
|
455
471
|
|
@@ -500,9 +516,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
500
516
|
|
501
517
|
Output:
|
502
518
|
```py
|
503
|
-
2024-05-01
|
504
|
-
2024-05-01
|
505
|
-
2024-04-30
|
519
|
+
2024-05-01 09:48:24.914561+07:00
|
520
|
+
2024-05-01 02:48:24.915471+00:00
|
521
|
+
2024-04-30 19:48:24.917282-07:00
|
506
522
|
```
|
507
523
|
|
508
524
|
## dict_first
|
@@ -608,7 +624,7 @@ iprint(filter_empty(var))
|
|
608
624
|
|
609
625
|
Output:
|
610
626
|
```py
|
611
|
-
<generator object filter_empty at
|
627
|
+
<generator object filter_empty at 0x740773d5d0>
|
612
628
|
[1, '0', True, {}, ['eee']]
|
613
629
|
```
|
614
630
|
|
@@ -638,8 +654,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
638
654
|
|
639
655
|
Output:
|
640
656
|
```py
|
641
|
-
<generator object get_class_method at
|
642
|
-
[<function ExampleGetClassMethod.a at
|
657
|
+
<generator object get_class_method at 0x740773f2e0>
|
658
|
+
[<function ExampleGetClassMethod.a at 0x74077e1300>, <function ExampleGetClassMethod.b at 0x74077e1620>, <function ExampleGetClassMethod.c at 0x74077e14e0>, <function ExampleGetClassMethod.d at 0x74077e16c0>]
|
643
659
|
```
|
644
660
|
|
645
661
|
## get_filesize
|
@@ -688,6 +704,22 @@ menginput nya setiap saat.
|
|
688
704
|
github_user('my@emil.com', 'MyName')
|
689
705
|
```
|
690
706
|
|
707
|
+
## hex_to_int
|
708
|
+
|
709
|
+
`hex_to_int(n)`
|
710
|
+
|
711
|
+
Fungsi ini berguna untuk mengubah angka hexadecimal
|
712
|
+
menjadi angka integer.
|
713
|
+
|
714
|
+
```python
|
715
|
+
print(hex_to_int(hex(244)))
|
716
|
+
```
|
717
|
+
|
718
|
+
Output:
|
719
|
+
```py
|
720
|
+
244
|
721
|
+
```
|
722
|
+
|
691
723
|
## iargv
|
692
724
|
|
693
725
|
`iargv(key: int, cast=None, on_error=None)`
|
@@ -893,7 +925,7 @@ Output:
|
|
893
925
|
|
894
926
|
## ienumerate
|
895
927
|
|
896
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
928
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x740fd21ee0>)`
|
897
929
|
|
898
930
|
meningkatkan fungsi enumerate() pada python
|
899
931
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -906,7 +938,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
906
938
|
|
907
939
|
Output:
|
908
940
|
```py
|
909
|
-
<generator object ienumerate at
|
941
|
+
<generator object ienumerate at 0x740773f3d0>
|
910
942
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
911
943
|
```
|
912
944
|
|
@@ -973,7 +1005,7 @@ print(ijoin(10, ' '))
|
|
973
1005
|
|
974
1006
|
Output:
|
975
1007
|
```py
|
976
|
-
dfs,
|
1008
|
+
qweqw, dfs, weq, asd
|
977
1009
|
,ini,path,seperti,url,
|
978
1010
|
ini,path,seperti,url
|
979
1011
|
<li>satu</li>
|
@@ -1019,50 +1051,83 @@ Output:
|
|
1019
1051
|
```py
|
1020
1052
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1021
1053
|
[['Harga Emas Hari Ini - Rabu, 01 Mei 2024'],
|
1022
|
-
['Spot Emas USD↓2.288,
|
1054
|
+
['Spot Emas USD↓2.288,05 (-7,97) / oz',
|
1023
1055
|
'Kurs IDR16.249,00 / USD',
|
1024
|
-
'Emas IDR↓1.195.
|
1025
|
-
['LM Antam (Jual)1.
|
1056
|
+
'Emas IDR↓1.195.317 (-4.164) / gr'],
|
1057
|
+
['LM Antam (Jual)↓1.310.000 (-15.000) / gr',
|
1058
|
+
'LM Antam (Beli)↓1.204.000 (-17.000) / gr']],
|
1026
1059
|
[['Harga Emas Hari Ini'],
|
1027
1060
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1028
1061
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1029
1062
|
['1000',
|
1030
|
-
'1.
|
1031
|
-
'1.
|
1063
|
+
'1.251 (-15)',
|
1064
|
+
'1.250.600 (-15.000)',
|
1032
1065
|
'1.043.040 (+8.200)',
|
1033
1066
|
'1.043.040.000 (+8.200.000)'],
|
1034
1067
|
['500',
|
1035
|
-
'2.
|
1036
|
-
'1.
|
1068
|
+
'2.501 (-30)',
|
1069
|
+
'1.250.640 (-15.000)',
|
1037
1070
|
'1.043.082 (+8.200)',
|
1038
1071
|
'521.541.000 (+4.100.000)'],
|
1039
1072
|
['250',
|
1040
|
-
'5.
|
1041
|
-
'1.
|
1073
|
+
'5.004 (-60)',
|
1074
|
+
'1.251.060 (-15.000)',
|
1042
1075
|
'1.043.512 (+8.200)',
|
1043
1076
|
'260.878.000 (+2.050.000)'],
|
1044
1077
|
['100',
|
1045
|
-
'12.
|
1046
|
-
'1.
|
1078
|
+
'12.521 (-150)',
|
1079
|
+
'1.252.120 (-15.000)',
|
1047
1080
|
'1.044.600 (+8.200)',
|
1048
1081
|
'104.460.000 (+820.000)'],
|
1049
|
-
['50',
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
['
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
'
|
1082
|
+
['50',
|
1083
|
+
'25.058 (-300)',
|
1084
|
+
'1.252.900 (-15.000)',
|
1085
|
+
'1.045.400 (+8.200)',
|
1086
|
+
'52.270.000 (+410.000)'],
|
1087
|
+
['25',
|
1088
|
+
'50.179 (-600)',
|
1089
|
+
'1.254.480 (-15.000)',
|
1090
|
+
'1.047.040 (+8.200)',
|
1091
|
+
'26.176.000 (+205.000)'],
|
1092
|
+
['10',
|
1093
|
+
'125.950 (-1.500)',
|
1094
|
+
'1.259.500 (-15.000)',
|
1095
|
+
'1.052.200 (+8.200)',
|
1096
|
+
'10.522.000 (+82.000)'],
|
1097
|
+
['5',
|
1098
|
+
'253.000 (-3.000)',
|
1099
|
+
'1.265.000 (-15.000)',
|
1100
|
+
'1.057.800 (+8.200)',
|
1101
|
+
'5.289.000 (+41.000)'],
|
1102
|
+
['3',
|
1103
|
+
'423.889 (-5.000)',
|
1104
|
+
'1.271.667 (-15.000)',
|
1105
|
+
'1.064.667 (+8.000)',
|
1106
|
+
'3.194.000 (+24.000)'],
|
1107
|
+
['2',
|
1108
|
+
'640.000 (-7.500)',
|
1109
|
+
'1.280.000 (-15.000)',
|
1110
|
+
'1.073.500 (+8.500)',
|
1111
|
+
'2.147.000 (+17.000)'],
|
1112
|
+
['1',
|
1113
|
+
'1.310.000 (-15.000)',
|
1114
|
+
'1.310.000 (-15.000)',
|
1115
|
+
'1.104.000 (+8.000)',
|
1116
|
+
'1.104.000 (+8.000)'],
|
1117
|
+
['0.5',
|
1118
|
+
'2.820.000 (-30.000)',
|
1119
|
+
'1.410.000 (-15.000)',
|
1120
|
+
'1.208.000 (+8.000)',
|
1121
|
+
'604.000 (+4.000)'],
|
1122
|
+
['Update harga LM Antam :01 Mei 2024, pukul 08:20Harga pembelian kembali '
|
1123
|
+
':Rp. 1.204.000/gram (-17.000)',
|
1059
1124
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1060
1125
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1061
1126
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1062
|
-
['Ounce\xa0(oz)', '2.288,
|
1063
|
-
['Gram\xa0(gr)', '73,
|
1064
|
-
['Kilogram\xa0(kg)', '73.
|
1065
|
-
['Update harga emas :01 Mei 2024, pukul
|
1127
|
+
['Ounce\xa0(oz)', '2.288,05 (-7,97)', '16.249,00', '37.178.524'],
|
1128
|
+
['Gram\xa0(gr)', '73,56', '16.249,00', '1.195.317 (-4.164)'],
|
1129
|
+
['Kilogram\xa0(kg)', '73.562,52', '16.249,00', '1.195.317.319'],
|
1130
|
+
['Update harga emas :01 Mei 2024, pukul 09:48Update kurs :30 April 2024, '
|
1066
1131
|
'pukul 13:10']],
|
1067
1132
|
[['Gram', 'UBS Gold 99.99%'],
|
1068
1133
|
['Jual', 'Beli'],
|
@@ -1084,36 +1149,36 @@ Output:
|
|
1084
1149
|
['Unit', 'USD', 'IDR'],
|
1085
1150
|
['Angka', '+/-', 'Angka', '+/-'],
|
1086
1151
|
['Hari Ini', 'Kurs', '', '', '16.249', '%'],
|
1087
|
-
['oz', '2.296,02', '-7,
|
1088
|
-
['gr', '73,82', '-0,
|
1152
|
+
['oz', '2.296,02', '-7,97-0,35%', '37.308.029', '-129.505-0,35%'],
|
1153
|
+
['gr', '73,82', '-0,26-0,35%', '1.199.481', '-4.164-0,35%'],
|
1089
1154
|
['30 Hari', 'Kurs', '', '', '15.873', '+376+2,37%'],
|
1090
|
-
['oz', '2.239,34', '+
|
1091
|
-
['gr', '72,00', '+1,
|
1155
|
+
['oz', '2.239,34', '+48,71+2,18%', '35.545.044', '+1.633.481+4,60%'],
|
1156
|
+
['gr', '72,00', '+1,57+2,18%', '1.142.800', '+52.518+4,60%'],
|
1092
1157
|
['2 Bulan', 'Kurs', '', '', '15.715', '+534+3,40%'],
|
1093
|
-
['oz', '2.082,55', '+
|
1094
|
-
['gr', '66,96', '+6,
|
1158
|
+
['oz', '2.082,55', '+205,50+9,87%', '32.727.273', '+4.451.251+13,60%'],
|
1159
|
+
['gr', '66,96', '+6,61+9,87', '1.052.206', '+143.111+13,60%'],
|
1095
1160
|
['6 Bulan', 'Kurs', '', '', '15.861', '+388+2,45%'],
|
1096
|
-
['oz', '1.990,54', '+
|
1097
|
-
['gr', '64,00', '+9,
|
1161
|
+
['oz', '1.990,54', '+297,51+14,95%', '31.571.955', '+5.606.570+17,76%'],
|
1162
|
+
['gr', '64,00', '+9,57+14,95%', '1.015.062', '+180.255+17,76%'],
|
1098
1163
|
['1 Tahun', 'Kurs', '', '', '15.731', '+518+3,29%'],
|
1099
|
-
['oz', '1.823,86', '+464,
|
1100
|
-
['gr', '58,64', '+14,
|
1164
|
+
['oz', '1.823,86', '+464,19+25,45%', '28.691.142', '+8.487.383+29,58%'],
|
1165
|
+
['gr', '58,64', '+14,92+25,45%', '922.442', '+272.876+29,58%'],
|
1101
1166
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.831+12,70%'],
|
1102
|
-
['oz', '1.867,23', '+
|
1103
|
-
['gr', '60,03', '+13,
|
1167
|
+
['oz', '1.867,23', '+420,82+22,54%', '26.921.722', '+10.256.802+38,10%'],
|
1168
|
+
['gr', '60,03', '+13,53+22,54%', '865.553', '+329.764+38,10%'],
|
1104
1169
|
['3 Tahun', 'Kurs', '', '', '14.468', '+1.781+12,31%'],
|
1105
|
-
['oz', '1.768,91', '+519,
|
1106
|
-
['gr', '56,87', '+16,
|
1170
|
+
['oz', '1.768,91', '+519,14+29,35%', '25.592.590', '+11.585.935+45,27%'],
|
1171
|
+
['gr', '56,87', '+16,69+29,35%', '822.821', '+372.496+45,27%'],
|
1107
1172
|
['5 Tahun', 'Kurs', '', '', '14.282', '+1.967+13,77%'],
|
1108
|
-
['oz', '1.280,82', '+1.007,
|
1109
|
-
['gr', '41,18', '+32,
|
1173
|
+
['oz', '1.280,82', '+1.007,23+78,64%', '18.292.671', '+18.885.853+103,24%'],
|
1174
|
+
['gr', '41,18', '+32,38+78,64%', '588.123', '+607.194+103,24%']])
|
1110
1175
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1111
1176
|
[[''],
|
1112
1177
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1113
|
-
['USD', '73,
|
1114
|
-
['KURS', '16.
|
1115
|
-
['IDR', '1.196.
|
1116
|
-
['Rabu, 01 Mei 2024
|
1178
|
+
['USD', '73,56↓', '-0,26-0,35%'],
|
1179
|
+
['KURS', '16.265,05↑', '+4,05+0,02%'],
|
1180
|
+
['IDR', '1.196.498,00↓', '-3.868,81-0,32%'],
|
1181
|
+
['Rabu, 01 Mei 2024 09:48']],
|
1117
1182
|
[[''],
|
1118
1183
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1119
1184
|
'Hari Ini',
|
@@ -1124,19 +1189,19 @@ Output:
|
|
1124
1189
|
'']],
|
1125
1190
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1126
1191
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1127
|
-
['USD', '73,82', '73,
|
1128
|
-
['KURS', '16.261,00', '16.261,00 - 16.
|
1129
|
-
['IDR', '1.200.366,81', '1.196.
|
1192
|
+
['USD', '73,82', '73,56 - 73,82', '73,69'],
|
1193
|
+
['KURS', '16.261,00', '16.261,00 - 16.265,05', '16.263,03'],
|
1194
|
+
['IDR', '1.200.366,81', '1.196.498,00 - 1.200.366,81', '1.198.432,41'],
|
1130
1195
|
[''],
|
1131
1196
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1132
|
-
['USD', '66,32', '64,07 - 77,14', '+7,
|
1133
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1134
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1197
|
+
['USD', '66,32', '64,07 - 77,14', '+7,24 (10,92%)'],
|
1198
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+874,95 (5,69%)'],
|
1199
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.768,47 (17,22%)'],
|
1135
1200
|
[''],
|
1136
1201
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1137
|
-
['USD', '63,97', '58,43 - 77,14', '+9,
|
1138
|
-
['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.
|
1139
|
-
['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+
|
1202
|
+
['USD', '63,97', '58,43 - 77,14', '+9,59 (14,99%)'],
|
1203
|
+
['KURS', '14.673,55', '14.669,40 - 16.307,80', '+1.591,50 (10,85%)'],
|
1204
|
+
['IDR', '938.709,73', '912.925,68 - 1.256.829,06', '+257.788,27 (27,46%)']])
|
1140
1205
|
```
|
1141
1206
|
|
1142
1207
|
## iloads
|
@@ -1266,7 +1331,7 @@ Output:
|
|
1266
1331
|
```py
|
1267
1332
|
8
|
1268
1333
|
['mana', 'aja']
|
1269
|
-
[<Element a at
|
1334
|
+
[<Element a at 0x74077db390>, <Element a at 0x7407819310>, <Element a at 0x74078193b0>, <Element a at 0x7407819400>, <Element a at 0x7407819450>, <Element a at 0x74078194a0>, <Element a at 0x74078194f0>, <Element a at 0x7407819540>, <Element a at 0x7407819590>, <Element a at 0x74078195e0>, <Element a at 0x7407819630>, <Element a at 0x7407819680>, <Element a at 0x74078196d0>, <Element a at 0x7407819720>, <Element a at 0x7407819770>, <Element a at 0x74078197c0>, <Element a at 0x7407819810>, <Element a at 0x7407819860>]
|
1270
1335
|
False
|
1271
1336
|
```
|
1272
1337
|
|
@@ -1328,7 +1393,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1328
1393
|
|
1329
1394
|
Output:
|
1330
1395
|
```py
|
1331
|
-
<generator object iscandir at
|
1396
|
+
<generator object iscandir at 0x74077c8840>
|
1332
1397
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1333
1398
|
```
|
1334
1399
|
|
@@ -1365,73 +1430,76 @@ Output:
|
|
1365
1430
|
'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1366
1431
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1367
1432
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1368
|
-
'function': {'avg': <function avg at
|
1369
|
-
'get_filemtime': <function get_filemtime at
|
1370
|
-
'print_colorize': <function print_colorize at
|
1371
|
-
'print_log': <function print_log at
|
1372
|
-
'console_run': <function console_run at
|
1373
|
-
'auto_reload': <function auto_reload at
|
1374
|
-
'basename': <function basename at
|
1375
|
-
'chr_to_int': <function chr_to_int at
|
1376
|
-
'int_to_chr': <function int_to_chr at
|
1377
|
-
'irange': <function irange at
|
1378
|
-
'batchmaker': <function batchmaker at
|
1379
|
-
'calculate': <function calculate at
|
1380
|
-
'batch_calculate': <function batch_calculate at
|
1381
|
-
'
|
1382
|
-
'
|
1383
|
-
'
|
1384
|
-
'
|
1385
|
-
'
|
1386
|
-
'
|
1387
|
-
'
|
1388
|
-
'
|
1389
|
-
'
|
1390
|
-
'
|
1391
|
-
'
|
1392
|
-
'
|
1393
|
-
'
|
1394
|
-
'
|
1395
|
-
'
|
1396
|
-
'
|
1397
|
-
'
|
1398
|
-
'
|
1399
|
-
'
|
1400
|
-
'
|
1401
|
-
'
|
1402
|
-
'
|
1403
|
-
'
|
1404
|
-
'
|
1405
|
-
'
|
1406
|
-
'
|
1407
|
-
'
|
1408
|
-
'
|
1409
|
-
'
|
1410
|
-
'
|
1411
|
-
'
|
1412
|
-
'
|
1413
|
-
'
|
1414
|
-
'
|
1415
|
-
'
|
1416
|
-
'
|
1417
|
-
'
|
1418
|
-
'
|
1419
|
-
'
|
1420
|
-
'
|
1421
|
-
'
|
1422
|
-
'
|
1423
|
-
'
|
1424
|
-
'
|
1425
|
-
'
|
1426
|
-
'
|
1427
|
-
'
|
1428
|
-
'
|
1429
|
-
'
|
1430
|
-
'
|
1431
|
-
'
|
1432
|
-
'
|
1433
|
+
'function': {'avg': <function avg at 0x741857a700>,
|
1434
|
+
'get_filemtime': <function get_filemtime at 0x740fc4f2e0>,
|
1435
|
+
'print_colorize': <function print_colorize at 0x740fc4f4c0>,
|
1436
|
+
'print_log': <function print_log at 0x740fee6b60>,
|
1437
|
+
'console_run': <function console_run at 0x740fc4f380>,
|
1438
|
+
'auto_reload': <function auto_reload at 0x740fe0fec0>,
|
1439
|
+
'basename': <function basename at 0x740fc4f240>,
|
1440
|
+
'chr_to_int': <function chr_to_int at 0x740fc4fa60>,
|
1441
|
+
'int_to_chr': <function int_to_chr at 0x740fc4fb00>,
|
1442
|
+
'irange': <function irange at 0x740fc4fd80>,
|
1443
|
+
'batchmaker': <function batchmaker at 0x740fc4f740>,
|
1444
|
+
'calculate': <function calculate at 0x740fc382c0>,
|
1445
|
+
'batch_calculate': <function batch_calculate at 0x740fc4f600>,
|
1446
|
+
'bin_to_int': <function bin_to_int at 0x740fc4f6a0>,
|
1447
|
+
'is_empty': <function is_empty at 0x740fc38540>,
|
1448
|
+
'exit_if_empty': <function exit_if_empty at 0x740fc38400>,
|
1449
|
+
'input_char': <function input_char at 0x740fc384a0>,
|
1450
|
+
'get_by_index': <function get_by_index at 0x740fc385e0>,
|
1451
|
+
'choices': <function choices at 0x740fc387c0>,
|
1452
|
+
'chunk_array': <function chunk_array at 0x740fc38860>,
|
1453
|
+
'create_folder': <function create_folder at 0x740fc38900>,
|
1454
|
+
'datetime_from_string': <function datetime_from_string at 0x740fc389a0>,
|
1455
|
+
'datetime_now': <function datetime_now at 0x740fc38a40>,
|
1456
|
+
'dict_first': <function dict_first at 0x740fc38ae0>,
|
1457
|
+
'dirname': <function dirname at 0x740fc38b80>,
|
1458
|
+
'is_iterable': <function is_iterable at 0x740fc38d60>,
|
1459
|
+
'to_str': <function to_str at 0x740fc38e00>,
|
1460
|
+
'filter_empty': <function filter_empty at 0x740fc38c20>,
|
1461
|
+
'get_class_method': <function get_class_method at 0x740fc38cc0>,
|
1462
|
+
'get_filesize': <function get_filesize at 0x740fc38f40>,
|
1463
|
+
'github_pull': <function github_pull at 0x740fc38fe0>,
|
1464
|
+
'github_push': <function github_push at 0x740fc391c0>,
|
1465
|
+
'github_user': <function github_user at 0x740fc39260>,
|
1466
|
+
'hex_to_int': <function hex_to_int at 0x740fc39080>,
|
1467
|
+
'iargv': <function iargv at 0x740fc39300>,
|
1468
|
+
'idumps_html': <function idumps_html at 0x740fc39580>,
|
1469
|
+
'idumps': <function idumps at 0x740fc39440>,
|
1470
|
+
'int_to_int': <function int_to_int at 0x740fd21ee0>,
|
1471
|
+
'ienumerate': <function ienumerate at 0x740fc39a80>,
|
1472
|
+
'ienv': <function ienv at 0x740fd21da0>,
|
1473
|
+
'iexec': <function iexec at 0x740fd21f80>,
|
1474
|
+
'ijoin': <function ijoin at 0x740fd220c0>,
|
1475
|
+
'iloads_html': <function iloads_html at 0x740fd222a0>,
|
1476
|
+
'iloads': <function iloads at 0x740fd22020>,
|
1477
|
+
'int_to_bin': <function int_to_bin at 0x740fd22200>,
|
1478
|
+
'int_to_hex': <function int_to_hex at 0x740fd22340>,
|
1479
|
+
'int_to_oct': <function int_to_oct at 0x740fd223e0>,
|
1480
|
+
'is_valid_url': <function is_valid_url at 0x740fd225c0>,
|
1481
|
+
'iopen': <function iopen at 0x740fb0ea20>,
|
1482
|
+
'iprint': <function iprint at 0x740fd22520>,
|
1483
|
+
'ireplace': <function ireplace at 0x740fd228e0>,
|
1484
|
+
'iscandir': <function iscandir at 0x740fbc6160>,
|
1485
|
+
'isplit': <function isplit at 0x740fbc6200>,
|
1486
|
+
'ivars': <function ivars at 0x740fbc62a0>,
|
1487
|
+
'log': <function log at 0x740fbc6340>,
|
1488
|
+
'oct_to_int': <function oct_to_int at 0x740fbc63e0>,
|
1489
|
+
'password_generator': <function password_generator at 0x740fbc6480>,
|
1490
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x740fbc65c0>,
|
1491
|
+
'poetry_publish': <function poetry_publish at 0x740fbc6660>,
|
1492
|
+
'poetry_update_version': <function poetry_update_version at 0x740fbc67a0>,
|
1493
|
+
'print_dir': <function print_dir at 0x740fbc6980>,
|
1494
|
+
'print_to_last_line': <function print_to_last_line at 0x740fbc6a20>,
|
1495
|
+
'random_bool': <function random_bool at 0x740fbc6ac0>,
|
1496
|
+
'restart': <function restart at 0x740fbc6b60>,
|
1497
|
+
'set_timeout': <function set_timeout at 0x740fbc6c00>,
|
1498
|
+
'sets_ordered': <function sets_ordered at 0x740fbc6ca0>,
|
1499
|
+
'str_cmp': <function str_cmp at 0x740fbc6d40>,
|
1500
|
+
'text_colorize': <function text_colorize at 0x740fbc6de0>},
|
1433
1501
|
'variable': {'LINUX': True,
|
1434
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1502
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x741857ca90>,
|
1435
1503
|
'WINDOWS': False},
|
1436
1504
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1437
1505
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1493,6 +1561,22 @@ some_function_again()
|
|
1493
1561
|
some_function_more()
|
1494
1562
|
```
|
1495
1563
|
|
1564
|
+
## oct_to_int
|
1565
|
+
|
1566
|
+
`oct_to_int(n)`
|
1567
|
+
|
1568
|
+
Fungsi ini berguna untuk mengubah angka octal
|
1569
|
+
menjadi angka integer.
|
1570
|
+
|
1571
|
+
```python
|
1572
|
+
print(oct_to_int(oct(244)))
|
1573
|
+
```
|
1574
|
+
|
1575
|
+
Output:
|
1576
|
+
```py
|
1577
|
+
244
|
1578
|
+
```
|
1579
|
+
|
1496
1580
|
## password_generator
|
1497
1581
|
|
1498
1582
|
`password_generator(length=8, characters='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~')`
|
@@ -1505,7 +1589,7 @@ print(password_generator())
|
|
1505
1589
|
|
1506
1590
|
Output:
|
1507
1591
|
```py
|
1508
|
-
|
1592
|
+
].tfU}Rc
|
1509
1593
|
```
|
1510
1594
|
|
1511
1595
|
## pip_freeze_without_version
|
@@ -1563,7 +1647,7 @@ Output:
|
|
1563
1647
|
__enter__ : https:/www.google.com
|
1564
1648
|
__fspath__ : https:/www.google.com
|
1565
1649
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1566
|
-
__hash__ :
|
1650
|
+
__hash__ : 7327379686933953002
|
1567
1651
|
__init__ : None
|
1568
1652
|
__init_subclass__ : None
|
1569
1653
|
__module__ : pathlib
|
@@ -1576,8 +1660,8 @@ Output:
|
|
1576
1660
|
_cached_cparts : ['https:', 'www.google.com']
|
1577
1661
|
_cparts : ['https:', 'www.google.com']
|
1578
1662
|
_drv :
|
1579
|
-
_flavour : <pathlib._PosixFlavour object at
|
1580
|
-
_hash :
|
1663
|
+
_flavour : <pathlib._PosixFlavour object at 0x741cf0cb90>
|
1664
|
+
_hash : 7327379686933953002
|
1581
1665
|
_parts : ['https:', 'www.google.com']
|
1582
1666
|
_root :
|
1583
1667
|
_str : https:/www.google.com
|
@@ -1599,7 +1683,7 @@ Output:
|
|
1599
1683
|
is_reserved : False
|
1600
1684
|
is_socket : False
|
1601
1685
|
is_symlink : False
|
1602
|
-
iterdir : <generator object Path.iterdir at
|
1686
|
+
iterdir : <generator object Path.iterdir at 0x74077c2960>
|
1603
1687
|
joinpath : https:/www.google.com
|
1604
1688
|
name : www.google.com
|
1605
1689
|
parent : https:
|
@@ -1639,7 +1723,7 @@ print(random_bool())
|
|
1639
1723
|
|
1640
1724
|
Output:
|
1641
1725
|
```py
|
1642
|
-
|
1726
|
+
False
|
1643
1727
|
```
|
1644
1728
|
|
1645
1729
|
## restart
|
@@ -1673,7 +1757,7 @@ x.cancel()
|
|
1673
1757
|
|
1674
1758
|
Output:
|
1675
1759
|
```py
|
1676
|
-
<Timer(Thread-2, started
|
1760
|
+
<Timer(Thread-2, started 498316795120)>
|
1677
1761
|
menghentikan timeout 7
|
1678
1762
|
```
|
1679
1763
|
|
@@ -1691,7 +1775,7 @@ print(list(sets_ordered(array)))
|
|
1691
1775
|
|
1692
1776
|
Output:
|
1693
1777
|
```py
|
1694
|
-
<generator object sets_ordered at
|
1778
|
+
<generator object sets_ordered at 0x74077f1150>
|
1695
1779
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1696
1780
|
```
|
1697
1781
|
|
@@ -1785,7 +1869,7 @@ print(ExampleComparePerformance().compare_performance())
|
|
1785
1869
|
|
1786
1870
|
Output:
|
1787
1871
|
```py
|
1788
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1872
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x74077f0ba0>,
|
1789
1873
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1790
1874
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1791
1875
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
@@ -5,15 +5,16 @@ pypipr/PintUreg.py,sha256=_jmHZhUn8AcgFkXvZ6OTsWnjtp-CYcXUJ-dG_QdcARY,222
|
|
5
5
|
pypipr/PintUregQuantity.py,sha256=ErSZKB-GHShi1zKac30XgFdBwAUrxMo80IQzIjQ2HVc,118
|
6
6
|
pypipr/RunParallel.py,sha256=BnMasZTnr2gUVVy9dOXePlL_-ud2rWkVPFL2i-sN7rg,7358
|
7
7
|
pypipr/WINDOWS.py,sha256=D-qiViq9LWTCaTefJhbxt-7Z2ty8ll7-DZ5NPFitT94,105
|
8
|
-
pypipr/__init__.py,sha256=
|
8
|
+
pypipr/__init__.py,sha256=W_lXKC8Eft-XzdZW0vWLzkOzEQhOTi8ddA32WGOXDpY,3107
|
9
9
|
pypipr/__terminal__.py,sha256=UdlGb8SIBYjIUHcqx-IQBGUS-Mex02jsVN04b6KdIL0,1253
|
10
10
|
pypipr/auto_reload.py,sha256=h31UvIzunCaPGvP1F5E-jvspk3K06P-EJuGfiN7WEtY,954
|
11
11
|
pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
12
12
|
pypipr/basename.py,sha256=nypVfls6YL_7sY-MYHDcatm5flpBpGj2aMlIOKG9YqE,194
|
13
13
|
pypipr/batch_calculate.py,sha256=rHDXHvzxqKdQlusb6L8mTn27nfadCJMkud9LtGgRNIU,836
|
14
14
|
pypipr/batchmaker.py,sha256=y0D-fU0oCJsdffwZZyJMC0iLPjjiv-_43a7hLrChJDM,1110
|
15
|
+
pypipr/bin_to_int.py,sha256=9s935sdD-CC1d7WCsNO3dd8nqTfC8lpkxHB1zQ--mZc,191
|
15
16
|
pypipr/calculate.py,sha256=wzEbP8V1haM-JeIz85fBAuT2mgPc7uxQZ7wEuSUEXLc,805
|
16
|
-
pypipr/choices.py,sha256=
|
17
|
+
pypipr/choices.py,sha256=mbdDpcrfq8kiPsup_mK_wzcRxq5UyRiLg3YRtHlJxts,1606
|
17
18
|
pypipr/choices.py.bak,sha256=hjVToqAIeMoMfL3kJxOERAicEVsQyUGwzbnorhLdMA4,1664
|
18
19
|
pypipr/chr_to_int.py,sha256=M7LFGF5dPY_fBEOeWGM1wjMedAs02VQZP81vnkVD7Wg,715
|
19
20
|
pypipr/chunk_array.py,sha256=aodjp-daihl-Xd8kPqcpHZICZub7Jx0QBqyoF0bd0dY,385
|
@@ -32,6 +33,7 @@ pypipr/get_filesize.py,sha256=2RCjrdZvaBDCdessFj-h7gLi13rPe6IXJXZcAoywWIA,196
|
|
32
33
|
pypipr/github_pull.py,sha256=RLECOHA0Ki1wy5FJ9wWeyOGxwPc9nKKuY4R06d1o70E,186
|
33
34
|
pypipr/github_push.py,sha256=8Gnn_A3ilU0NBnwEQdarc81L2dl1wPLNt604dV7ktuY,921
|
34
35
|
pypipr/github_user.py,sha256=3uPTKwzUjcVx0rNCrkVwE_Bftlr_0BRKtikiW9000gk,590
|
36
|
+
pypipr/hex_to_int.py,sha256=fqHnoPBZFqxbcyaJt-UbjzRJ8cjNXIuqH3UoSzUVMSs,197
|
35
37
|
pypipr/iargv.py,sha256=PsKWNLeB7oH-CrUK5ut2R8_tNI0Ptcu0GKuZlgOAJPE,552
|
36
38
|
pypipr/idumps.py,sha256=-YMI6aZmRAMaiQOYXYDvuQLmJMCc4Z4tREEuuoVmFR4,748
|
37
39
|
pypipr/idumps_html.py,sha256=IdDLF3YB7fKvoCjeQC4pLhrVdeWFpVupnSDeI_TsqEY,1428
|
@@ -58,6 +60,7 @@ pypipr/iscandir.py,sha256=U1zvRZrz--5Kge0JooQbY4kQN17bRt-8XR26ZFxUyoA,748
|
|
58
60
|
pypipr/isplit.py,sha256=N2BiA_wVnrENYwokSzvo0CAiQWk3g7AnwuWFIUgevNM,383
|
59
61
|
pypipr/ivars.py,sha256=9_DYkv5_X7d5W2PIzGYrQHv__bombI-fAFlr7JGiF-Q,1010
|
60
62
|
pypipr/log.py,sha256=aQ9DeFG03xIAUQYR4TiBdh80M6WvxDtNDTSjpKOSXHk,1041
|
63
|
+
pypipr/oct_to_int.py,sha256=IoI_XOFZi6yzmqAirGIP6YWRgghU7IcPWzUk5DO1ZVo,191
|
61
64
|
pypipr/password_generator.py,sha256=NnFAYkAr6kZiED4JZIJ15_VeGWSpBCCy9rSA5Re_CW4,496
|
62
65
|
pypipr/pip_freeze_without_version.py,sha256=s-sJAtyI9Rdmsaw0dR8YB6cMkJ8bZRArqGrbajiaEJQ,794
|
63
66
|
pypipr/poetry_publish.py,sha256=xMEUaTgEphWxbEjxMZU4HYgW2NkhlFsKy9kI5NKWvBc,399
|
@@ -73,7 +76,7 @@ pypipr/sets_ordered.py,sha256=ve2Nc1eNYD_7QaTf_4otEAvzL1XpZP2MjX0KHSXF5nA,325
|
|
73
76
|
pypipr/str_cmp.py,sha256=2kavWiT4VTddXcBotF1CxDOWSygk5rFrbllKxBjw9dc,377
|
74
77
|
pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
|
75
78
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
76
|
-
pypipr-1.0.
|
77
|
-
pypipr-1.0.
|
78
|
-
pypipr-1.0.
|
79
|
-
pypipr-1.0.
|
79
|
+
pypipr-1.0.119.dist-info/METADATA,sha256=iKDgrTe-paaHHVXy-Snfmx69iDH3VlQj5FHqWwzarIQ,52820
|
80
|
+
pypipr-1.0.119.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
81
|
+
pypipr-1.0.119.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
82
|
+
pypipr-1.0.119.dist-info/RECORD,,
|
File without changes
|
File without changes
|