pypipr 1.0.156__py3-none-any.whl → 1.0.157__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/is_html.py +6 -4
- {pypipr-1.0.156.dist-info → pypipr-1.0.157.dist-info}/METADATA +183 -183
- {pypipr-1.0.156.dist-info → pypipr-1.0.157.dist-info}/RECORD +5 -5
- {pypipr-1.0.156.dist-info → pypipr-1.0.157.dist-info}/WHEEL +0 -0
- {pypipr-1.0.156.dist-info → pypipr-1.0.157.dist-info}/entry_points.txt +0 -0
pypipr/is_html.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
html_pattern = re.compile(r"<([a-zA-Z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)")
|
1
|
+
from lxml import html
|
4
2
|
|
5
3
|
|
6
4
|
def is_html(text):
|
7
|
-
|
5
|
+
try:
|
6
|
+
document = html.fromstring(text)
|
7
|
+
return bool(len(document))
|
8
|
+
except Exception:
|
9
|
+
return False
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.157
|
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 0x7606e328a0>
|
252
|
+
<generator object int_range at 0x7606e328a0>
|
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 0x7606d92e60>
|
285
285
|
['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 1 dan 10 dan j dan saja.', 'Urutan 1 dan 10 dan k dan Z saja.', 'Urutan 1 dan 10 dan k dan K saja.', 'Urutan 1 dan 10 dan k dan saja.', 'Urutan 1 dan 9 dan j dan Z saja.', 'Urutan 1 dan 9 dan j dan K saja.', 'Urutan 1 dan 9 dan j dan saja.', 'Urutan 1 dan 9 dan k dan Z saja.', 'Urutan 1 dan 9 dan k dan K saja.', 'Urutan 1 dan 9 dan k dan saja.', 'Urutan 4 dan 10 dan j dan Z saja.', 'Urutan 4 dan 10 dan j dan K saja.', 'Urutan 4 dan 10 dan j dan saja.', 'Urutan 4 dan 10 dan k dan Z saja.', 'Urutan 4 dan 10 dan k dan K saja.', 'Urutan 4 dan 10 dan k dan saja.', 'Urutan 4 dan 9 dan j dan Z saja.', 'Urutan 4 dan 9 dan j dan K saja.', 'Urutan 4 dan 9 dan j dan saja.', 'Urutan 4 dan 9 dan k dan Z saja.', 'Urutan 4 dan 9 dan k dan K saja.', 'Urutan 4 dan 9 dan k dan saja.', 'Urutan 7 dan 10 dan j dan Z saja.', 'Urutan 7 dan 10 dan j dan K saja.', 'Urutan 7 dan 10 dan j dan saja.', 'Urutan 7 dan 10 dan k dan Z saja.', 'Urutan 7 dan 10 dan k dan K saja.', 'Urutan 7 dan 10 dan k dan saja.', 'Urutan 7 dan 9 dan j dan Z saja.', 'Urutan 7 dan 9 dan j dan K saja.', 'Urutan 7 dan 9 dan j dan saja.', 'Urutan 7 dan 9 dan k dan Z saja.', 'Urutan 7 dan 9 dan k dan K saja.', 'Urutan 7 dan 9 dan k dan 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 0x7606b38a90>
|
339
339
|
[('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')>)]
|
340
340
|
```
|
341
341
|
|
@@ -441,7 +441,7 @@ print(list(chunk_array(arr, 5)))
|
|
441
441
|
|
442
442
|
Output:
|
443
443
|
```py
|
444
|
-
<generator object chunk_array at
|
444
|
+
<generator object chunk_array at 0x7606e3a840>
|
445
445
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
446
446
|
```
|
447
447
|
|
@@ -492,9 +492,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
492
492
|
|
493
493
|
Output:
|
494
494
|
```py
|
495
|
-
2024-
|
496
|
-
2024-
|
497
|
-
2024-
|
495
|
+
2024-10-06 19:16:42.335120+07:00
|
496
|
+
2024-10-06 12:16:42.336581+00:00
|
497
|
+
2024-10-06 05:16:42.340234-07:00
|
498
498
|
```
|
499
499
|
|
500
500
|
## dict_first
|
@@ -604,7 +604,7 @@ iprint(filter_empty(var))
|
|
604
604
|
|
605
605
|
Output:
|
606
606
|
```py
|
607
|
-
<generator object filter_empty at
|
607
|
+
<generator object filter_empty at 0x7606b387c0>
|
608
608
|
[1, '0', True, {}, ['eee']]
|
609
609
|
```
|
610
610
|
|
@@ -651,8 +651,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
651
651
|
|
652
652
|
Output:
|
653
653
|
```py
|
654
|
-
<generator object get_class_method at
|
655
|
-
[<function ExampleGetClassMethod.a at
|
654
|
+
<generator object get_class_method at 0x7606b38d60>
|
655
|
+
[<function ExampleGetClassMethod.a at 0x7606b5ae80>, <function ExampleGetClassMethod.b at 0x7606b5ade0>, <function ExampleGetClassMethod.c at 0x7606b5afc0>, <function ExampleGetClassMethod.d at 0x7606b5b060>]
|
656
656
|
```
|
657
657
|
|
658
658
|
## get_filesize
|
@@ -1074,7 +1074,7 @@ Output:
|
|
1074
1074
|
|
1075
1075
|
## ienumerate
|
1076
1076
|
|
1077
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1077
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x760aa52e80>)`
|
1078
1078
|
|
1079
1079
|
meningkatkan fungsi enumerate() pada python
|
1080
1080
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1087,7 +1087,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1087
1087
|
|
1088
1088
|
Output:
|
1089
1089
|
```py
|
1090
|
-
<generator object ienumerate at
|
1090
|
+
<generator object ienumerate at 0x7606b38e50>
|
1091
1091
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1092
1092
|
```
|
1093
1093
|
|
@@ -1154,7 +1154,7 @@ print(ijoin(10, ' '))
|
|
1154
1154
|
|
1155
1155
|
Output:
|
1156
1156
|
```py
|
1157
|
-
|
1157
|
+
asd, weq, dfs, qweqw
|
1158
1158
|
,ini,path,seperti,url,
|
1159
1159
|
ini,path,seperti,url
|
1160
1160
|
<li>satu</li>
|
@@ -1199,62 +1199,62 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1199
1199
|
Output:
|
1200
1200
|
```py
|
1201
1201
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1202
|
-
[['Harga Emas Hari Ini - Minggu,
|
1203
|
-
['Spot Emas USD↑2.
|
1204
|
-
'Kurs IDR15.
|
1205
|
-
'Emas IDR↑1.
|
1206
|
-
['LM Antam (Jual)1.
|
1202
|
+
[['Harga Emas Hari Ini - Minggu, 06 Oktober 2024'],
|
1203
|
+
['Spot Emas USD↑2.653,25 (+7,71) / oz',
|
1204
|
+
'Kurs IDR15.394,00 / USD',
|
1205
|
+
'Emas IDR↑1.313.169 (+3.816) / gr'],
|
1206
|
+
['LM Antam (Jual)1.482.000 / gr', 'LM Antam (Beli)1.319.000 / gr']],
|
1207
1207
|
[['Harga Emas Hari Ini'],
|
1208
1208
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1209
1209
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1210
1210
|
['1000',
|
1211
|
-
'1.
|
1212
|
-
'1.
|
1211
|
+
'1.423',
|
1212
|
+
'1.422.600',
|
1213
1213
|
'1.043.040 (+8.200)',
|
1214
1214
|
'1.043.040.000 (+8.200.000)'],
|
1215
1215
|
['500',
|
1216
|
-
'2.
|
1217
|
-
'1.
|
1216
|
+
'2.845',
|
1217
|
+
'1.422.640',
|
1218
1218
|
'1.043.082 (+8.200)',
|
1219
1219
|
'521.541.000 (+4.100.000)'],
|
1220
1220
|
['250',
|
1221
|
-
'5.
|
1222
|
-
'1.
|
1221
|
+
'5.692',
|
1222
|
+
'1.423.060',
|
1223
1223
|
'1.043.512 (+8.200)',
|
1224
1224
|
'260.878.000 (+2.050.000)'],
|
1225
1225
|
['100',
|
1226
|
-
'14.
|
1227
|
-
'1.
|
1226
|
+
'14.241',
|
1227
|
+
'1.424.120',
|
1228
1228
|
'1.044.600 (+8.200)',
|
1229
1229
|
'104.460.000 (+820.000)'],
|
1230
|
-
['50', '28.
|
1231
|
-
['25', '
|
1232
|
-
['10', '
|
1233
|
-
['5', '
|
1234
|
-
['3', '
|
1235
|
-
['2', '
|
1236
|
-
['1', '1.
|
1237
|
-
['0.5', '3.
|
1238
|
-
['Update harga LM Antam :
|
1239
|
-
'
|
1230
|
+
['50', '28.498', '1.424.900', '1.045.400 (+8.200)', '52.270.000 (+410.000)'],
|
1231
|
+
['25', '57.059', '1.426.480', '1.047.040 (+8.200)', '26.176.000 (+205.000)'],
|
1232
|
+
['10', '143.150', '1.431.500', '1.052.200 (+8.200)', '10.522.000 (+82.000)'],
|
1233
|
+
['5', '287.400', '1.437.000', '1.057.800 (+8.200)', '5.289.000 (+41.000)'],
|
1234
|
+
['3', '481.222', '1.443.667', '1.064.667 (+8.000)', '3.194.000 (+24.000)'],
|
1235
|
+
['2', '726.000', '1.452.000', '1.073.500 (+8.500)', '2.147.000 (+17.000)'],
|
1236
|
+
['1', '1.482.000', '1.482.000', '1.104.000 (+8.000)', '1.104.000 (+8.000)'],
|
1237
|
+
['0.5', '3.164.000', '1.582.000', '1.208.000 (+8.000)', '604.000 (+4.000)'],
|
1238
|
+
['Update harga LM Antam :06 Oktober 2024, pukul 05:34Harga pembelian kembali '
|
1239
|
+
':Rp. 1.319.000/gram',
|
1240
1240
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1241
1241
|
[['Spot Harga Emas Hari Ini (Market Close)'],
|
1242
1242
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1243
|
-
['Ounce\xa0(oz)', '2.
|
1244
|
-
['Gram\xa0(gr)', '85,
|
1245
|
-
['Kilogram\xa0(kg)', '85.
|
1246
|
-
['Update harga emas :
|
1243
|
+
['Ounce\xa0(oz)', '2.653,25 (+7,71)', '15.394,00', '40.844.131'],
|
1244
|
+
['Gram\xa0(gr)', '85,30', '15.394,00', '1.313.169 (+3.816)'],
|
1245
|
+
['Kilogram\xa0(kg)', '85.303,97', '15.394,00', '1.313.169.290'],
|
1246
|
+
['Update harga emas :06 Oktober 2024, pukul 19:16Update kurs :06 Oktober '
|
1247
1247
|
'2024, pukul 13:10']],
|
1248
1248
|
[['Gram', 'UBS Gold 99.99%'],
|
1249
1249
|
['Jual', 'Beli'],
|
1250
1250
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1251
|
-
['100', '
|
1252
|
-
['50', '
|
1253
|
-
['25', '35.
|
1254
|
-
['10', '14.
|
1255
|
-
['5', '7.
|
1256
|
-
['1', '1.
|
1257
|
-
['', 'Update :
|
1251
|
+
['100', '142.490.000', '1.424.900', '135.370.000', '1.353.700'],
|
1252
|
+
['50', '71.305.000', '1.426.100', '67.735.000', '1.354.700'],
|
1253
|
+
['25', '35.712.500', '1.428.500', '33.967.500', '1.358.700'],
|
1254
|
+
['10', '14.350.000', '1.435.000', '13.653.000', '1.365.300'],
|
1255
|
+
['5', '7.214.000', '1.442.800', '6.881.500', '1.376.300'],
|
1256
|
+
['1', '1.482.000', '1.482.000', '1.407.500', '1.407.500'],
|
1257
|
+
['', 'Update :04 Oktober 2024, pukul 11:55']],
|
1258
1258
|
[['Konversi Satuan'],
|
1259
1259
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1260
1260
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1264,37 +1264,37 @@ Output:
|
|
1264
1264
|
['Waktu', 'Emas'],
|
1265
1265
|
['Unit', 'USD', 'IDR'],
|
1266
1266
|
['Angka', '+/-', 'Angka', '+/-'],
|
1267
|
-
['Hari Ini', 'Kurs', '', '', '15.
|
1268
|
-
['oz', '2.
|
1269
|
-
['gr', '85,
|
1270
|
-
['30 Hari', 'Kurs', '', '', '15.
|
1271
|
-
['oz', '2.
|
1272
|
-
['gr', '
|
1273
|
-
['2 Bulan', 'Kurs', '', '', '16.
|
1274
|
-
['oz', '2.
|
1275
|
-
['gr', '
|
1276
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1277
|
-
['oz', '2.
|
1278
|
-
['gr', '
|
1279
|
-
['1 Tahun', 'Kurs', '', '', '15.
|
1280
|
-
['oz', '1.
|
1281
|
-
['gr', '
|
1282
|
-
['2 Tahun', 'Kurs', '', '', '15.
|
1283
|
-
['oz', '1.
|
1284
|
-
['gr', '
|
1285
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1286
|
-
['oz', '1.757,
|
1287
|
-
['gr', '56,
|
1288
|
-
['5 Tahun', 'Kurs', '', '', '14.
|
1289
|
-
['oz', '1.
|
1290
|
-
['gr', '
|
1267
|
+
['Hari Ini', 'Kurs', '', '', '15.394', '%'],
|
1268
|
+
['oz', '2.645,54', '+7,71+0,29%', '40.725.443', '+118.688+0,29%'],
|
1269
|
+
['gr', '85,06', '+0,25+0,29%', '1.309.353', '+3.816+0,29%'],
|
1270
|
+
['30 Hari', 'Kurs', '', '', '15.410', '-16-0,10%'],
|
1271
|
+
['oz', '2.486,92', '+166,33+6,69%', '38.323.437', '+2.520.693+6,58%'],
|
1272
|
+
['gr', '79,96', '+5,35+6,69%', '1.232.127', '+81.042+6,58%'],
|
1273
|
+
['2 Bulan', 'Kurs', '', '', '16.183', '-789-4,88%'],
|
1274
|
+
['oz', '2.399,23', '+254,02+10,59%', '38.826.739', '+2.017.391+5,20%'],
|
1275
|
+
['gr', '77,14', '+8,17+10,59', '1.248.309', '+64.861+5,20%'],
|
1276
|
+
['6 Bulan', 'Kurs', '', '', '15.907', '-513-3,22%'],
|
1277
|
+
['oz', '2.344,19', '+309,06+13,18%', '37.289.030', '+3.555.100+9,53%'],
|
1278
|
+
['gr', '75,37', '+9,94+13,18%', '1.198.870', '+114.299+9,53%'],
|
1279
|
+
['1 Tahun', 'Kurs', '', '', '15.601', '-207-1,33%'],
|
1280
|
+
['oz', '1.832,59', '+820,66+44,78%', '28.590.237', '+12.253.894+42,86%'],
|
1281
|
+
['gr', '58,92', '+26,38+44,78%', '919.197', '+393.972+42,86%'],
|
1282
|
+
['2 Tahun', 'Kurs', '', '', '15.197', '+197+1,30%'],
|
1283
|
+
['oz', '1.700,43', '+952,82+56,03%', '25.841.435', '+15.002.696+58,06%'],
|
1284
|
+
['gr', '54,67', '+30,63+56,03%', '830.821', '+482.348+58,06%'],
|
1285
|
+
['3 Tahun', 'Kurs', '', '', '14.245', '+1.149+8,07%'],
|
1286
|
+
['oz', '1.757,48', '+895,77+50,97%', '25.035.320', '+15.808.810+63,15%'],
|
1287
|
+
['gr', '56,50', '+28,80+50,97%', '804.904', '+508.265+63,15%'],
|
1288
|
+
['5 Tahun', 'Kurs', '', '', '14.170', '+1.224+8,64%'],
|
1289
|
+
['oz', '1.500,01', '+1.153,24+76,88%', '21.255.142', '+19.588.989+92,16%'],
|
1290
|
+
['gr', '48,23', '+37,08+76,88%', '683.369', '+629.801+92,16%']])
|
1291
1291
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1292
1292
|
[[''],
|
1293
1293
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1294
|
-
['USD', '85,
|
1295
|
-
['KURS', '15.
|
1296
|
-
['IDR', '1.
|
1297
|
-
['Minggu,
|
1294
|
+
['USD', '85,30↓', '%'],
|
1295
|
+
['KURS', '15.670,00↓', '%'],
|
1296
|
+
['IDR', '1.336.713,19↓', '%'],
|
1297
|
+
['Minggu, 06 Oktober 2024 19:16']],
|
1298
1298
|
[[''],
|
1299
1299
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1300
1300
|
'Hari Ini',
|
@@ -1305,19 +1305,19 @@ Output:
|
|
1305
1305
|
'']],
|
1306
1306
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1307
1307
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1308
|
-
['USD', '85,
|
1309
|
-
['KURS', '15.
|
1310
|
-
['IDR', '1.
|
1308
|
+
['USD', '85,30', '85,30 - 85,30', '85,30'],
|
1309
|
+
['KURS', '15.670,00', '15.670,00 - 15.670,00', '15.670,00'],
|
1310
|
+
['IDR', '1.336.713,19', '1.336.713,19 - 1.336.713,19', '1.336.713,19'],
|
1311
1311
|
[''],
|
1312
1312
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1313
|
-
['USD', '66,32', '64,07 - 85,
|
1314
|
-
['KURS', '15.390,10', '15.100,00 - 16.509,65', '
|
1315
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.
|
1313
|
+
['USD', '66,32', '64,07 - 85,86', '+18,98 (28,62%)'],
|
1314
|
+
['KURS', '15.390,10', '15.100,00 - 16.509,65', '+279,90 (1,82%)'],
|
1315
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.336.713,19', '+315.983,66 (30,96%)'],
|
1316
1316
|
[''],
|
1317
1317
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1318
|
-
['USD', '
|
1319
|
-
['KURS', '15.
|
1320
|
-
['IDR', '
|
1318
|
+
['USD', '58,43', '58,85 - 85,86', '+26,87 (45,99%)'],
|
1319
|
+
['KURS', '15.623,80', '15.100,00 - 16.509,65', '+46,20 (0,30%)'],
|
1320
|
+
['IDR', '912.925,68', '921.015,41 - 1.336.713,19', '+423.787,51 (46,42%)']])
|
1321
1321
|
```
|
1322
1322
|
|
1323
1323
|
## iloads
|
@@ -1447,7 +1447,7 @@ Output:
|
|
1447
1447
|
```py
|
1448
1448
|
8
|
1449
1449
|
['mana', 'aja']
|
1450
|
-
[<Element a at
|
1450
|
+
[<Element a at 0x7606b634d0>, <Element a at 0x7606baa7b0>, <Element a at 0x7606baa850>, <Element a at 0x7606baa8a0>, <Element a at 0x7606baa8f0>, <Element a at 0x7606baa940>, <Element a at 0x7606baa990>, <Element a at 0x7606baa9e0>, <Element a at 0x7606baaa30>, <Element a at 0x7606baaa80>, <Element a at 0x7606baaad0>, <Element a at 0x7606baab20>, <Element a at 0x7606baab70>, <Element a at 0x7606baabc0>, <Element a at 0x7606baac10>, <Element a at 0x7606baac60>, <Element a at 0x7606baacb0>, <Element a at 0x7606baad00>]
|
1451
1451
|
False
|
1452
1452
|
```
|
1453
1453
|
|
@@ -1517,7 +1517,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1517
1517
|
|
1518
1518
|
Output:
|
1519
1519
|
```py
|
1520
|
-
<generator object iscandir at
|
1520
|
+
<generator object iscandir at 0x7606e3ac40>
|
1521
1521
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1522
1522
|
```
|
1523
1523
|
|
@@ -1550,92 +1550,92 @@ iprint(ivars(__import__('pypipr')))
|
|
1550
1550
|
|
1551
1551
|
Output:
|
1552
1552
|
```py
|
1553
|
-
{'function': {'avg': <function avg at
|
1554
|
-
'get_filemtime': <function get_filemtime at
|
1555
|
-
'print_colorize': <function print_colorize at
|
1556
|
-
'print_log': <function print_log at
|
1557
|
-
'console_run': <function console_run at
|
1558
|
-
'auto_reload': <function auto_reload at
|
1559
|
-
'basename': <function basename at
|
1560
|
-
'chr_to_int': <function chr_to_int at
|
1561
|
-
'int_to_chr': <function int_to_chr at
|
1562
|
-
'irange': <function irange at
|
1563
|
-
'batchmaker': <function batchmaker at
|
1564
|
-
'calculate': <function calculate at
|
1565
|
-
'batch_calculate': <function batch_calculate at
|
1566
|
-
'bin_to_int': <function bin_to_int at
|
1567
|
-
'is_empty': <function is_empty at
|
1568
|
-
'exit_if_empty': <function exit_if_empty at
|
1569
|
-
'input_char': <function input_char at
|
1570
|
-
'choices': <function choices at
|
1571
|
-
'chunk_array': <function chunk_array at
|
1572
|
-
'create_folder': <function create_folder at
|
1573
|
-
'datetime_from_string': <function datetime_from_string at
|
1574
|
-
'datetime_now': <function datetime_now at
|
1575
|
-
'dict_first': <function dict_first at
|
1576
|
-
'dirname': <function dirname at
|
1577
|
-
'django_runserver': <function django_runserver at
|
1578
|
-
'is_iterable': <function is_iterable at
|
1579
|
-
'to_str': <function to_str at
|
1580
|
-
'filter_empty': <function filter_empty at
|
1581
|
-
'get_by_index': <function get_by_index at
|
1582
|
-
'get_class_method': <function get_class_method at
|
1583
|
-
'get_filesize': <function get_filesize at
|
1584
|
-
'github_init': <function github_init at
|
1585
|
-
'github_pull': <function github_pull at
|
1586
|
-
'github_push': <function github_push at
|
1587
|
-
'github_user': <function github_user at
|
1588
|
-
'hex_to_int': <function hex_to_int at
|
1589
|
-
'iargv': <function iargv at
|
1590
|
-
'idir': <function idir at
|
1591
|
-
'idumps_html': <function idumps_html at
|
1592
|
-
'idumps': <function idumps at
|
1593
|
-
'int_to_int': <function int_to_int at
|
1594
|
-
'ienumerate': <function ienumerate at
|
1595
|
-
'ienv': <function ienv at
|
1596
|
-
'iexec': <function iexec at
|
1597
|
-
'ijoin': <function ijoin at
|
1598
|
-
'iloads_html': <function iloads_html at
|
1599
|
-
'iloads': <function iloads at
|
1600
|
-
'int_to_bin': <function int_to_bin at
|
1601
|
-
'int_to_hex': <function int_to_hex at
|
1602
|
-
'int_to_oct': <function int_to_oct at
|
1603
|
-
'is_valid_url': <function is_valid_url at
|
1604
|
-
'iopen': <function iopen at
|
1605
|
-
'iprint': <function iprint at
|
1606
|
-
'is_raw_string': <function is_raw_string at
|
1607
|
-
'ireplace': <function ireplace at
|
1608
|
-
'is_html': <function is_html at
|
1609
|
-
'iscandir': <function iscandir at
|
1610
|
-
'isplit': <function isplit at
|
1611
|
-
'ivars': <function ivars at
|
1612
|
-
'log': <function log at
|
1613
|
-
'oct_to_int': <function oct_to_int at
|
1614
|
-
'password_generator': <function password_generator at
|
1615
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1616
|
-
'pip_update_pypipr': <function pip_update_pypipr at
|
1617
|
-
'poetry_publish': <function poetry_publish at
|
1618
|
-
'poetry_update_version': <function poetry_update_version at
|
1619
|
-
'print_dir': <function print_dir at
|
1620
|
-
'print_to_last_line': <function print_to_last_line at
|
1621
|
-
'random_bool': <function random_bool at
|
1622
|
-
'repath': <function repath at
|
1623
|
-
'restart': <function restart at
|
1624
|
-
'set_timeout': <function set_timeout at
|
1625
|
-
'sets_ordered': <function sets_ordered at
|
1626
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1627
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1628
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1629
|
-
'str_cmp': <function str_cmp at
|
1630
|
-
'text_colorize': <function text_colorize at
|
1631
|
-
'traceback_filename': <function traceback_filename at
|
1632
|
-
'traceback_framename': <function traceback_framename at
|
1553
|
+
{'function': {'avg': <function avg at 0x760f713e20>,
|
1554
|
+
'get_filemtime': <function get_filemtime at 0x760a9a5f80>,
|
1555
|
+
'print_colorize': <function print_colorize at 0x760a9a6160>,
|
1556
|
+
'print_log': <function print_log at 0x760a9a6020>,
|
1557
|
+
'console_run': <function console_run at 0x760a9a60c0>,
|
1558
|
+
'auto_reload': <function auto_reload at 0x760a9a58a0>,
|
1559
|
+
'basename': <function basename at 0x760a9a5ee0>,
|
1560
|
+
'chr_to_int': <function chr_to_int at 0x760a9a6700>,
|
1561
|
+
'int_to_chr': <function int_to_chr at 0x760a9a67a0>,
|
1562
|
+
'irange': <function irange at 0x760a9a6a20>,
|
1563
|
+
'batchmaker': <function batchmaker at 0x760a9a63e0>,
|
1564
|
+
'calculate': <function calculate at 0x760a9a6520>,
|
1565
|
+
'batch_calculate': <function batch_calculate at 0x760a9a62a0>,
|
1566
|
+
'bin_to_int': <function bin_to_int at 0x760a9a6340>,
|
1567
|
+
'is_empty': <function is_empty at 0x760a9a7240>,
|
1568
|
+
'exit_if_empty': <function exit_if_empty at 0x760a9a7100>,
|
1569
|
+
'input_char': <function input_char at 0x760a9a6660>,
|
1570
|
+
'choices': <function choices at 0x760a9a74c0>,
|
1571
|
+
'chunk_array': <function chunk_array at 0x760a9a7560>,
|
1572
|
+
'create_folder': <function create_folder at 0x760a9a76a0>,
|
1573
|
+
'datetime_from_string': <function datetime_from_string at 0x760a9a7740>,
|
1574
|
+
'datetime_now': <function datetime_now at 0x760a9a77e0>,
|
1575
|
+
'dict_first': <function dict_first at 0x760a9c19e0>,
|
1576
|
+
'dirname': <function dirname at 0x760a9c1a80>,
|
1577
|
+
'django_runserver': <function django_runserver at 0x760a9c1da0>,
|
1578
|
+
'is_iterable': <function is_iterable at 0x760a9c2160>,
|
1579
|
+
'to_str': <function to_str at 0x760a9c2200>,
|
1580
|
+
'filter_empty': <function filter_empty at 0x760a9c2020>,
|
1581
|
+
'get_by_index': <function get_by_index at 0x760a9c20c0>,
|
1582
|
+
'get_class_method': <function get_class_method at 0x760a9c22a0>,
|
1583
|
+
'get_filesize': <function get_filesize at 0x760a9c23e0>,
|
1584
|
+
'github_init': <function github_init at 0x760a9c2480>,
|
1585
|
+
'github_pull': <function github_pull at 0x760a9c2520>,
|
1586
|
+
'github_push': <function github_push at 0x760a9c2660>,
|
1587
|
+
'github_user': <function github_user at 0x760a9c2700>,
|
1588
|
+
'hex_to_int': <function hex_to_int at 0x760a9c27a0>,
|
1589
|
+
'iargv': <function iargv at 0x760a9c2840>,
|
1590
|
+
'idir': <function idir at 0x760a9c28e0>,
|
1591
|
+
'idumps_html': <function idumps_html at 0x760a9c2fc0>,
|
1592
|
+
'idumps': <function idumps at 0x760a9c2a20>,
|
1593
|
+
'int_to_int': <function int_to_int at 0x760aa52e80>,
|
1594
|
+
'ienumerate': <function ienumerate at 0x760a9c2f20>,
|
1595
|
+
'ienv': <function ienv at 0x760aa413a0>,
|
1596
|
+
'iexec': <function iexec at 0x760aa52f20>,
|
1597
|
+
'ijoin': <function ijoin at 0x760aa53060>,
|
1598
|
+
'iloads_html': <function iloads_html at 0x760aa53240>,
|
1599
|
+
'iloads': <function iloads at 0x760fa99ee0>,
|
1600
|
+
'int_to_bin': <function int_to_bin at 0x760aa52fc0>,
|
1601
|
+
'int_to_hex': <function int_to_hex at 0x760aa531a0>,
|
1602
|
+
'int_to_oct': <function int_to_oct at 0x760aa532e0>,
|
1603
|
+
'is_valid_url': <function is_valid_url at 0x760a7ef100>,
|
1604
|
+
'iopen': <function iopen at 0x760aa534c0>,
|
1605
|
+
'iprint': <function iprint at 0x760a7eec00>,
|
1606
|
+
'is_raw_string': <function is_raw_string at 0x76073440e0>,
|
1607
|
+
'ireplace': <function ireplace at 0x760733bf60>,
|
1608
|
+
'is_html': <function is_html at 0x760a853880>,
|
1609
|
+
'iscandir': <function iscandir at 0x7607344180>,
|
1610
|
+
'isplit': <function isplit at 0x7607344220>,
|
1611
|
+
'ivars': <function ivars at 0x76073442c0>,
|
1612
|
+
'log': <function log at 0x7607344360>,
|
1613
|
+
'oct_to_int': <function oct_to_int at 0x7607344400>,
|
1614
|
+
'password_generator': <function password_generator at 0x76073444a0>,
|
1615
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x76073445e0>,
|
1616
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x7607344680>,
|
1617
|
+
'poetry_publish': <function poetry_publish at 0x7607344720>,
|
1618
|
+
'poetry_update_version': <function poetry_update_version at 0x7607344860>,
|
1619
|
+
'print_dir': <function print_dir at 0x7607344a40>,
|
1620
|
+
'print_to_last_line': <function print_to_last_line at 0x7607344ae0>,
|
1621
|
+
'random_bool': <function random_bool at 0x7607344b80>,
|
1622
|
+
'repath': <function repath at 0x7607344cc0>,
|
1623
|
+
'restart': <function restart at 0x7607344d60>,
|
1624
|
+
'set_timeout': <function set_timeout at 0x7607344e00>,
|
1625
|
+
'sets_ordered': <function sets_ordered at 0x7607344ea0>,
|
1626
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x7607344f40>,
|
1627
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x7607345120>,
|
1628
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x76073458a0>,
|
1629
|
+
'str_cmp': <function str_cmp at 0x7607345940>,
|
1630
|
+
'text_colorize': <function text_colorize at 0x76073459e0>,
|
1631
|
+
'traceback_filename': <function traceback_filename at 0x7607345a80>,
|
1632
|
+
'traceback_framename': <function traceback_framename at 0x7607345b20>},
|
1633
1633
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1634
1634
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1635
1635
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1636
1636
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1637
1637
|
'variable': {'LINUX': True,
|
1638
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1638
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x760f6c1c50>,
|
1639
1639
|
'WINDOWS': False},
|
1640
1640
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1641
1641
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-ZoJyDxLL-py3.11/lib/python3.11/site-packages/colorama/__init__.py'>,
|
@@ -1726,7 +1726,7 @@ print(password_generator())
|
|
1726
1726
|
|
1727
1727
|
Output:
|
1728
1728
|
```py
|
1729
|
-
|
1729
|
+
IT/#l=@5
|
1730
1730
|
```
|
1731
1731
|
|
1732
1732
|
## pip_freeze_without_version
|
@@ -1788,7 +1788,7 @@ Output:
|
|
1788
1788
|
__enter__ : https:/www.google.com
|
1789
1789
|
__fspath__ : https:/www.google.com
|
1790
1790
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1791
|
-
__hash__ :
|
1791
|
+
__hash__ : -406761368734910851
|
1792
1792
|
__init__ : None
|
1793
1793
|
__init_subclass__ : None
|
1794
1794
|
__module__ : pathlib
|
@@ -1801,8 +1801,8 @@ Output:
|
|
1801
1801
|
_cached_cparts : ['https:', 'www.google.com']
|
1802
1802
|
_cparts : ['https:', 'www.google.com']
|
1803
1803
|
_drv :
|
1804
|
-
_flavour : <pathlib._PosixFlavour object at
|
1805
|
-
_hash :
|
1804
|
+
_flavour : <pathlib._PosixFlavour object at 0x760eecde90>
|
1805
|
+
_hash : -406761368734910851
|
1806
1806
|
_parts : ['https:', 'www.google.com']
|
1807
1807
|
_root :
|
1808
1808
|
_str : https:/www.google.com
|
@@ -1824,7 +1824,7 @@ Output:
|
|
1824
1824
|
is_reserved : False
|
1825
1825
|
is_socket : False
|
1826
1826
|
is_symlink : False
|
1827
|
-
iterdir : <generator object Path.iterdir at
|
1827
|
+
iterdir : <generator object Path.iterdir at 0x7606b66500>
|
1828
1828
|
joinpath : https:/www.google.com
|
1829
1829
|
name : www.google.com
|
1830
1830
|
parent : https:
|
@@ -1875,7 +1875,7 @@ print(random_bool())
|
|
1875
1875
|
|
1876
1876
|
Output:
|
1877
1877
|
```py
|
1878
|
-
|
1878
|
+
False
|
1879
1879
|
```
|
1880
1880
|
|
1881
1881
|
## repath
|
@@ -1913,7 +1913,7 @@ x.cancel()
|
|
1913
1913
|
|
1914
1914
|
Output:
|
1915
1915
|
```py
|
1916
|
-
<Timer(Thread-2, started
|
1916
|
+
<Timer(Thread-2, started 506892106992)>
|
1917
1917
|
menghentikan timeout 7
|
1918
1918
|
```
|
1919
1919
|
|
@@ -1931,7 +1931,7 @@ print(list(sets_ordered(array)))
|
|
1931
1931
|
|
1932
1932
|
Output:
|
1933
1933
|
```py
|
1934
|
-
<generator object sets_ordered at
|
1934
|
+
<generator object sets_ordered at 0x7606b80a00>
|
1935
1935
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1936
1936
|
```
|
1937
1937
|
|
@@ -2045,15 +2045,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2045
2045
|
|
2046
2046
|
Output:
|
2047
2047
|
```py
|
2048
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2048
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7606e4fb90>,
|
2049
2049
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2050
2050
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2051
2051
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2052
|
-
{'a':
|
2053
|
-
{'a':
|
2054
|
-
{'a':
|
2055
|
-
{'a':
|
2056
|
-
{'a':
|
2052
|
+
{'a': 100, 'b': 124, 'c': 135, 'd': 132}
|
2053
|
+
{'a': 100, 'b': 125, 'c': 122, 'd': 121}
|
2054
|
+
{'a': 100, 'b': 120, 'c': 116, 'd': 124}
|
2055
|
+
{'a': 100, 'b': 115, 'c': 110, 'd': 121}
|
2056
|
+
{'a': 100, 'b': 117, 'c': 104, 'd': 476}
|
2057
2057
|
```
|
2058
2058
|
|
2059
2059
|
## PintUregQuantity
|
@@ -56,7 +56,7 @@ pypipr/iprint.py,sha256=5ekT7RzcTd8Lsb8IQ9JeFJmFl2V6OYFbiHECt9W4iWg,838
|
|
56
56
|
pypipr/irange.py,sha256=OAS6y8VZfP7aN6Tm1yGCs_3qKlcl_1fQen8X6UtJZNY,3441
|
57
57
|
pypipr/ireplace.py,sha256=ce1vqq4kXs9yUPnNAi6p0o2O2zAoUetp4GhVvfv4B8s,873
|
58
58
|
pypipr/is_empty.py,sha256=eqsH6ATuuOLVVSpIsV_8zTBBibPrWjESu9LCMAv8YyY,683
|
59
|
-
pypipr/is_html.py,sha256
|
59
|
+
pypipr/is_html.py,sha256=g8Q7QbIlCwegTitlRHs1m0iZlZd-kGrdLRyTy18S4-w,171
|
60
60
|
pypipr/is_iterable.py,sha256=WLLqD1Shuc_jvFci28xTdLVdoU-r3T93nZ9jB3nH3Jw,923
|
61
61
|
pypipr/is_raw_string.py,sha256=I9RVf511rReVx1pay7iPl9rcaqe-VgD-ptmel6eV62E,77
|
62
62
|
pypipr/is_valid_url.py,sha256=fH2SzoBvXWl3kRtCmixOVu5m1HfPJ-WazUJ0pVQuNoc,885
|
@@ -87,7 +87,7 @@ pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
|
|
87
87
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
88
88
|
pypipr/traceback_filename.py,sha256=4o85J0N8clI0cM6NTGcKZ4zxR9yS7W2NS_bz3J2_PnY,288
|
89
89
|
pypipr/traceback_framename.py,sha256=_mullrAZzMhBFEFVCgdsmkYQmYUkd58o-J-HuMntKyc,291
|
90
|
-
pypipr-1.0.
|
91
|
-
pypipr-1.0.
|
92
|
-
pypipr-1.0.
|
93
|
-
pypipr-1.0.
|
90
|
+
pypipr-1.0.157.dist-info/METADATA,sha256=Df7n-1gxnS_a4ECXyE4TPAU7mkg7TAmnefmpmmUj1kU,58343
|
91
|
+
pypipr-1.0.157.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
92
|
+
pypipr-1.0.157.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
93
|
+
pypipr-1.0.157.dist-info/RECORD,,
|
File without changes
|
File without changes
|