pypipr 1.0.125__tar.gz → 1.0.126__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.125 → pypipr-1.0.126}/PKG-INFO +166 -146
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/__init__.py +1 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/__terminal__.py +2 -2
- pypipr-1.0.126/pypipr/github_init.py +34 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pyproject.toml +1 -1
- {pypipr-1.0.125 → pypipr-1.0.126}/readme.md +165 -145
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/APIMixinView.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/ComparePerformance.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/LINUX.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/PintUreg.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/PintUregQuantity.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/RunParallel.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/WINDOWS.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/auto_reload.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/avg.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/basename.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/batch_calculate.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/batchmaker.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/bin_to_int.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/calculate.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/choices.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/choices.py.bak +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/chr_to_int.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/chunk_array.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/console_run.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/create_folder.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/datetime_from_string.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/datetime_now.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/dict_first.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/dirname.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/exit_if_empty.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/filter_empty.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/get_by_index.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/get_class_method.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/get_filemtime.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/get_filesize.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/github_pull.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/github_push.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/github_user.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/hex_to_int.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iargv.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/idumps.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/idumps_html.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/ienumerate.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/ienv.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iexec.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/ijoin.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iloads.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iloads_html.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/input_char.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/int_to_bin.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/int_to_chr.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/int_to_hex.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/int_to_int.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/int_to_oct.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iopen.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iprint.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/irange.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/ireplace.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/is_empty.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/is_iterable.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/is_valid_url.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/iscandir.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/isplit.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/ivars.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/log.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/oct_to_int.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/password_generator.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/pip_freeze_without_version.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/poetry_publish.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/poetry_update_version.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/print_colorize.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/print_dir.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/print_log.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/print_to_last_line.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/random_bool.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/restart.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/set_timeout.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/sets_ordered.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/str_cmp.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/pypipr/text_colorize.py +0 -0
- {pypipr-1.0.125 → pypipr-1.0.126}/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.126
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -248,8 +248,8 @@ iprint(irange("z", "a", 4))
|
|
248
248
|
|
249
249
|
Output:
|
250
250
|
```py
|
251
|
-
<generator object int_range at
|
252
|
-
<generator object int_range at
|
251
|
+
<generator object int_range at 0x7a10b00440>
|
252
|
+
<generator object int_range at 0x7a10b00440>
|
253
253
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
254
254
|
[2, 5, 8]
|
255
255
|
[2, 5, 8]
|
@@ -281,7 +281,7 @@ print(list(batchmaker(s)))
|
|
281
281
|
|
282
282
|
Output:
|
283
283
|
```py
|
284
|
-
<generator object batchmaker at
|
284
|
+
<generator object batchmaker at 0x7a10af8280>
|
285
285
|
['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.']
|
286
286
|
```
|
287
287
|
|
@@ -335,7 +335,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
335
335
|
|
336
336
|
Output:
|
337
337
|
```py
|
338
|
-
<generator object batch_calculate at
|
338
|
+
<generator object batch_calculate at 0x7a10a73010>
|
339
339
|
[('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')>)]
|
340
340
|
```
|
341
341
|
|
@@ -458,7 +458,7 @@ print(list(chunk_array(arr, 5)))
|
|
458
458
|
|
459
459
|
Output:
|
460
460
|
```py
|
461
|
-
<generator object chunk_array at
|
461
|
+
<generator object chunk_array at 0x7a10b00440>
|
462
462
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
463
463
|
```
|
464
464
|
|
@@ -509,9 +509,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
509
509
|
|
510
510
|
Output:
|
511
511
|
```py
|
512
|
-
2024-05-06
|
513
|
-
2024-05-06
|
514
|
-
2024-05-
|
512
|
+
2024-05-06 17:58:05.473000+07:00
|
513
|
+
2024-05-06 10:58:05.475089+00:00
|
514
|
+
2024-05-06 03:58:05.482857-07:00
|
515
515
|
```
|
516
516
|
|
517
517
|
## dict_first
|
@@ -617,7 +617,7 @@ iprint(filter_empty(var))
|
|
617
617
|
|
618
618
|
Output:
|
619
619
|
```py
|
620
|
-
<generator object filter_empty at
|
620
|
+
<generator object filter_empty at 0x7a10a715d0>
|
621
621
|
[1, '0', True, {}, ['eee']]
|
622
622
|
```
|
623
623
|
|
@@ -647,8 +647,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
647
647
|
|
648
648
|
Output:
|
649
649
|
```py
|
650
|
-
<generator object get_class_method at
|
651
|
-
[<function ExampleGetClassMethod.a at
|
650
|
+
<generator object get_class_method at 0x7a10a732e0>
|
651
|
+
[<function ExampleGetClassMethod.a at 0x7a10b151c0>, <function ExampleGetClassMethod.b at 0x7a10b15080>, <function ExampleGetClassMethod.c at 0x7a10b15120>, <function ExampleGetClassMethod.d at 0x7a10b15260>]
|
652
652
|
```
|
653
653
|
|
654
654
|
## get_filesize
|
@@ -666,6 +666,25 @@ Output:
|
|
666
666
|
465
|
667
667
|
```
|
668
668
|
|
669
|
+
## github_init
|
670
|
+
|
671
|
+
`github_init()`
|
672
|
+
|
673
|
+
Menyiapkan folder offline untuk dikoneksikan ke repository
|
674
|
+
kosong github.
|
675
|
+
Akan langsung di upload dan di taruh di branch main.
|
676
|
+
|
677
|
+
|
678
|
+
```py
|
679
|
+
github_init()
|
680
|
+
```
|
681
|
+
|
682
|
+
or run in terminal
|
683
|
+
|
684
|
+
```py
|
685
|
+
pypipr github_init
|
686
|
+
```
|
687
|
+
|
669
688
|
## github_pull
|
670
689
|
|
671
690
|
`github_pull()`
|
@@ -918,7 +937,7 @@ Output:
|
|
918
937
|
|
919
938
|
## ienumerate
|
920
939
|
|
921
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
940
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7a19f09a80>)`
|
922
941
|
|
923
942
|
meningkatkan fungsi enumerate() pada python
|
924
943
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -931,7 +950,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
931
950
|
|
932
951
|
Output:
|
933
952
|
```py
|
934
|
-
<generator object ienumerate at
|
953
|
+
<generator object ienumerate at 0x7a10a733d0>
|
935
954
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
936
955
|
```
|
937
956
|
|
@@ -998,7 +1017,7 @@ print(ijoin(10, ' '))
|
|
998
1017
|
|
999
1018
|
Output:
|
1000
1019
|
```py
|
1001
|
-
|
1020
|
+
dfs, weq, qweqw, asd
|
1002
1021
|
,ini,path,seperti,url,
|
1003
1022
|
ini,path,seperti,url
|
1004
1023
|
<li>satu</li>
|
@@ -1044,9 +1063,9 @@ Output:
|
|
1044
1063
|
```py
|
1045
1064
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1046
1065
|
[['Harga Emas Hari Ini - Senin, 06 Mei 2024'],
|
1047
|
-
['Spot Emas USD↑2.
|
1066
|
+
['Spot Emas USD↑2.319,91 (+17,34) / oz',
|
1048
1067
|
'Kurs IDR↓16.094,00 (-108,00) / USD',
|
1049
|
-
'Emas IDR
|
1068
|
+
'Emas IDR↑1.200.401 (+977) / gr'],
|
1050
1069
|
['LM Antam (Jual)↓1.310.000 (-3.000) / gr',
|
1051
1070
|
'LM Antam (Beli)↓1.203.000 (-3.000) / gr']],
|
1052
1071
|
[['Harga Emas Hari Ini'],
|
@@ -1117,37 +1136,37 @@ Output:
|
|
1117
1136
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1118
1137
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1119
1138
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1120
|
-
['Ounce\xa0(oz)', '2.
|
1121
|
-
['Gram\xa0(gr)', '74,
|
1122
|
-
['Kilogram\xa0(kg)', '74.
|
1123
|
-
['Update harga emas :06 Mei 2024, pukul
|
1124
|
-
'
|
1139
|
+
['Ounce\xa0(oz)', '2.319,91 (+17,34)', '16.094,00 (-108,00)', '37.336.632'],
|
1140
|
+
['Gram\xa0(gr)', '74,59', '16.094,00', '1.200.401 (+977)'],
|
1141
|
+
['Kilogram\xa0(kg)', '74.586,84', '16.094,00', '1.200.400.580'],
|
1142
|
+
['Update harga emas :06 Mei 2024, pukul 17:58Update kurs :06 Mei 2024, pukul '
|
1143
|
+
'13:10']],
|
1125
1144
|
[['Gram', 'UBS Gold 99.99%'],
|
1126
1145
|
['Jual', 'Beli'],
|
1127
1146
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1128
1147
|
['100',
|
1129
|
-
'
|
1130
|
-
'1.
|
1148
|
+
'124.800.000 (-1.200.000)',
|
1149
|
+
'1.248.000 (-12.000)',
|
1131
1150
|
'122.685.000 (-700.000)',
|
1132
1151
|
'1.226.850 (-7.000)'],
|
1133
1152
|
['50',
|
1134
|
-
'62.
|
1135
|
-
'1.
|
1153
|
+
'62.500.000 (-450.000)',
|
1154
|
+
'1.250.000 (-9.000)',
|
1136
1155
|
'61.395.000 (-350.000)',
|
1137
1156
|
'1.227.900 (-7.000)'],
|
1138
1157
|
['25',
|
1139
|
-
'31.
|
1140
|
-
'1.
|
1158
|
+
'31.300.000 (-200.000)',
|
1159
|
+
'1.252.000 (-8.000)',
|
1141
1160
|
'30.800.000 (-175.000)',
|
1142
1161
|
'1.232.000 (-7.000)'],
|
1143
1162
|
['10',
|
1144
|
-
'12.
|
1145
|
-
'1.
|
1163
|
+
'12.570.000 (-80.000)',
|
1164
|
+
'1.257.000 (-8.000)',
|
1146
1165
|
'12.370.000 (-70.000)',
|
1147
1166
|
'1.237.000 (-7.000)'],
|
1148
1167
|
['5',
|
1149
|
-
'6.
|
1150
|
-
'1.
|
1168
|
+
'6.310.000 (-40.000)',
|
1169
|
+
'1.262.000 (-8.000)',
|
1151
1170
|
'6.237.000 (-35.000)',
|
1152
1171
|
'1.247.400 (-7.000)'],
|
1153
1172
|
['1',
|
@@ -1166,36 +1185,36 @@ Output:
|
|
1166
1185
|
['Unit', 'USD', 'IDR'],
|
1167
1186
|
['Angka', '+/-', 'Angka', '+/-'],
|
1168
1187
|
['Hari Ini', 'Kurs', '', '', '16.202', '-108-0,67%'],
|
1169
|
-
['oz', '2.302,57', '+
|
1170
|
-
['gr', '74,03', '+0,
|
1188
|
+
['oz', '2.302,57', '+17,34+0,75%', '37.306.239', '+30.392+0,08%'],
|
1189
|
+
['gr', '74,03', '+0,56+0,75%', '1.199.423', '+977+0,08%'],
|
1171
1190
|
['30 Hari', 'Kurs', '', '', '15.907', '+187+1,18%'],
|
1172
|
-
['oz', '2.329,93', '-
|
1173
|
-
['gr', '74,91', '-0,
|
1191
|
+
['oz', '2.329,93', '-10,02-0,43%', '37.062.197', '+274.435+0,74%'],
|
1192
|
+
['gr', '74,91', '-0,32-0,43%', '1.191.577', '+8.823+0,74%'],
|
1174
1193
|
['2 Bulan', 'Kurs', '', '', '15.723', '+371+2,36%'],
|
1175
|
-
['oz', '2.156,44', '+
|
1176
|
-
['gr', '69,33', '+
|
1194
|
+
['oz', '2.156,44', '+163,47+7,58%', '33.905.706', '+3.430.925+10,12%'],
|
1195
|
+
['gr', '69,33', '+5,26+7,58', '1.090.094', '+110.307+10,12%'],
|
1177
1196
|
['6 Bulan', 'Kurs', '', '', '15.593', '+501+3,21%'],
|
1178
|
-
['oz', '1.954,36', '+
|
1179
|
-
['gr', '62,83', '+11,
|
1197
|
+
['oz', '1.954,36', '+365,55+18,70%', '30.474.335', '+6.862.296+22,52%'],
|
1198
|
+
['gr', '62,83', '+11,75+18,70%', '979.773', '+220.628+22,52%'],
|
1180
1199
|
['1 Tahun', 'Kurs', '', '', '15.731', '+363+2,31%'],
|
1181
|
-
['oz', '1.823,86', '+
|
1182
|
-
['gr', '58,64', '+15,
|
1200
|
+
['oz', '1.823,86', '+496,05+27,20%', '28.691.142', '+8.645.490+30,13%'],
|
1201
|
+
['gr', '58,64', '+15,95+27,20%', '922.442', '+277.959+30,13%'],
|
1183
1202
|
['2 Tahun', 'Kurs', '', '', '14.418', '+1.676+11,62%'],
|
1184
|
-
['oz', '1.883,86', '+
|
1185
|
-
['gr', '60,57', '+
|
1203
|
+
['oz', '1.883,86', '+436,05+23,15%', '27.161.493', '+10.175.138+37,46%'],
|
1204
|
+
['gr', '60,57', '+14,02+23,15%', '873.262', '+327.138+37,46%'],
|
1186
1205
|
['3 Tahun', 'Kurs', '', '', '14.364', '+1.730+12,04%'],
|
1187
|
-
['oz', '1.831,48', '+
|
1188
|
-
['gr', '58,88', '+15,
|
1206
|
+
['oz', '1.831,48', '+488,43+26,67%', '26.307.379', '+11.029.253+41,92%'],
|
1207
|
+
['gr', '58,88', '+15,70+26,67%', '845.802', '+354.599+41,92%'],
|
1189
1208
|
['5 Tahun', 'Kurs', '', '', '14.305', '+1.789+12,51%'],
|
1190
|
-
['oz', '1.280,40', '+1.
|
1191
|
-
['gr', '41,17', '+33,
|
1209
|
+
['oz', '1.280,40', '+1.039,51+81,19%', '18.316.122', '+19.020.510+103,85%'],
|
1210
|
+
['gr', '41,17', '+33,42+81,19%', '588.877', '+611.524+103,85%']])
|
1192
1211
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1193
1212
|
[[''],
|
1194
1213
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1195
|
-
['USD', '74,
|
1196
|
-
['KURS', '16.
|
1197
|
-
['IDR', '1.
|
1198
|
-
['Senin, 06 Mei 2024
|
1214
|
+
['USD', '74,59↑', '+0,56+0,76%'],
|
1215
|
+
['KURS', '16.035,65↑', '+66,95+0,42%'],
|
1216
|
+
['IDR', '1.196.048,44↑', '+13.896,04+1,18%'],
|
1217
|
+
['Senin, 06 Mei 2024 17:58']],
|
1199
1218
|
[[''],
|
1200
1219
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1201
1220
|
'Hari Ini',
|
@@ -1206,19 +1225,19 @@ Output:
|
|
1206
1225
|
'']],
|
1207
1226
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1208
1227
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1209
|
-
['USD', '74,03', '74,03 - 74,
|
1210
|
-
['KURS', '15.968,70', '15.968,70 - 16.
|
1211
|
-
['IDR', '1.182.152,40', '1.182.152,40 - 1.
|
1228
|
+
['USD', '74,03', '74,03 - 74,59', '74,31'],
|
1229
|
+
['KURS', '15.968,70', '15.968,70 - 16.035,65', '16.002,18'],
|
1230
|
+
['IDR', '1.182.152,40', '1.182.152,40 - 1.196.048,44', '1.189.100,42'],
|
1212
1231
|
[''],
|
1213
1232
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1214
|
-
['USD', '66,32', '64,07 - 77,14', '+
|
1215
|
-
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+
|
1216
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+
|
1233
|
+
['USD', '66,32', '64,07 - 77,14', '+8,27 (12,47%)'],
|
1234
|
+
['KURS', '15.390,10', '15.390,00 - 16.307,80', '+645,55 (4,19%)'],
|
1235
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.256.829,06', '+175.318,91 (17,18%)'],
|
1217
1236
|
[''],
|
1218
1237
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1219
|
-
['USD', '64,87', '58,43 - 77,14', '+9,
|
1220
|
-
['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.
|
1221
|
-
['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+
|
1238
|
+
['USD', '64,87', '58,43 - 77,14', '+9,72 (14,98%)'],
|
1239
|
+
['KURS', '14.669,40', '14.674,80 - 16.307,80', '+1.366,25 (9,31%)'],
|
1240
|
+
['IDR', '951.626,36', '912.925,68 - 1.256.829,06', '+244.422,08 (25,68%)']])
|
1222
1241
|
```
|
1223
1242
|
|
1224
1243
|
## iloads
|
@@ -1348,7 +1367,7 @@ Output:
|
|
1348
1367
|
```py
|
1349
1368
|
8
|
1350
1369
|
['mana', 'aja']
|
1351
|
-
[<Element a at
|
1370
|
+
[<Element a at 0x7a10b09810>, <Element a at 0x7a10b4d040>, <Element a at 0x7a10b4d0e0>, <Element a at 0x7a10b4d130>, <Element a at 0x7a10b4d180>, <Element a at 0x7a10b4d1d0>, <Element a at 0x7a10b4d220>, <Element a at 0x7a10b4d270>, <Element a at 0x7a10b4d2c0>, <Element a at 0x7a10b4d310>, <Element a at 0x7a10b4d360>, <Element a at 0x7a10b4d3b0>, <Element a at 0x7a10b4d400>, <Element a at 0x7a10b4d450>, <Element a at 0x7a10b4d4a0>, <Element a at 0x7a10b4d4f0>, <Element a at 0x7a10b4d540>, <Element a at 0x7a10b4d590>]
|
1352
1371
|
False
|
1353
1372
|
```
|
1354
1373
|
|
@@ -1410,7 +1429,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1410
1429
|
|
1411
1430
|
Output:
|
1412
1431
|
```py
|
1413
|
-
<generator object iscandir at
|
1432
|
+
<generator object iscandir at 0x7a10b00740>
|
1414
1433
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1415
1434
|
```
|
1416
1435
|
|
@@ -1447,76 +1466,77 @@ Output:
|
|
1447
1466
|
'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1448
1467
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1449
1468
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1450
|
-
'function': {'avg': <function avg at
|
1451
|
-
'get_filemtime': <function get_filemtime at
|
1452
|
-
'print_colorize': <function print_colorize at
|
1453
|
-
'print_log': <function print_log at
|
1454
|
-
'console_run': <function console_run at
|
1455
|
-
'auto_reload': <function auto_reload at
|
1456
|
-
'basename': <function basename at
|
1457
|
-
'chr_to_int': <function chr_to_int at
|
1458
|
-
'int_to_chr': <function int_to_chr at
|
1459
|
-
'irange': <function irange at
|
1460
|
-
'batchmaker': <function batchmaker at
|
1461
|
-
'calculate': <function calculate at
|
1462
|
-
'batch_calculate': <function batch_calculate at
|
1463
|
-
'bin_to_int': <function bin_to_int at
|
1464
|
-
'is_empty': <function is_empty at
|
1465
|
-
'exit_if_empty': <function exit_if_empty at
|
1466
|
-
'input_char': <function input_char at
|
1467
|
-
'get_by_index': <function get_by_index at
|
1468
|
-
'choices': <function choices at
|
1469
|
-
'chunk_array': <function chunk_array at
|
1470
|
-
'create_folder': <function create_folder at
|
1471
|
-
'datetime_from_string': <function datetime_from_string at
|
1472
|
-
'datetime_now': <function datetime_now at
|
1473
|
-
'dict_first': <function dict_first at
|
1474
|
-
'dirname': <function dirname at
|
1475
|
-
'is_iterable': <function is_iterable at
|
1476
|
-
'to_str': <function to_str at
|
1477
|
-
'filter_empty': <function filter_empty at
|
1478
|
-
'get_class_method': <function get_class_method at
|
1479
|
-
'get_filesize': <function get_filesize at
|
1480
|
-
'
|
1481
|
-
'
|
1482
|
-
'
|
1483
|
-
'
|
1484
|
-
'
|
1485
|
-
'
|
1486
|
-
'
|
1487
|
-
'
|
1488
|
-
'
|
1489
|
-
'
|
1490
|
-
'
|
1491
|
-
'
|
1492
|
-
'
|
1493
|
-
'
|
1494
|
-
'
|
1495
|
-
'
|
1496
|
-
'
|
1497
|
-
'
|
1498
|
-
'
|
1499
|
-
'
|
1500
|
-
'
|
1501
|
-
'
|
1502
|
-
'
|
1503
|
-
'
|
1504
|
-
'
|
1505
|
-
'
|
1506
|
-
'
|
1507
|
-
'
|
1508
|
-
'
|
1509
|
-
'
|
1510
|
-
'
|
1511
|
-
'
|
1512
|
-
'
|
1513
|
-
'
|
1514
|
-
'
|
1515
|
-
'
|
1516
|
-
'
|
1517
|
-
'
|
1469
|
+
'function': {'avg': <function avg at 0x7a1db6e700>,
|
1470
|
+
'get_filemtime': <function get_filemtime at 0x7a1a016de0>,
|
1471
|
+
'print_colorize': <function print_colorize at 0x7a1a016fc0>,
|
1472
|
+
'print_log': <function print_log at 0x7a1a0ceb60>,
|
1473
|
+
'console_run': <function console_run at 0x7a1a016e80>,
|
1474
|
+
'auto_reload': <function auto_reload at 0x7a19ff7ec0>,
|
1475
|
+
'basename': <function basename at 0x7a1a016d40>,
|
1476
|
+
'chr_to_int': <function chr_to_int at 0x7a1a017560>,
|
1477
|
+
'int_to_chr': <function int_to_chr at 0x7a1a017600>,
|
1478
|
+
'irange': <function irange at 0x7a1a017880>,
|
1479
|
+
'batchmaker': <function batchmaker at 0x7a1a017240>,
|
1480
|
+
'calculate': <function calculate at 0x7a1a017380>,
|
1481
|
+
'batch_calculate': <function batch_calculate at 0x7a1a017100>,
|
1482
|
+
'bin_to_int': <function bin_to_int at 0x7a1a0171a0>,
|
1483
|
+
'is_empty': <function is_empty at 0x7a19e38040>,
|
1484
|
+
'exit_if_empty': <function exit_if_empty at 0x7a1a017ec0>,
|
1485
|
+
'input_char': <function input_char at 0x7a1a017f60>,
|
1486
|
+
'get_by_index': <function get_by_index at 0x7a19e380e0>,
|
1487
|
+
'choices': <function choices at 0x7a19e382c0>,
|
1488
|
+
'chunk_array': <function chunk_array at 0x7a19e38360>,
|
1489
|
+
'create_folder': <function create_folder at 0x7a19e38400>,
|
1490
|
+
'datetime_from_string': <function datetime_from_string at 0x7a19e384a0>,
|
1491
|
+
'datetime_now': <function datetime_now at 0x7a19e38540>,
|
1492
|
+
'dict_first': <function dict_first at 0x7a19e385e0>,
|
1493
|
+
'dirname': <function dirname at 0x7a19e38680>,
|
1494
|
+
'is_iterable': <function is_iterable at 0x7a19e38860>,
|
1495
|
+
'to_str': <function to_str at 0x7a19e38900>,
|
1496
|
+
'filter_empty': <function filter_empty at 0x7a19e38720>,
|
1497
|
+
'get_class_method': <function get_class_method at 0x7a19e387c0>,
|
1498
|
+
'get_filesize': <function get_filesize at 0x7a19e38a40>,
|
1499
|
+
'github_init': <function github_init at 0x7a19e38b80>,
|
1500
|
+
'github_pull': <function github_pull at 0x7a19e38ae0>,
|
1501
|
+
'github_push': <function github_push at 0x7a19e38cc0>,
|
1502
|
+
'github_user': <function github_user at 0x7a19e38d60>,
|
1503
|
+
'hex_to_int': <function hex_to_int at 0x7a19e38e00>,
|
1504
|
+
'iargv': <function iargv at 0x7a19e38ea0>,
|
1505
|
+
'idumps_html': <function idumps_html at 0x7a19e39120>,
|
1506
|
+
'idumps': <function idumps at 0x7a19e38fe0>,
|
1507
|
+
'int_to_int': <function int_to_int at 0x7a19f09a80>,
|
1508
|
+
'ienumerate': <function ienumerate at 0x7a19e39620>,
|
1509
|
+
'ienv': <function ienv at 0x7a19e3b1a0>,
|
1510
|
+
'iexec': <function iexec at 0x7a19f09b20>,
|
1511
|
+
'ijoin': <function ijoin at 0x7a19f09c60>,
|
1512
|
+
'iloads_html': <function iloads_html at 0x7a19f09e40>,
|
1513
|
+
'iloads': <function iloads at 0x7a19f09bc0>,
|
1514
|
+
'int_to_bin': <function int_to_bin at 0x7a19f09da0>,
|
1515
|
+
'int_to_hex': <function int_to_hex at 0x7a19f09ee0>,
|
1516
|
+
'int_to_oct': <function int_to_oct at 0x7a19f09f80>,
|
1517
|
+
'is_valid_url': <function is_valid_url at 0x7a19f0a160>,
|
1518
|
+
'iopen': <function iopen at 0x7a19d125c0>,
|
1519
|
+
'iprint': <function iprint at 0x7a19f0a0c0>,
|
1520
|
+
'ireplace': <function ireplace at 0x7a19d12700>,
|
1521
|
+
'iscandir': <function iscandir at 0x7a19dc9d00>,
|
1522
|
+
'isplit': <function isplit at 0x7a19dc9da0>,
|
1523
|
+
'ivars': <function ivars at 0x7a19dc9e40>,
|
1524
|
+
'log': <function log at 0x7a19dc9ee0>,
|
1525
|
+
'oct_to_int': <function oct_to_int at 0x7a19dc9f80>,
|
1526
|
+
'password_generator': <function password_generator at 0x7a19dca020>,
|
1527
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7a19dca160>,
|
1528
|
+
'poetry_publish': <function poetry_publish at 0x7a19dca200>,
|
1529
|
+
'poetry_update_version': <function poetry_update_version at 0x7a19dca340>,
|
1530
|
+
'print_dir': <function print_dir at 0x7a19dca520>,
|
1531
|
+
'print_to_last_line': <function print_to_last_line at 0x7a19dca5c0>,
|
1532
|
+
'random_bool': <function random_bool at 0x7a19dca660>,
|
1533
|
+
'restart': <function restart at 0x7a19dca700>,
|
1534
|
+
'set_timeout': <function set_timeout at 0x7a19dca7a0>,
|
1535
|
+
'sets_ordered': <function sets_ordered at 0x7a19dca840>,
|
1536
|
+
'str_cmp': <function str_cmp at 0x7a19dca8e0>,
|
1537
|
+
'text_colorize': <function text_colorize at 0x7a19dca980>},
|
1518
1538
|
'variable': {'LINUX': True,
|
1519
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1539
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7a1db70850>,
|
1520
1540
|
'WINDOWS': False},
|
1521
1541
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1522
1542
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1606,7 +1626,7 @@ print(password_generator())
|
|
1606
1626
|
|
1607
1627
|
Output:
|
1608
1628
|
```py
|
1609
|
-
|
1629
|
+
Z[ElVvWE
|
1610
1630
|
```
|
1611
1631
|
|
1612
1632
|
## pip_freeze_without_version
|
@@ -1664,7 +1684,7 @@ Output:
|
|
1664
1684
|
__enter__ : https:/www.google.com
|
1665
1685
|
__fspath__ : https:/www.google.com
|
1666
1686
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1667
|
-
__hash__ :
|
1687
|
+
__hash__ : -6368168625464002048
|
1668
1688
|
__init__ : None
|
1669
1689
|
__init_subclass__ : None
|
1670
1690
|
__module__ : pathlib
|
@@ -1677,8 +1697,8 @@ Output:
|
|
1677
1697
|
_cached_cparts : ['https:', 'www.google.com']
|
1678
1698
|
_cparts : ['https:', 'www.google.com']
|
1679
1699
|
_drv :
|
1680
|
-
_flavour : <pathlib._PosixFlavour object at
|
1681
|
-
_hash :
|
1700
|
+
_flavour : <pathlib._PosixFlavour object at 0x7a25714dd0>
|
1701
|
+
_hash : -6368168625464002048
|
1682
1702
|
_parts : ['https:', 'www.google.com']
|
1683
1703
|
_root :
|
1684
1704
|
_str : https:/www.google.com
|
@@ -1700,7 +1720,7 @@ Output:
|
|
1700
1720
|
is_reserved : False
|
1701
1721
|
is_socket : False
|
1702
1722
|
is_symlink : False
|
1703
|
-
iterdir : <generator object Path.iterdir at
|
1723
|
+
iterdir : <generator object Path.iterdir at 0x7a10af2a40>
|
1704
1724
|
joinpath : https:/www.google.com
|
1705
1725
|
name : www.google.com
|
1706
1726
|
parent : https:
|
@@ -1740,7 +1760,7 @@ print(random_bool())
|
|
1740
1760
|
|
1741
1761
|
Output:
|
1742
1762
|
```py
|
1743
|
-
|
1763
|
+
True
|
1744
1764
|
```
|
1745
1765
|
|
1746
1766
|
## restart
|
@@ -1774,7 +1794,7 @@ x.cancel()
|
|
1774
1794
|
|
1775
1795
|
Output:
|
1776
1796
|
```py
|
1777
|
-
<Timer(Thread-2, started
|
1797
|
+
<Timer(Thread-2, started 524237651184)>
|
1778
1798
|
menghentikan timeout 7
|
1779
1799
|
```
|
1780
1800
|
|
@@ -1792,7 +1812,7 @@ print(list(sets_ordered(array)))
|
|
1792
1812
|
|
1793
1813
|
Output:
|
1794
1814
|
```py
|
1795
|
-
<generator object sets_ordered at
|
1815
|
+
<generator object sets_ordered at 0x7a10b24fb0>
|
1796
1816
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1797
1817
|
```
|
1798
1818
|
|
@@ -1887,15 +1907,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
1887
1907
|
|
1888
1908
|
Output:
|
1889
1909
|
```py
|
1890
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
1910
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7a10b24ad0>,
|
1891
1911
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
1892
1912
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
1893
1913
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
1894
|
-
{'a':
|
1895
|
-
{'a':
|
1896
|
-
{'a':
|
1897
|
-
{'a':
|
1898
|
-
{'a':
|
1914
|
+
{'a': 130, 'b': 132, 'c': 100, 'd': 191}
|
1915
|
+
{'a': 107, 'b': 141, 'c': 100, 'd': 198}
|
1916
|
+
{'a': 107, 'b': 131, 'c': 100, 'd': 163}
|
1917
|
+
{'a': 109, 'b': 124, 'c': 100, 'd': 151}
|
1918
|
+
{'a': 105, 'b': 130, 'c': 100, 'd': 153}
|
1899
1919
|
```
|
1900
1920
|
|
1901
1921
|
## PintUregQuantity
|
@@ -27,6 +27,7 @@ from .get_by_index import get_by_index
|
|
27
27
|
from .get_class_method import get_class_method
|
28
28
|
from .get_filemtime import get_filemtime
|
29
29
|
from .get_filesize import get_filesize
|
30
|
+
from .github_init import github_init
|
30
31
|
from .github_pull import github_pull
|
31
32
|
from .github_push import github_push
|
32
33
|
from .github_user import github_user
|
@@ -33,6 +33,7 @@ def main(module="pypipr"):
|
|
33
33
|
elif inspect.ismodule(f):
|
34
34
|
print_log("Module tidak dapat dijalankan.")
|
35
35
|
main(f.__name__)
|
36
|
+
return
|
36
37
|
elif inspect.isfunction(f):
|
37
38
|
s = inspect.signature(f)
|
38
39
|
|
@@ -42,8 +43,7 @@ def main(module="pypipr"):
|
|
42
43
|
|
43
44
|
k = {}
|
44
45
|
for i, v in s.parameters.items():
|
45
|
-
|
46
|
-
o = input()
|
46
|
+
o = input(f"{i} [{v.default}] : ")
|
47
47
|
if len(o):
|
48
48
|
try:
|
49
49
|
k[i] = input_parameter(o)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
from .console_run import console_run
|
2
|
+
from .input_char import input_char
|
3
|
+
|
4
|
+
|
5
|
+
def github_init():
|
6
|
+
"""
|
7
|
+
Menyiapkan folder offline untuk dikoneksikan ke repository
|
8
|
+
kosong github.
|
9
|
+
Akan langsung di upload dan di taruh di branch main.
|
10
|
+
|
11
|
+
|
12
|
+
```py
|
13
|
+
github_init()
|
14
|
+
```
|
15
|
+
|
16
|
+
or run in terminal
|
17
|
+
|
18
|
+
```py
|
19
|
+
pypipr github_init
|
20
|
+
```
|
21
|
+
"""
|
22
|
+
u = input("username : ")
|
23
|
+
p = input("password : ")
|
24
|
+
g = input("github account name : ")
|
25
|
+
r = input("repository name : ")
|
26
|
+
|
27
|
+
url = f"https://{u}:{p}@github.com/{g}/{r}.git"
|
28
|
+
if input_char(f"Apakah benar {url} ? [y] ") == "y":
|
29
|
+
console_run("git init", print_info=False)
|
30
|
+
console_run("git add .", print_info=False)
|
31
|
+
console_run("git commit -m first_commit", print_info=False)
|
32
|
+
console_run("git branch -M main", print_info=False)
|
33
|
+
console_run(f"git remote add origin {url}", print_info=False)
|
34
|
+
console_run("git push -u origin main", print_info=False)
|