pypipr 1.0.149__py3-none-any.whl → 1.0.150__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/create_folder.py +8 -3
- {pypipr-1.0.149.dist-info → pypipr-1.0.150.dist-info}/METADATA +172 -164
- {pypipr-1.0.149.dist-info → pypipr-1.0.150.dist-info}/RECORD +5 -5
- {pypipr-1.0.149.dist-info → pypipr-1.0.150.dist-info}/WHEEL +0 -0
- {pypipr-1.0.149.dist-info → pypipr-1.0.150.dist-info}/entry_points.txt +0 -0
pypipr/create_folder.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
1
|
+
from pathlib import Path
|
2
|
+
from time import sleep
|
2
3
|
|
3
4
|
|
4
|
-
def create_folder(folder_name):
|
5
|
+
def create_folder(folder_name, wait_until_success=True):
|
5
6
|
"""
|
6
7
|
Membuat folder.
|
7
8
|
Membuat folder secara recursive dengan permission.
|
@@ -12,5 +13,9 @@ def create_folder(folder_name):
|
|
12
13
|
create_folder("./contoh_membuat_folder/secara/recursive")
|
13
14
|
```
|
14
15
|
"""
|
15
|
-
|
16
|
+
p = Path(folder_name)
|
17
|
+
p.mkdir(parents=True, exist_ok=True)
|
18
|
+
if wait_until_success:
|
19
|
+
while not p.exists():
|
20
|
+
sleep(0.1)
|
16
21
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.150
|
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 0x7b87a2ac40>
|
252
|
+
<generator object int_range at 0x7b87a2ac40>
|
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 0x7b8798ec20>
|
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 0x7b877407c0>
|
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
|
|
@@ -441,13 +441,13 @@ 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 0x7b87a2ad40>
|
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
|
|
448
448
|
## create_folder
|
449
449
|
|
450
|
-
`create_folder(folder_name)`
|
450
|
+
`create_folder(folder_name, wait_until_success=True)`
|
451
451
|
|
452
452
|
Membuat folder.
|
453
453
|
Membuat folder secara recursive dengan permission.
|
@@ -492,9 +492,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
492
492
|
|
493
493
|
Output:
|
494
494
|
```py
|
495
|
-
2024-08-06
|
496
|
-
2024-08-06
|
497
|
-
2024-08-
|
495
|
+
2024-08-06 16:09:00.057535+07:00
|
496
|
+
2024-08-06 09:09:00.059163+00:00
|
497
|
+
2024-08-06 02:09:00.062728-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 0x7b877404f0>
|
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 0x7b87740a90>
|
655
|
+
[<function ExampleGetClassMethod.a at 0x7b877565c0>, <function ExampleGetClassMethod.b at 0x7b87756660>, <function ExampleGetClassMethod.c at 0x7b877567a0>, <function ExampleGetClassMethod.d at 0x7b87756840>]
|
656
656
|
```
|
657
657
|
|
658
658
|
## get_filesize
|
@@ -1071,7 +1071,7 @@ Output:
|
|
1071
1071
|
|
1072
1072
|
## ienumerate
|
1073
1073
|
|
1074
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1074
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x7b8f712b60>)`
|
1075
1075
|
|
1076
1076
|
meningkatkan fungsi enumerate() pada python
|
1077
1077
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1084,7 +1084,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1084
1084
|
|
1085
1085
|
Output:
|
1086
1086
|
```py
|
1087
|
-
<generator object ienumerate at
|
1087
|
+
<generator object ienumerate at 0x7b87740b80>
|
1088
1088
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1089
1089
|
```
|
1090
1090
|
|
@@ -1151,7 +1151,7 @@ print(ijoin(10, ' '))
|
|
1151
1151
|
|
1152
1152
|
Output:
|
1153
1153
|
```py
|
1154
|
-
qweqw,
|
1154
|
+
qweqw, asd, dfs, weq
|
1155
1155
|
,ini,path,seperti,url,
|
1156
1156
|
ini,path,seperti,url
|
1157
1157
|
<li>satu</li>
|
@@ -1197,9 +1197,9 @@ Output:
|
|
1197
1197
|
```py
|
1198
1198
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1199
1199
|
[['Harga Emas Hari Ini - Selasa, 06 Agustus 2024'],
|
1200
|
-
['Spot Emas USD↑2.
|
1200
|
+
['Spot Emas USD↑2.412,30 (+8,72) / oz',
|
1201
1201
|
'Kurs IDR↓16.154,00 (-80,00) / USD',
|
1202
|
-
'Emas IDR↓1.
|
1202
|
+
'Emas IDR↓1.252.860 (-1.653) / gr'],
|
1203
1203
|
['LM Antam (Jual)↓1.413.000 (-7.000) / gr',
|
1204
1204
|
'LM Antam (Beli)↓1.266.000 (-7.000) / gr']],
|
1205
1205
|
[['Harga Emas Hari Ini'],
|
@@ -1270,37 +1270,45 @@ Output:
|
|
1270
1270
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1271
1271
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1272
1272
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1273
|
-
['Ounce\xa0(oz)', '2.
|
1274
|
-
['Gram\xa0(gr)', '77,
|
1275
|
-
['Kilogram\xa0(kg)', '77.
|
1276
|
-
['Update harga emas :06 Agustus 2024, pukul
|
1277
|
-
'2024, pukul
|
1273
|
+
['Ounce\xa0(oz)', '2.412,30 (+8,72)', '16.154,00 (-80,00)', '38.968.294'],
|
1274
|
+
['Gram\xa0(gr)', '77,56', '16.154,00', '1.252.860 (-1.653)'],
|
1275
|
+
['Kilogram\xa0(kg)', '77.557,25', '16.154,00', '1.252.859.752'],
|
1276
|
+
['Update harga emas :06 Agustus 2024, pukul 16:08Update kurs :06 Agustus '
|
1277
|
+
'2024, pukul 13:10']],
|
1278
1278
|
[['Gram', 'UBS Gold 99.99%'],
|
1279
1279
|
['Jual', 'Beli'],
|
1280
1280
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1281
1281
|
['100',
|
1282
|
-
'135.
|
1283
|
-
'1.
|
1284
|
-
'
|
1285
|
-
'1.
|
1282
|
+
'135.600.000 (-400.000)',
|
1283
|
+
'1.356.000 (-4.000)',
|
1284
|
+
'129.498.000 (-1.300.000)',
|
1285
|
+
'1.294.980 (-13.000)'],
|
1286
1286
|
['50',
|
1287
|
-
'68.
|
1288
|
-
'1.
|
1289
|
-
'
|
1290
|
-
'1.
|
1287
|
+
'68.250.000 (-150.000)',
|
1288
|
+
'1.365.000 (-3.000)',
|
1289
|
+
'64.799.000 (-650.000)',
|
1290
|
+
'1.295.980 (-13.000)'],
|
1291
1291
|
['25',
|
1292
|
-
'34.
|
1293
|
-
'1.
|
1294
|
-
'32.
|
1295
|
-
'1.
|
1292
|
+
'34.150.000 (-100.000)',
|
1293
|
+
'1.366.000 (-4.000)',
|
1294
|
+
'32.498.500 (-325.000)',
|
1295
|
+
'1.299.940 (-13.000)'],
|
1296
1296
|
['10',
|
1297
|
-
'13.
|
1298
|
-
'1.
|
1299
|
-
'13.
|
1300
|
-
'1.
|
1301
|
-
['5',
|
1302
|
-
|
1303
|
-
|
1297
|
+
'13.710.000 (-40.000)',
|
1298
|
+
'1.371.000 (-4.000)',
|
1299
|
+
'13.058.000 (-130.000)',
|
1300
|
+
'1.305.800 (-13.000)'],
|
1301
|
+
['5',
|
1302
|
+
'6.880.000 (-20.000)',
|
1303
|
+
'1.376.000 (-4.000)',
|
1304
|
+
'6.584.000 (-65.000)',
|
1305
|
+
'1.316.800 (-13.000)'],
|
1306
|
+
['1',
|
1307
|
+
'1.413.000 (-7.000)',
|
1308
|
+
'1.413.000 (-7.000)',
|
1309
|
+
'1.348.000 (-13.000)',
|
1310
|
+
'1.348.000 (-13.000)'],
|
1311
|
+
['', 'Update :06 Agustus 2024, pukul 11:42']],
|
1304
1312
|
[['Konversi Satuan'],
|
1305
1313
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1306
1314
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1311,36 +1319,36 @@ Output:
|
|
1311
1319
|
['Unit', 'USD', 'IDR'],
|
1312
1320
|
['Angka', '+/-', 'Angka', '+/-'],
|
1313
1321
|
['Hari Ini', 'Kurs', '', '', '16.234', '-80-0,49%'],
|
1314
|
-
['oz', '2.403,58', '+
|
1315
|
-
['gr', '77,28', '+0,
|
1322
|
+
['oz', '2.403,58', '+8,72+0,36%', '39.019.718', '-51.424-0,13%'],
|
1323
|
+
['gr', '77,28', '+0,28+0,36%', '1.254.513', '-1.653-0,13%'],
|
1316
1324
|
['30 Hari', 'Kurs', '', '', '16.341', '-187-1,14%'],
|
1317
|
-
['oz', '2.391,59', '+
|
1318
|
-
['gr', '76,89', '+0,
|
1325
|
+
['oz', '2.391,59', '+20,71+0,87%', '39.080.996', '-112.702-0,29%'],
|
1326
|
+
['gr', '76,89', '+0,67+0,87%', '1.256.483', '-3.623-0,29%'],
|
1319
1327
|
['2 Bulan', 'Kurs', '', '', '16.279', '-125-0,77%'],
|
1320
|
-
['oz', '2.309,83', '+
|
1321
|
-
['gr', '74,26', '+3,
|
1328
|
+
['oz', '2.309,83', '+102,47+4,44%', '37.601.723', '+1.366.572+3,63%'],
|
1329
|
+
['gr', '74,26', '+3,29+4,44', '1.208.923', '+43.936+3,63%'],
|
1322
1330
|
['6 Bulan', 'Kurs', '', '', '15.734', '+420+2,67%'],
|
1323
|
-
['oz', '2.030,69', '+
|
1324
|
-
['gr', '65,29', '+12,
|
1331
|
+
['oz', '2.030,69', '+381,61+18,79%', '31.950.876', '+7.017.418+21,96%'],
|
1332
|
+
['gr', '65,29', '+12,27+18,79%', '1.027.245', '+225.615+21,96%'],
|
1325
1333
|
['1 Tahun', 'Kurs', '', '', '15.731', '+423+2,69%'],
|
1326
|
-
['oz', '1.823,86', '+
|
1327
|
-
['gr', '58,64', '+18,
|
1334
|
+
['oz', '1.823,86', '+588,44+32,26%', '28.691.142', '+10.277.153+35,82%'],
|
1335
|
+
['gr', '58,64', '+18,92+32,26%', '922.442', '+330.418+35,82%'],
|
1328
1336
|
['2 Tahun', 'Kurs', '', '', '14.929', '+1.225+8,21%'],
|
1329
|
-
['oz', '1.787,68', '+
|
1330
|
-
['gr', '57,48', '+20,
|
1337
|
+
['oz', '1.787,68', '+624,62+34,94%', '26.688.275', '+12.280.019+46,01%'],
|
1338
|
+
['gr', '57,48', '+20,08+34,94%', '858.048', '+394.812+46,01%'],
|
1331
1339
|
['3 Tahun', 'Kurs', '', '', '14.342', '+1.812+12,63%'],
|
1332
|
-
['oz', '1.763,69', '+
|
1333
|
-
['gr', '56,70', '+20,
|
1340
|
+
['oz', '1.763,69', '+648,61+36,78%', '25.294.842', '+13.673.452+54,06%'],
|
1341
|
+
['gr', '56,70', '+20,85+36,78%', '813.248', '+439.612+54,06%'],
|
1334
1342
|
['5 Tahun', 'Kurs', '', '', '14.231', '+1.923+13,51%'],
|
1335
|
-
['oz', '1.496,30', '+
|
1336
|
-
['gr', '48,11', '+29,
|
1343
|
+
['oz', '1.496,30', '+916,00+61,22%', '21.293.845', '+17.674.449+83,00%'],
|
1344
|
+
['gr', '48,11', '+29,45+61,22%', '684.613', '+568.247+83,00%']])
|
1337
1345
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1338
1346
|
[[''],
|
1339
1347
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1340
|
-
['USD', '77,
|
1341
|
-
['KURS', '16.
|
1342
|
-
['IDR', '1.
|
1343
|
-
['Selasa, 06 Agustus 2024
|
1348
|
+
['USD', '77,56↑', '+0,28+0,36%'],
|
1349
|
+
['KURS', '16.159,85↓', '-45,15-0,28%'],
|
1350
|
+
['IDR', '1.253.313,46↑', '+1.041,43+0,08%'],
|
1351
|
+
['Selasa, 06 Agustus 2024 16:08']],
|
1344
1352
|
[[''],
|
1345
1353
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1346
1354
|
'Hari Ini',
|
@@ -1351,19 +1359,19 @@ Output:
|
|
1351
1359
|
'']],
|
1352
1360
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1353
1361
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1354
|
-
['USD', '77,28', '77,28 - 77,
|
1355
|
-
['KURS', '16.205,00', '16.
|
1356
|
-
['IDR', '1.252.272,03', '1.252.272,03 - 1.
|
1362
|
+
['USD', '77,28', '77,28 - 77,56', '77,42'],
|
1363
|
+
['KURS', '16.205,00', '16.159,85 - 16.205,00', '16.182,43'],
|
1364
|
+
['IDR', '1.252.272,03', '1.252.272,03 - 1.253.313,46', '1.252.792,75'],
|
1357
1365
|
[''],
|
1358
1366
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1359
|
-
['USD', '66,32', '64,07 - 79,08', '+11,
|
1360
|
-
['KURS', '15.390,10', '15.390,00 - 16.509,65', '+
|
1361
|
-
['IDR', '1.020.729,53', '997.660,12 - 1.279.266,69', '+
|
1367
|
+
['USD', '66,32', '64,07 - 79,08', '+11,24 (16,95%)'],
|
1368
|
+
['KURS', '15.390,10', '15.390,00 - 16.509,65', '+769,75 (5,00%)'],
|
1369
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.279.266,69', '+232.583,93 (22,79%)'],
|
1362
1370
|
[''],
|
1363
1371
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1364
|
-
['USD', '62,46', '58,43 - 79,08', '+15,
|
1365
|
-
['KURS', '15.152,90', '15.152,90 - 16.509,65', '+1.
|
1366
|
-
['IDR', '946.487,57', '912.925,68 - 1.279.266,69', '+
|
1372
|
+
['USD', '62,46', '58,43 - 79,08', '+15,10 (24,18%)'],
|
1373
|
+
['KURS', '15.152,90', '15.152,90 - 16.509,65', '+1.006,95 (6,65%)'],
|
1374
|
+
['IDR', '946.487,57', '912.925,68 - 1.279.266,69', '+306.825,89 (32,42%)']])
|
1367
1375
|
```
|
1368
1376
|
|
1369
1377
|
## iloads
|
@@ -1493,7 +1501,7 @@ Output:
|
|
1493
1501
|
```py
|
1494
1502
|
8
|
1495
1503
|
['mana', 'aja']
|
1496
|
-
[<Element a at
|
1504
|
+
[<Element a at 0x7b8775f980>, <Element a at 0x7b877b1860>, <Element a at 0x7b877b1900>, <Element a at 0x7b877b1950>, <Element a at 0x7b877b19a0>, <Element a at 0x7b877b19f0>, <Element a at 0x7b877b1a40>, <Element a at 0x7b877b1a90>, <Element a at 0x7b877b1ae0>, <Element a at 0x7b877b1b30>, <Element a at 0x7b877b1b80>, <Element a at 0x7b877b1bd0>, <Element a at 0x7b877b1c20>, <Element a at 0x7b877b1c70>, <Element a at 0x7b877b1cc0>, <Element a at 0x7b877b1d10>, <Element a at 0x7b877b1d60>, <Element a at 0x7b877b1db0>, <Element a at 0x7b877b1e00>, <Element a at 0x7b877b1e50>]
|
1497
1505
|
False
|
1498
1506
|
```
|
1499
1507
|
|
@@ -1555,7 +1563,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1555
1563
|
|
1556
1564
|
Output:
|
1557
1565
|
```py
|
1558
|
-
<generator object iscandir at
|
1566
|
+
<generator object iscandir at 0x7b87a2b140>
|
1559
1567
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1560
1568
|
```
|
1561
1569
|
|
@@ -1588,89 +1596,89 @@ iprint(ivars(__import__('pypipr')))
|
|
1588
1596
|
|
1589
1597
|
Output:
|
1590
1598
|
```py
|
1591
|
-
{'function': {'avg': <function avg at
|
1592
|
-
'get_filemtime': <function get_filemtime at
|
1593
|
-
'print_colorize': <function print_colorize at
|
1594
|
-
'print_log': <function print_log at
|
1595
|
-
'console_run': <function console_run at
|
1596
|
-
'auto_reload': <function auto_reload at
|
1597
|
-
'basename': <function basename at
|
1598
|
-
'chr_to_int': <function chr_to_int at
|
1599
|
-
'int_to_chr': <function int_to_chr at
|
1600
|
-
'irange': <function irange at
|
1601
|
-
'batchmaker': <function batchmaker at
|
1602
|
-
'calculate': <function calculate at
|
1603
|
-
'batch_calculate': <function batch_calculate at
|
1604
|
-
'bin_to_int': <function bin_to_int at
|
1605
|
-
'is_empty': <function is_empty at
|
1606
|
-
'exit_if_empty': <function exit_if_empty at
|
1607
|
-
'input_char': <function input_char at
|
1608
|
-
'choices': <function choices at
|
1609
|
-
'chunk_array': <function chunk_array at
|
1610
|
-
'create_folder': <function create_folder at
|
1611
|
-
'datetime_from_string': <function datetime_from_string at
|
1612
|
-
'datetime_now': <function datetime_now at
|
1613
|
-
'dict_first': <function dict_first at
|
1614
|
-
'dirname': <function dirname at
|
1615
|
-
'django_runserver': <function django_runserver at
|
1616
|
-
'is_iterable': <function is_iterable at
|
1617
|
-
'to_str': <function to_str at
|
1618
|
-
'filter_empty': <function filter_empty at
|
1619
|
-
'get_by_index': <function get_by_index at
|
1620
|
-
'get_class_method': <function get_class_method at
|
1621
|
-
'get_filesize': <function get_filesize at
|
1622
|
-
'github_init': <function github_init at
|
1623
|
-
'github_pull': <function github_pull at
|
1624
|
-
'github_push': <function github_push at
|
1625
|
-
'github_user': <function github_user at
|
1626
|
-
'hex_to_int': <function hex_to_int at
|
1627
|
-
'iargv': <function iargv at
|
1628
|
-
'idir': <function idir at
|
1629
|
-
'idumps_html': <function idumps_html at
|
1630
|
-
'idumps': <function idumps at
|
1631
|
-
'int_to_int': <function int_to_int at
|
1632
|
-
'ienumerate': <function ienumerate at
|
1633
|
-
'ienv': <function ienv at
|
1634
|
-
'iexec': <function iexec at
|
1635
|
-
'ijoin': <function ijoin at
|
1636
|
-
'iloads_html': <function iloads_html at
|
1637
|
-
'iloads': <function iloads at
|
1638
|
-
'int_to_bin': <function int_to_bin at
|
1639
|
-
'int_to_hex': <function int_to_hex at
|
1640
|
-
'int_to_oct': <function int_to_oct at
|
1641
|
-
'is_valid_url': <function is_valid_url at
|
1642
|
-
'iopen': <function iopen at
|
1643
|
-
'iprint': <function iprint at
|
1644
|
-
'ireplace': <function ireplace at
|
1645
|
-
'iscandir': <function iscandir at
|
1646
|
-
'isplit': <function isplit at
|
1647
|
-
'ivars': <function ivars at
|
1648
|
-
'log': <function log at
|
1649
|
-
'oct_to_int': <function oct_to_int at
|
1650
|
-
'password_generator': <function password_generator at
|
1651
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1652
|
-
'pip_update_pypipr': <function pip_update_pypipr at
|
1653
|
-
'poetry_publish': <function poetry_publish at
|
1654
|
-
'poetry_update_version': <function poetry_update_version at
|
1655
|
-
'print_dir': <function print_dir at
|
1656
|
-
'print_to_last_line': <function print_to_last_line at
|
1657
|
-
'random_bool': <function random_bool at
|
1658
|
-
'restart': <function restart at
|
1659
|
-
'set_timeout': <function set_timeout at
|
1660
|
-
'sets_ordered': <function sets_ordered at
|
1661
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1662
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1663
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1664
|
-
'str_cmp': <function str_cmp at
|
1665
|
-
'text_colorize': <function text_colorize at
|
1666
|
-
'traceback_filename': <function traceback_filename at
|
1667
|
-
'traceback_framename': <function traceback_framename at
|
1599
|
+
{'function': {'avg': <function avg at 0x7b91be0040>,
|
1600
|
+
'get_filemtime': <function get_filemtime at 0x7b8f659d00>,
|
1601
|
+
'print_colorize': <function print_colorize at 0x7b8f659ee0>,
|
1602
|
+
'print_log': <function print_log at 0x7b8f659da0>,
|
1603
|
+
'console_run': <function console_run at 0x7b8f659e40>,
|
1604
|
+
'auto_reload': <function auto_reload at 0x7b8f659620>,
|
1605
|
+
'basename': <function basename at 0x7b8f659c60>,
|
1606
|
+
'chr_to_int': <function chr_to_int at 0x7b8f65a480>,
|
1607
|
+
'int_to_chr': <function int_to_chr at 0x7b8f65a520>,
|
1608
|
+
'irange': <function irange at 0x7b8f65a7a0>,
|
1609
|
+
'batchmaker': <function batchmaker at 0x7b8f65a160>,
|
1610
|
+
'calculate': <function calculate at 0x7b8f65a2a0>,
|
1611
|
+
'batch_calculate': <function batch_calculate at 0x7b8f65a020>,
|
1612
|
+
'bin_to_int': <function bin_to_int at 0x7b8f65a0c0>,
|
1613
|
+
'is_empty': <function is_empty at 0x7b8f65af20>,
|
1614
|
+
'exit_if_empty': <function exit_if_empty at 0x7b8f65ade0>,
|
1615
|
+
'input_char': <function input_char at 0x7b8f65a3e0>,
|
1616
|
+
'choices': <function choices at 0x7b8f65b1a0>,
|
1617
|
+
'chunk_array': <function chunk_array at 0x7b8f65b240>,
|
1618
|
+
'create_folder': <function create_folder at 0x7b8f65b380>,
|
1619
|
+
'datetime_from_string': <function datetime_from_string at 0x7b8f65b420>,
|
1620
|
+
'datetime_now': <function datetime_now at 0x7b8f65b4c0>,
|
1621
|
+
'dict_first': <function dict_first at 0x7b8f67d6c0>,
|
1622
|
+
'dirname': <function dirname at 0x7b8f67d760>,
|
1623
|
+
'django_runserver': <function django_runserver at 0x7b8f67da80>,
|
1624
|
+
'is_iterable': <function is_iterable at 0x7b8f67de40>,
|
1625
|
+
'to_str': <function to_str at 0x7b8f67dee0>,
|
1626
|
+
'filter_empty': <function filter_empty at 0x7b8f67dd00>,
|
1627
|
+
'get_by_index': <function get_by_index at 0x7b8f67dda0>,
|
1628
|
+
'get_class_method': <function get_class_method at 0x7b8f67df80>,
|
1629
|
+
'get_filesize': <function get_filesize at 0x7b8f67e0c0>,
|
1630
|
+
'github_init': <function github_init at 0x7b8f67e160>,
|
1631
|
+
'github_pull': <function github_pull at 0x7b8f67e200>,
|
1632
|
+
'github_push': <function github_push at 0x7b8f67e340>,
|
1633
|
+
'github_user': <function github_user at 0x7b8f67e3e0>,
|
1634
|
+
'hex_to_int': <function hex_to_int at 0x7b8f67e480>,
|
1635
|
+
'iargv': <function iargv at 0x7b8f67e520>,
|
1636
|
+
'idir': <function idir at 0x7b8f67e5c0>,
|
1637
|
+
'idumps_html': <function idumps_html at 0x7b8f67eca0>,
|
1638
|
+
'idumps': <function idumps at 0x7b8f67e700>,
|
1639
|
+
'int_to_int': <function int_to_int at 0x7b8f712b60>,
|
1640
|
+
'ienumerate': <function ienumerate at 0x7b8f67ec00>,
|
1641
|
+
'ienv': <function ienv at 0x7b8f701080>,
|
1642
|
+
'iexec': <function iexec at 0x7b8f712c00>,
|
1643
|
+
'ijoin': <function ijoin at 0x7b8f712d40>,
|
1644
|
+
'iloads_html': <function iloads_html at 0x7b8f712f20>,
|
1645
|
+
'iloads': <function iloads at 0x7b925a2020>,
|
1646
|
+
'int_to_bin': <function int_to_bin at 0x7b8f712ca0>,
|
1647
|
+
'int_to_hex': <function int_to_hex at 0x7b8f712e80>,
|
1648
|
+
'int_to_oct': <function int_to_oct at 0x7b8f712fc0>,
|
1649
|
+
'is_valid_url': <function is_valid_url at 0x7b8f4dad40>,
|
1650
|
+
'iopen': <function iopen at 0x7b8f7131a0>,
|
1651
|
+
'iprint': <function iprint at 0x7b8f4da840>,
|
1652
|
+
'ireplace': <function ireplace at 0x7b8f4da980>,
|
1653
|
+
'iscandir': <function iscandir at 0x7b890c3b00>,
|
1654
|
+
'isplit': <function isplit at 0x7b890c3ba0>,
|
1655
|
+
'ivars': <function ivars at 0x7b890c3c40>,
|
1656
|
+
'log': <function log at 0x7b890c3ce0>,
|
1657
|
+
'oct_to_int': <function oct_to_int at 0x7b890c3d80>,
|
1658
|
+
'password_generator': <function password_generator at 0x7b890c3e20>,
|
1659
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x7b890c3f60>,
|
1660
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x7b890d0040>,
|
1661
|
+
'poetry_publish': <function poetry_publish at 0x7b890d00e0>,
|
1662
|
+
'poetry_update_version': <function poetry_update_version at 0x7b890d0220>,
|
1663
|
+
'print_dir': <function print_dir at 0x7b890d0400>,
|
1664
|
+
'print_to_last_line': <function print_to_last_line at 0x7b890d04a0>,
|
1665
|
+
'random_bool': <function random_bool at 0x7b890d0540>,
|
1666
|
+
'restart': <function restart at 0x7b890d05e0>,
|
1667
|
+
'set_timeout': <function set_timeout at 0x7b890d0680>,
|
1668
|
+
'sets_ordered': <function sets_ordered at 0x7b890d0720>,
|
1669
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x7b890d07c0>,
|
1670
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x7b890d09a0>,
|
1671
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x7b890d1120>,
|
1672
|
+
'str_cmp': <function str_cmp at 0x7b890d11c0>,
|
1673
|
+
'text_colorize': <function text_colorize at 0x7b890d1260>,
|
1674
|
+
'traceback_filename': <function traceback_filename at 0x7b890d1300>,
|
1675
|
+
'traceback_framename': <function traceback_framename at 0x7b890d13a0>},
|
1668
1676
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1669
1677
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1670
1678
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1671
1679
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1672
1680
|
'variable': {'LINUX': True,
|
1673
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1681
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7b91beea90>,
|
1674
1682
|
'WINDOWS': False},
|
1675
1683
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1676
1684
|
'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'>,
|
@@ -1761,7 +1769,7 @@ print(password_generator())
|
|
1761
1769
|
|
1762
1770
|
Output:
|
1763
1771
|
```py
|
1764
|
-
|
1772
|
+
{?um$Lcj
|
1765
1773
|
```
|
1766
1774
|
|
1767
1775
|
## pip_freeze_without_version
|
@@ -1823,7 +1831,7 @@ Output:
|
|
1823
1831
|
__enter__ : https:/www.google.com
|
1824
1832
|
__fspath__ : https:/www.google.com
|
1825
1833
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1826
|
-
__hash__ :
|
1834
|
+
__hash__ : 4812105544279715249
|
1827
1835
|
__init__ : None
|
1828
1836
|
__init_subclass__ : None
|
1829
1837
|
__module__ : pathlib
|
@@ -1836,8 +1844,8 @@ Output:
|
|
1836
1844
|
_cached_cparts : ['https:', 'www.google.com']
|
1837
1845
|
_cparts : ['https:', 'www.google.com']
|
1838
1846
|
_drv :
|
1839
|
-
_flavour : <pathlib._PosixFlavour object at
|
1840
|
-
_hash :
|
1847
|
+
_flavour : <pathlib._PosixFlavour object at 0x7b919a16d0>
|
1848
|
+
_hash : 4812105544279715249
|
1841
1849
|
_parts : ['https:', 'www.google.com']
|
1842
1850
|
_root :
|
1843
1851
|
_str : https:/www.google.com
|
@@ -1859,7 +1867,7 @@ Output:
|
|
1859
1867
|
is_reserved : False
|
1860
1868
|
is_socket : False
|
1861
1869
|
is_symlink : False
|
1862
|
-
iterdir : <generator object Path.iterdir at
|
1870
|
+
iterdir : <generator object Path.iterdir at 0x7b8775a500>
|
1863
1871
|
joinpath : https:/www.google.com
|
1864
1872
|
name : www.google.com
|
1865
1873
|
parent : https:
|
@@ -1944,7 +1952,7 @@ x.cancel()
|
|
1944
1952
|
|
1945
1953
|
Output:
|
1946
1954
|
```py
|
1947
|
-
<Timer(Thread-2, started
|
1955
|
+
<Timer(Thread-2, started 530527010032)>
|
1948
1956
|
menghentikan timeout 7
|
1949
1957
|
```
|
1950
1958
|
|
@@ -1962,7 +1970,7 @@ print(list(sets_ordered(array)))
|
|
1962
1970
|
|
1963
1971
|
Output:
|
1964
1972
|
```py
|
1965
|
-
<generator object sets_ordered at
|
1973
|
+
<generator object sets_ordered at 0x7b8777cc70>
|
1966
1974
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1967
1975
|
```
|
1968
1976
|
|
@@ -2076,15 +2084,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2076
2084
|
|
2077
2085
|
Output:
|
2078
2086
|
```py
|
2079
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2087
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x7b8777c1e0>,
|
2080
2088
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2081
2089
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2082
2090
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2083
|
-
{'a':
|
2084
|
-
{'a':
|
2085
|
-
{'a':
|
2086
|
-
{'a':
|
2087
|
-
{'a':
|
2091
|
+
{'a': 179, 'b': 134, 'c': 100, 'd': 144}
|
2092
|
+
{'a': 146, 'b': 146, 'c': 100, 'd': 121}
|
2093
|
+
{'a': 132, 'b': 138, 'c': 100, 'd': 123}
|
2094
|
+
{'a': 125, 'b': 133, 'c': 100, 'd': 129}
|
2095
|
+
{'a': 121, 'b': 132, 'c': 100, 'd': 123}
|
2088
2096
|
```
|
2089
2097
|
|
2090
2098
|
## PintUregQuantity
|
@@ -19,7 +19,7 @@ pypipr/choices.py,sha256=qhRdquHqPWUKVdYwi7KDDf1_CYJi9i5E52hs2mMxCWs,1473
|
|
19
19
|
pypipr/chr_to_int.py,sha256=5ETJZag1eM8wa2ceIGsmNP-jNufC5bCScghTLcwGEAI,459
|
20
20
|
pypipr/chunk_array.py,sha256=aodjp-daihl-Xd8kPqcpHZICZub7Jx0QBqyoF0bd0dY,385
|
21
21
|
pypipr/console_run.py,sha256=vCJqDa1rExisqaFLNeWM-hnuXHfUfiYcyNAOJjldOHs,525
|
22
|
-
pypipr/create_folder.py,sha256=
|
22
|
+
pypipr/create_folder.py,sha256=YgK3Rhg-v8314VNSgUvq7LgyLHlpHGBYXaa1RgRsbxo,523
|
23
23
|
pypipr/datetime_from_string.py,sha256=-GJ_QHD1feUMX0o8nwCPHGflDPXr84ovN4Awnk1T9r8,466
|
24
24
|
pypipr/datetime_now.py,sha256=YEaatUOp0KBWYRhOFnxnVW0X7C1XEx3dpdBEn5Vwy9w,379
|
25
25
|
pypipr/dict_first.py,sha256=X_pSaY0DLGZJSR2zJBa17yqbwAFLJrVpzb2gxR5wzZg,377
|
@@ -85,7 +85,7 @@ pypipr/text_colorize.py,sha256=IVjaCnXBSBu4Rh8pTO3CxDvxpA265HVwyKX_-PRXCcI,396
|
|
85
85
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
86
86
|
pypipr/traceback_filename.py,sha256=4o85J0N8clI0cM6NTGcKZ4zxR9yS7W2NS_bz3J2_PnY,288
|
87
87
|
pypipr/traceback_framename.py,sha256=_mullrAZzMhBFEFVCgdsmkYQmYUkd58o-J-HuMntKyc,291
|
88
|
-
pypipr-1.0.
|
89
|
-
pypipr-1.0.
|
90
|
-
pypipr-1.0.
|
91
|
-
pypipr-1.0.
|
88
|
+
pypipr-1.0.150.dist-info/METADATA,sha256=4y_Ig9qEm1Vm825C4cKIERF8uoUbjcYuYPhBrsmxviU,56901
|
89
|
+
pypipr-1.0.150.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
90
|
+
pypipr-1.0.150.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
91
|
+
pypipr-1.0.150.dist-info/RECORD,,
|
File without changes
|
File without changes
|