pypipr 1.0.149__py3-none-any.whl → 1.0.151__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pypipr/__init__.py +1 -0
- pypipr/create_folder.py +8 -3
- pypipr/repath.py +46 -0
- {pypipr-1.0.149.dist-info → pypipr-1.0.151.dist-info}/METADATA +209 -203
- {pypipr-1.0.149.dist-info → pypipr-1.0.151.dist-info}/RECORD +7 -7
- pypipr/TextCase.py.bak +0 -58
- {pypipr-1.0.149.dist-info → pypipr-1.0.151.dist-info}/WHEEL +0 -0
- {pypipr-1.0.149.dist-info → pypipr-1.0.151.dist-info}/entry_points.txt +0 -0
pypipr/__init__.py
CHANGED
@@ -71,6 +71,7 @@ from .print_dir import print_dir
|
|
71
71
|
from .print_log import print_log
|
72
72
|
from .print_to_last_line import print_to_last_line
|
73
73
|
from .random_bool import random_bool
|
74
|
+
from .repath import repath
|
74
75
|
from .restart import restart
|
75
76
|
from .set_timeout import set_timeout
|
76
77
|
from .sets_ordered import sets_ordered
|
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
|
|
pypipr/repath.py
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
from pathlib import Path
|
2
|
+
|
3
|
+
|
4
|
+
def repath(
|
5
|
+
path: Path,
|
6
|
+
folder_name=None,
|
7
|
+
prepand_folder=None,
|
8
|
+
append_folder=None,
|
9
|
+
file_name=None,
|
10
|
+
prepand_filename=None,
|
11
|
+
append_filename=None,
|
12
|
+
extension=None,
|
13
|
+
prepand_extension=None,
|
14
|
+
append_extension=None,
|
15
|
+
):
|
16
|
+
# Handle the directory (folder) part
|
17
|
+
parent = path.parent
|
18
|
+
if folder_name:
|
19
|
+
parent = Path(folder_name)
|
20
|
+
if prepand_folder:
|
21
|
+
parent = Path(prepand_folder) / parent
|
22
|
+
if append_folder:
|
23
|
+
parent = parent / append_folder
|
24
|
+
|
25
|
+
# Handle the file name part
|
26
|
+
name = path.stem # Gets the file name without the extension
|
27
|
+
if file_name:
|
28
|
+
name = file_name
|
29
|
+
if prepand_filename:
|
30
|
+
name = prepand_filename + name
|
31
|
+
if append_filename:
|
32
|
+
name = name + append_filename
|
33
|
+
|
34
|
+
# Handle the extension part
|
35
|
+
ext = path.suffix # Gets the file extension (including the dot)
|
36
|
+
if extension:
|
37
|
+
ext = extension
|
38
|
+
if prepand_extension:
|
39
|
+
ext = prepand_extension + ext
|
40
|
+
if append_extension:
|
41
|
+
ext = ext + append_extension
|
42
|
+
|
43
|
+
# Combine everything into a new path
|
44
|
+
new_path = parent / (name + ext)
|
45
|
+
|
46
|
+
return new_path
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.151
|
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 0x733e4d2c40>
|
252
|
+
<generator object int_range at 0x733e4d2c40>
|
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 0x733e43ed40>
|
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 0x733e1906d0>
|
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 0x733e4d2d40>
|
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-
|
496
|
-
2024-08-
|
497
|
-
2024-08-
|
495
|
+
2024-08-10 10:56:25.827105+07:00
|
496
|
+
2024-08-10 03:56:25.827921+00:00
|
497
|
+
2024-08-09 20:56:25.830766-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 0x733e190400>
|
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 0x733e1909a0>
|
655
|
+
[<function ExampleGetClassMethod.a at 0x733e1aa700>, <function ExampleGetClassMethod.b at 0x733e1aa7a0>, <function ExampleGetClassMethod.c at 0x733e1a8680>, <function ExampleGetClassMethod.d at 0x733e1aa980>]
|
656
656
|
```
|
657
657
|
|
658
658
|
## get_filesize
|
@@ -857,6 +857,7 @@ Output:
|
|
857
857
|
'random',
|
858
858
|
'random_bool',
|
859
859
|
're',
|
860
|
+
'repath',
|
860
861
|
'requests',
|
861
862
|
'restart',
|
862
863
|
'set_timeout',
|
@@ -1071,7 +1072,7 @@ Output:
|
|
1071
1072
|
|
1072
1073
|
## ienumerate
|
1073
1074
|
|
1074
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1075
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x73411ceb60>)`
|
1075
1076
|
|
1076
1077
|
meningkatkan fungsi enumerate() pada python
|
1077
1078
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1084,7 +1085,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1084
1085
|
|
1085
1086
|
Output:
|
1086
1087
|
```py
|
1087
|
-
<generator object ienumerate at
|
1088
|
+
<generator object ienumerate at 0x733e190a90>
|
1088
1089
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1089
1090
|
```
|
1090
1091
|
|
@@ -1151,7 +1152,7 @@ print(ijoin(10, ' '))
|
|
1151
1152
|
|
1152
1153
|
Output:
|
1153
1154
|
```py
|
1154
|
-
qweqw, dfs,
|
1155
|
+
qweqw, dfs, weq, asd
|
1155
1156
|
,ini,path,seperti,url,
|
1156
1157
|
ini,path,seperti,url
|
1157
1158
|
<li>satu</li>
|
@@ -1196,111 +1197,111 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1196
1197
|
Output:
|
1197
1198
|
```py
|
1198
1199
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1199
|
-
[['Harga Emas Hari Ini -
|
1200
|
-
['Spot Emas USD
|
1201
|
-
'Kurs
|
1202
|
-
'Emas IDR↓1.
|
1203
|
-
['LM Antam (Jual)↓1.
|
1204
|
-
'LM Antam (Beli)↓1.
|
1200
|
+
[['Harga Emas Hari Ini - Sabtu, 10 Agustus 2024'],
|
1201
|
+
['Spot Emas USD↓2.431,10 (-2,66) / oz',
|
1202
|
+
'Kurs IDR15.952,00 / USD',
|
1203
|
+
'Emas IDR↓1.246.835 (-1.364) / gr'],
|
1204
|
+
['LM Antam (Jual)↓1.401.000 (-8.000) / gr',
|
1205
|
+
'LM Antam (Beli)↓1.253.000 (-6.000) / gr']],
|
1205
1206
|
[['Harga Emas Hari Ini'],
|
1206
1207
|
['Gram', 'Gedung Antam Jakarta', 'Pegadaian'],
|
1207
1208
|
['per Gram (Rp)', 'per Batangan (Rp)', 'per Gram (Rp)', 'per Batangan (Rp)'],
|
1208
1209
|
['1000',
|
1209
|
-
'1.
|
1210
|
-
'1.
|
1210
|
+
'1.342 (-8)',
|
1211
|
+
'1.341.600 (-8.000)',
|
1211
1212
|
'1.043.040 (+8.200)',
|
1212
1213
|
'1.043.040.000 (+8.200.000)'],
|
1213
1214
|
['500',
|
1214
|
-
'2.
|
1215
|
-
'1.
|
1215
|
+
'2.683 (-16)',
|
1216
|
+
'1.341.640 (-8.000)',
|
1216
1217
|
'1.043.082 (+8.200)',
|
1217
1218
|
'521.541.000 (+4.100.000)'],
|
1218
1219
|
['250',
|
1219
|
-
'5.
|
1220
|
-
'1.
|
1220
|
+
'5.368 (-32)',
|
1221
|
+
'1.342.060 (-8.000)',
|
1221
1222
|
'1.043.512 (+8.200)',
|
1222
1223
|
'260.878.000 (+2.050.000)'],
|
1223
1224
|
['100',
|
1224
|
-
'13.
|
1225
|
-
'1.
|
1225
|
+
'13.431 (-80)',
|
1226
|
+
'1.343.120 (-8.000)',
|
1226
1227
|
'1.044.600 (+8.200)',
|
1227
1228
|
'104.460.000 (+820.000)'],
|
1228
1229
|
['50',
|
1229
|
-
'
|
1230
|
-
'1.
|
1230
|
+
'26.878 (-160)',
|
1231
|
+
'1.343.900 (-8.000)',
|
1231
1232
|
'1.045.400 (+8.200)',
|
1232
1233
|
'52.270.000 (+410.000)'],
|
1233
1234
|
['25',
|
1234
|
-
'
|
1235
|
-
'1.
|
1235
|
+
'53.819 (-320)',
|
1236
|
+
'1.345.480 (-8.000)',
|
1236
1237
|
'1.047.040 (+8.200)',
|
1237
1238
|
'26.176.000 (+205.000)'],
|
1238
1239
|
['10',
|
1239
|
-
'
|
1240
|
-
'1.
|
1240
|
+
'135.050 (-800)',
|
1241
|
+
'1.350.500 (-8.000)',
|
1241
1242
|
'1.052.200 (+8.200)',
|
1242
1243
|
'10.522.000 (+82.000)'],
|
1243
1244
|
['5',
|
1244
|
-
'
|
1245
|
-
'1.
|
1245
|
+
'271.200 (-1.600)',
|
1246
|
+
'1.356.000 (-8.000)',
|
1246
1247
|
'1.057.800 (+8.200)',
|
1247
1248
|
'5.289.000 (+41.000)'],
|
1248
1249
|
['3',
|
1249
|
-
'
|
1250
|
-
'1.
|
1250
|
+
'454.222 (-2.667)',
|
1251
|
+
'1.362.667 (-8.000)',
|
1251
1252
|
'1.064.667 (+8.000)',
|
1252
1253
|
'3.194.000 (+24.000)'],
|
1253
1254
|
['2',
|
1254
|
-
'
|
1255
|
-
'1.
|
1255
|
+
'685.500 (-4.000)',
|
1256
|
+
'1.371.000 (-8.000)',
|
1256
1257
|
'1.073.500 (+8.500)',
|
1257
1258
|
'2.147.000 (+17.000)'],
|
1258
1259
|
['1',
|
1259
|
-
'1.
|
1260
|
-
'1.
|
1260
|
+
'1.401.000 (-8.000)',
|
1261
|
+
'1.401.000 (-8.000)',
|
1261
1262
|
'1.104.000 (+8.000)',
|
1262
1263
|
'1.104.000 (+8.000)'],
|
1263
1264
|
['0.5',
|
1264
|
-
'3.
|
1265
|
-
'1.
|
1265
|
+
'3.002.000 (-16.000)',
|
1266
|
+
'1.501.000 (-8.000)',
|
1266
1267
|
'1.208.000 (+8.000)',
|
1267
1268
|
'604.000 (+4.000)'],
|
1268
|
-
['Update harga LM Antam :
|
1269
|
-
':Rp. 1.
|
1269
|
+
['Update harga LM Antam :10 Agustus 2024, pukul 08:31Harga pembelian kembali '
|
1270
|
+
':Rp. 1.253.000/gram (-6.000)',
|
1270
1271
|
'Update harga LM Pegadaian :31 Agustus 2023']],
|
1271
|
-
[['Spot Harga Emas Hari Ini (Market
|
1272
|
+
[['Spot Harga Emas Hari Ini (Market Close)'],
|
1272
1273
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1273
|
-
['Ounce\xa0(oz)', '2.
|
1274
|
-
['Gram\xa0(gr)', '
|
1275
|
-
['Kilogram\xa0(kg)', '
|
1276
|
-
['Update harga emas :
|
1277
|
-
'2024, pukul
|
1274
|
+
['Ounce\xa0(oz)', '2.431,10 (-2,66)', '15.952,00', '38.780.907'],
|
1275
|
+
['Gram\xa0(gr)', '78,16', '15.952,00', '1.246.835 (-1.364)'],
|
1276
|
+
['Kilogram\xa0(kg)', '78.161,68', '15.952,00', '1.246.835.120'],
|
1277
|
+
['Update harga emas :10 Agustus 2024, pukul 10:56Update kurs :09 Agustus '
|
1278
|
+
'2024, pukul 13:10']],
|
1278
1279
|
[['Gram', 'UBS Gold 99.99%'],
|
1279
1280
|
['Jual', 'Beli'],
|
1280
1281
|
['/ Batang', '/ Gram', '/ Batang', '/ Gram'],
|
1281
1282
|
['100',
|
1282
|
-
'135.
|
1283
|
-
'1.
|
1284
|
-
'
|
1285
|
-
'1.
|
1283
|
+
'135.800.000 (-800.000)',
|
1284
|
+
'1.358.000 (-8.000)',
|
1285
|
+
'128.598.000',
|
1286
|
+
'1.285.980'],
|
1286
1287
|
['50',
|
1287
|
-
'68.
|
1288
|
-
'1.
|
1289
|
-
'
|
1290
|
-
'1.
|
1288
|
+
'68.150.000 (-400.000)',
|
1289
|
+
'1.363.000 (-8.000)',
|
1290
|
+
'64.349.000',
|
1291
|
+
'1.286.980'],
|
1291
1292
|
['25',
|
1292
|
-
'34.
|
1293
|
-
'1.
|
1294
|
-
'32.
|
1295
|
-
'1.
|
1293
|
+
'34.100.000 (-200.000)',
|
1294
|
+
'1.364.000 (-8.000)',
|
1295
|
+
'32.273.500',
|
1296
|
+
'1.290.940'],
|
1296
1297
|
['10',
|
1297
|
-
'13.
|
1298
|
-
'1.
|
1299
|
-
'
|
1300
|
-
'1.
|
1301
|
-
['5', '6.
|
1302
|
-
['1', '1.
|
1303
|
-
['', 'Update :
|
1298
|
+
'13.720.000 (-80.000)',
|
1299
|
+
'1.372.000 (-8.000)',
|
1300
|
+
'12.968.000',
|
1301
|
+
'1.296.800'],
|
1302
|
+
['5', '6.885.000 (-40.000)', '1.377.000 (-8.000)', '6.539.000', '1.307.800'],
|
1303
|
+
['1', '1.411.000 (-8.000)', '1.411.000 (-8.000)', '1.339.000', '1.339.000'],
|
1304
|
+
['', 'Update :10 Agustus 2024, pukul 08:46']],
|
1304
1305
|
[['Konversi Satuan'],
|
1305
1306
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1306
1307
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1310,37 +1311,37 @@ Output:
|
|
1310
1311
|
['Waktu', 'Emas'],
|
1311
1312
|
['Unit', 'USD', 'IDR'],
|
1312
1313
|
['Angka', '+/-', 'Angka', '+/-'],
|
1313
|
-
['Hari Ini', 'Kurs', '', '', '
|
1314
|
-
['oz', '2.
|
1315
|
-
['gr', '
|
1316
|
-
['30 Hari', 'Kurs', '', '', '16.
|
1317
|
-
['oz', '2.
|
1318
|
-
['gr', '
|
1319
|
-
['2 Bulan', 'Kurs', '', '', '16.
|
1320
|
-
['oz', '2.
|
1321
|
-
['gr', '74,
|
1322
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1323
|
-
['oz', '2.
|
1324
|
-
['gr', '
|
1325
|
-
['1 Tahun', 'Kurs', '', '', '15.731', '+
|
1326
|
-
['oz', '1.823,86', '+
|
1327
|
-
['gr', '58,64', '+
|
1328
|
-
['2 Tahun', 'Kurs', '', '', '14.
|
1329
|
-
['oz', '1.
|
1330
|
-
['gr', '57,
|
1331
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1332
|
-
['oz', '1.
|
1333
|
-
['gr', '56,
|
1334
|
-
['5 Tahun', 'Kurs', '', '', '14.
|
1335
|
-
['oz', '1.
|
1336
|
-
['gr', '48,
|
1314
|
+
['Hari Ini', 'Kurs', '', '', '15.952', '%'],
|
1315
|
+
['oz', '2.433,76', '-2,66-0,11%', '38.823.340', '-42.432-0,11%'],
|
1316
|
+
['gr', '78,25', '-0,09-0,11%', '1.248.199', '-1.364-0,11%'],
|
1317
|
+
['30 Hari', 'Kurs', '', '', '16.256', '-304-1,87%'],
|
1318
|
+
['oz', '2.413,73', '+17,37+0,72%', '39.237.595', '-456.688-1,16%'],
|
1319
|
+
['gr', '77,60', '+0,56+0,72%', '1.261.518', '-14.683-1,16%'],
|
1320
|
+
['2 Bulan', 'Kurs', '', '', '16.290', '-338-2,07%'],
|
1321
|
+
['oz', '2.308,23', '+122,87+5,32%', '37.601.067', '+1.179.840+3,14%'],
|
1322
|
+
['gr', '74,21', '+3,95+5,32', '1.208.902', '+37.933+3,14%'],
|
1323
|
+
['6 Bulan', 'Kurs', '', '', '15.685', '+267+1,70%'],
|
1324
|
+
['oz', '2.015,64', '+415,46+20,61%', '31.615.313', '+7.165.594+22,66%'],
|
1325
|
+
['gr', '64,80', '+13,36+20,61%', '1.016.456', '+230.379+22,66%'],
|
1326
|
+
['1 Tahun', 'Kurs', '', '', '15.731', '+221+1,40%'],
|
1327
|
+
['oz', '1.823,86', '+607,24+33,29%', '28.691.142', '+10.089.766+35,17%'],
|
1328
|
+
['gr', '58,64', '+19,52+33,29%', '922.442', '+324.393+35,17%'],
|
1329
|
+
['2 Tahun', 'Kurs', '', '', '14.875', '+1.077+7,24%'],
|
1330
|
+
['oz', '1.789,33', '+641,77+35,87%', '26.616.302', '+12.164.606+45,70%'],
|
1331
|
+
['gr', '57,53', '+20,63+35,87%', '855.734', '+391.101+45,70%'],
|
1332
|
+
['3 Tahun', 'Kurs', '', '', '14.378', '+1.574+10,95%'],
|
1333
|
+
['oz', '1.750,15', '+680,95+38,91%', '25.163.657', '+13.617.251+54,11%'],
|
1334
|
+
['gr', '56,27', '+21,89+38,91%', '809.030', '+437.805+54,11%'],
|
1335
|
+
['5 Tahun', 'Kurs', '', '', '14.220', '+1.732+12,18%'],
|
1336
|
+
['oz', '1.506,03', '+925,07+61,42%', '21.415.747', '+17.365.161+81,09%'],
|
1337
|
+
['gr', '48,42', '+29,74+61,42%', '688.532', '+558.303+81,09%']])
|
1337
1338
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1338
1339
|
[[''],
|
1339
1340
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1340
|
-
['USD', '
|
1341
|
-
['KURS', '
|
1342
|
-
['IDR', '1.
|
1343
|
-
['
|
1341
|
+
['USD', '78,16↓', '-0,09-0,12%'],
|
1342
|
+
['KURS', '15.949,90↑', '+7,15+0,04%'],
|
1343
|
+
['IDR', '1.246.670,98↓', '-804,58-0,06%'],
|
1344
|
+
['Sabtu, 10 Agustus 2024 10:56']],
|
1344
1345
|
[[''],
|
1345
1346
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1346
1347
|
'Hari Ini',
|
@@ -1351,19 +1352,19 @@ Output:
|
|
1351
1352
|
'']],
|
1352
1353
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1353
1354
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1354
|
-
['USD', '
|
1355
|
-
['KURS', '
|
1356
|
-
['IDR', '1.
|
1355
|
+
['USD', '78,25', '78,16 - 78,25', '78,21'],
|
1356
|
+
['KURS', '15.942,75', '15.942,75 - 15.949,90', '15.946,33'],
|
1357
|
+
['IDR', '1.247.475,56', '1.246.670,98 - 1.247.475,56', '1.247.073,27'],
|
1357
1358
|
[''],
|
1358
1359
|
['', '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', '+
|
1360
|
+
['USD', '66,32', '64,07 - 79,08', '+11,84 (17,85%)'],
|
1361
|
+
['KURS', '15.390,10', '15.390,00 - 16.509,65', '+559,80 (3,64%)'],
|
1362
|
+
['IDR', '1.020.729,53', '997.660,12 - 1.279.266,69', '+225.941,45 (22,14%)'],
|
1362
1363
|
[''],
|
1363
1364
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1364
|
-
['USD', '62
|
1365
|
-
['KURS', '15.
|
1366
|
-
['IDR', '
|
1365
|
+
['USD', '61,62', '58,43 - 79,08', '+16,54 (26,84%)'],
|
1366
|
+
['KURS', '15.199,25', '15.203,25 - 16.509,65', '+750,65 (4,94%)'],
|
1367
|
+
['IDR', '936.613,83', '912.925,68 - 1.279.266,69', '+310.057,15 (33,10%)']])
|
1367
1368
|
```
|
1368
1369
|
|
1369
1370
|
## iloads
|
@@ -1493,7 +1494,7 @@ Output:
|
|
1493
1494
|
```py
|
1494
1495
|
8
|
1495
1496
|
['mana', 'aja']
|
1496
|
-
[<Element a at
|
1497
|
+
[<Element a at 0x733e1b2170>, <Element a at 0x733e2018b0>, <Element a at 0x733e201950>, <Element a at 0x733e2019a0>, <Element a at 0x733e2019f0>, <Element a at 0x733e201a40>, <Element a at 0x733e201a90>, <Element a at 0x733e201ae0>, <Element a at 0x733e201b30>, <Element a at 0x733e201b80>, <Element a at 0x733e201bd0>, <Element a at 0x733e201c20>, <Element a at 0x733e201c70>, <Element a at 0x733e201cc0>, <Element a at 0x733e201d10>, <Element a at 0x733e201d60>, <Element a at 0x733e201db0>, <Element a at 0x733e201e00>, <Element a at 0x733e201e50>, <Element a at 0x733e201ea0>]
|
1497
1498
|
False
|
1498
1499
|
```
|
1499
1500
|
|
@@ -1555,7 +1556,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1555
1556
|
|
1556
1557
|
Output:
|
1557
1558
|
```py
|
1558
|
-
<generator object iscandir at
|
1559
|
+
<generator object iscandir at 0x733e4d3140>
|
1559
1560
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1560
1561
|
```
|
1561
1562
|
|
@@ -1588,89 +1589,90 @@ iprint(ivars(__import__('pypipr')))
|
|
1588
1589
|
|
1589
1590
|
Output:
|
1590
1591
|
```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
|
-
'
|
1659
|
-
'
|
1660
|
-
'
|
1661
|
-
'
|
1662
|
-
'
|
1663
|
-
'
|
1664
|
-
'
|
1665
|
-
'
|
1666
|
-
'
|
1667
|
-
'
|
1592
|
+
{'function': {'avg': <function avg at 0x73471e0040>,
|
1593
|
+
'get_filemtime': <function get_filemtime at 0x7341119d00>,
|
1594
|
+
'print_colorize': <function print_colorize at 0x7341119ee0>,
|
1595
|
+
'print_log': <function print_log at 0x7341119da0>,
|
1596
|
+
'console_run': <function console_run at 0x7341119e40>,
|
1597
|
+
'auto_reload': <function auto_reload at 0x7341119620>,
|
1598
|
+
'basename': <function basename at 0x7341119c60>,
|
1599
|
+
'chr_to_int': <function chr_to_int at 0x734111a480>,
|
1600
|
+
'int_to_chr': <function int_to_chr at 0x734111a520>,
|
1601
|
+
'irange': <function irange at 0x734111a7a0>,
|
1602
|
+
'batchmaker': <function batchmaker at 0x734111a160>,
|
1603
|
+
'calculate': <function calculate at 0x734111a2a0>,
|
1604
|
+
'batch_calculate': <function batch_calculate at 0x734111a020>,
|
1605
|
+
'bin_to_int': <function bin_to_int at 0x734111a0c0>,
|
1606
|
+
'is_empty': <function is_empty at 0x734111af20>,
|
1607
|
+
'exit_if_empty': <function exit_if_empty at 0x734111ade0>,
|
1608
|
+
'input_char': <function input_char at 0x734111a3e0>,
|
1609
|
+
'choices': <function choices at 0x734111b1a0>,
|
1610
|
+
'chunk_array': <function chunk_array at 0x734111b240>,
|
1611
|
+
'create_folder': <function create_folder at 0x734111b380>,
|
1612
|
+
'datetime_from_string': <function datetime_from_string at 0x734111b420>,
|
1613
|
+
'datetime_now': <function datetime_now at 0x734111b4c0>,
|
1614
|
+
'dict_first': <function dict_first at 0x73411396c0>,
|
1615
|
+
'dirname': <function dirname at 0x7341139760>,
|
1616
|
+
'django_runserver': <function django_runserver at 0x7341139a80>,
|
1617
|
+
'is_iterable': <function is_iterable at 0x7341139e40>,
|
1618
|
+
'to_str': <function to_str at 0x7341139ee0>,
|
1619
|
+
'filter_empty': <function filter_empty at 0x7341139d00>,
|
1620
|
+
'get_by_index': <function get_by_index at 0x7341139da0>,
|
1621
|
+
'get_class_method': <function get_class_method at 0x7341139f80>,
|
1622
|
+
'get_filesize': <function get_filesize at 0x734113a0c0>,
|
1623
|
+
'github_init': <function github_init at 0x734113a160>,
|
1624
|
+
'github_pull': <function github_pull at 0x734113a200>,
|
1625
|
+
'github_push': <function github_push at 0x734113a340>,
|
1626
|
+
'github_user': <function github_user at 0x734113a3e0>,
|
1627
|
+
'hex_to_int': <function hex_to_int at 0x734113a480>,
|
1628
|
+
'iargv': <function iargv at 0x734113a520>,
|
1629
|
+
'idir': <function idir at 0x734113a5c0>,
|
1630
|
+
'idumps_html': <function idumps_html at 0x734113aca0>,
|
1631
|
+
'idumps': <function idumps at 0x734113a700>,
|
1632
|
+
'int_to_int': <function int_to_int at 0x73411ceb60>,
|
1633
|
+
'ienumerate': <function ienumerate at 0x734113ac00>,
|
1634
|
+
'ienv': <function ienv at 0x73411b5080>,
|
1635
|
+
'iexec': <function iexec at 0x73411cec00>,
|
1636
|
+
'ijoin': <function ijoin at 0x73411ced40>,
|
1637
|
+
'iloads_html': <function iloads_html at 0x73411cef20>,
|
1638
|
+
'iloads': <function iloads at 0x7347b7e020>,
|
1639
|
+
'int_to_bin': <function int_to_bin at 0x73411ceca0>,
|
1640
|
+
'int_to_hex': <function int_to_hex at 0x73411cee80>,
|
1641
|
+
'int_to_oct': <function int_to_oct at 0x73411cefc0>,
|
1642
|
+
'is_valid_url': <function is_valid_url at 0x7340f9ed40>,
|
1643
|
+
'iopen': <function iopen at 0x73411cf1a0>,
|
1644
|
+
'iprint': <function iprint at 0x7340f9e840>,
|
1645
|
+
'ireplace': <function ireplace at 0x7340f9e980>,
|
1646
|
+
'iscandir': <function iscandir at 0x733ea1bb00>,
|
1647
|
+
'isplit': <function isplit at 0x733ea1bba0>,
|
1648
|
+
'ivars': <function ivars at 0x733ea1bc40>,
|
1649
|
+
'log': <function log at 0x733ea1bce0>,
|
1650
|
+
'oct_to_int': <function oct_to_int at 0x733ea1bd80>,
|
1651
|
+
'password_generator': <function password_generator at 0x733ea1be20>,
|
1652
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x733ea1bf60>,
|
1653
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x733ea24040>,
|
1654
|
+
'poetry_publish': <function poetry_publish at 0x733ea240e0>,
|
1655
|
+
'poetry_update_version': <function poetry_update_version at 0x733ea24220>,
|
1656
|
+
'print_dir': <function print_dir at 0x733ea24400>,
|
1657
|
+
'print_to_last_line': <function print_to_last_line at 0x733ea244a0>,
|
1658
|
+
'random_bool': <function random_bool at 0x733ea24540>,
|
1659
|
+
'repath': <function repath at 0x733ea24680>,
|
1660
|
+
'restart': <function restart at 0x733ea24720>,
|
1661
|
+
'set_timeout': <function set_timeout at 0x733ea24860>,
|
1662
|
+
'sets_ordered': <function sets_ordered at 0x733ea24900>,
|
1663
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x733ea249a0>,
|
1664
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x733ea24b80>,
|
1665
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x733ea25300>,
|
1666
|
+
'str_cmp': <function str_cmp at 0x733ea253a0>,
|
1667
|
+
'text_colorize': <function text_colorize at 0x733ea25440>,
|
1668
|
+
'traceback_filename': <function traceback_filename at 0x733ea254e0>,
|
1669
|
+
'traceback_framename': <function traceback_framename at 0x733ea25580>},
|
1668
1670
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1669
1671
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1670
1672
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1671
1673
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1672
1674
|
'variable': {'LINUX': True,
|
1673
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1675
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7345220c90>,
|
1674
1676
|
'WINDOWS': False},
|
1675
1677
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1676
1678
|
'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 +1763,7 @@ print(password_generator())
|
|
1761
1763
|
|
1762
1764
|
Output:
|
1763
1765
|
```py
|
1764
|
-
|
1766
|
+
.Bi?EoL;
|
1765
1767
|
```
|
1766
1768
|
|
1767
1769
|
## pip_freeze_without_version
|
@@ -1823,7 +1825,7 @@ Output:
|
|
1823
1825
|
__enter__ : https:/www.google.com
|
1824
1826
|
__fspath__ : https:/www.google.com
|
1825
1827
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1826
|
-
__hash__ : -
|
1828
|
+
__hash__ : -5001937873928961749
|
1827
1829
|
__init__ : None
|
1828
1830
|
__init_subclass__ : None
|
1829
1831
|
__module__ : pathlib
|
@@ -1836,8 +1838,8 @@ Output:
|
|
1836
1838
|
_cached_cparts : ['https:', 'www.google.com']
|
1837
1839
|
_cparts : ['https:', 'www.google.com']
|
1838
1840
|
_drv :
|
1839
|
-
_flavour : <pathlib._PosixFlavour object at
|
1840
|
-
_hash : -
|
1841
|
+
_flavour : <pathlib._PosixFlavour object at 0x7346f1d890>
|
1842
|
+
_hash : -5001937873928961749
|
1841
1843
|
_parts : ['https:', 'www.google.com']
|
1842
1844
|
_root :
|
1843
1845
|
_str : https:/www.google.com
|
@@ -1859,7 +1861,7 @@ Output:
|
|
1859
1861
|
is_reserved : False
|
1860
1862
|
is_socket : False
|
1861
1863
|
is_symlink : False
|
1862
|
-
iterdir : <generator object Path.iterdir at
|
1864
|
+
iterdir : <generator object Path.iterdir at 0x733e1ae5e0>
|
1863
1865
|
joinpath : https:/www.google.com
|
1864
1866
|
name : www.google.com
|
1865
1867
|
parent : https:
|
@@ -1913,6 +1915,10 @@ Output:
|
|
1913
1915
|
False
|
1914
1916
|
```
|
1915
1917
|
|
1918
|
+
## repath
|
1919
|
+
|
1920
|
+
`repath(path: pathlib.Path, folder_name=None, prepand_folder=None, append_folder=None, file_name=None, prepand_filename=None, append_filename=None, extension=None, prepand_extension=None, append_extension=None)`
|
1921
|
+
|
1916
1922
|
## restart
|
1917
1923
|
|
1918
1924
|
`restart(*argv)`
|
@@ -1944,7 +1950,7 @@ x.cancel()
|
|
1944
1950
|
|
1945
1951
|
Output:
|
1946
1952
|
```py
|
1947
|
-
<Timer(Thread-2, started
|
1953
|
+
<Timer(Thread-2, started 494936243440)>
|
1948
1954
|
menghentikan timeout 7
|
1949
1955
|
```
|
1950
1956
|
|
@@ -1962,7 +1968,7 @@ print(list(sets_ordered(array)))
|
|
1962
1968
|
|
1963
1969
|
Output:
|
1964
1970
|
```py
|
1965
|
-
<generator object sets_ordered at
|
1971
|
+
<generator object sets_ordered at 0x733e1ccd40>
|
1966
1972
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1967
1973
|
```
|
1968
1974
|
|
@@ -2076,15 +2082,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2076
2082
|
|
2077
2083
|
Output:
|
2078
2084
|
```py
|
2079
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2085
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x733e1cc930>,
|
2080
2086
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2081
2087
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2082
2088
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2083
|
-
{'a':
|
2084
|
-
{'a':
|
2085
|
-
{'a':
|
2086
|
-
{'a':
|
2087
|
-
{'a':
|
2089
|
+
{'a': 120, 'b': 147, 'c': 100, 'd': 188}
|
2090
|
+
{'a': 120, 'b': 118, 'c': 100, 'd': 176}
|
2091
|
+
{'a': 123, 'b': 128, 'c': 100, 'd': 176}
|
2092
|
+
{'a': 108, 'b': 122, 'c': 100, 'd': 146}
|
2093
|
+
{'a': 113, 'b': 126, 'c': 100, 'd': 151}
|
2088
2094
|
```
|
2089
2095
|
|
2090
2096
|
## PintUregQuantity
|
@@ -4,9 +4,8 @@ pypipr/PintUreg.py,sha256=_jmHZhUn8AcgFkXvZ6OTsWnjtp-CYcXUJ-dG_QdcARY,222
|
|
4
4
|
pypipr/PintUregQuantity.py,sha256=ErSZKB-GHShi1zKac30XgFdBwAUrxMo80IQzIjQ2HVc,118
|
5
5
|
pypipr/RunParallel.py,sha256=3H6sVSeUSATQQsWBcDGTtaXuc-12Yc0XmDyVtsg3PMA,5992
|
6
6
|
pypipr/TextCase.py,sha256=v62BsRiJUSOqYZM9BHTKvQtF6rWgaug5F0XirXNlens,2896
|
7
|
-
pypipr/TextCase.py.bak,sha256=coDInmzEu9y8FbTQmhAh2jl8MIt2eE4OsPMEUy8APxA,1229
|
8
7
|
pypipr/WINDOWS.py,sha256=NMW-94lzdqwfEWv2lF_i2GcSHJFDwWjccFufpymg4-E,83
|
9
|
-
pypipr/__init__.py,sha256=
|
8
|
+
pypipr/__init__.py,sha256=L2gv5YBEomTFaZtal9RFdCW758Kiy7jMC642WAQfEqM,3570
|
10
9
|
pypipr/__terminal__.py,sha256=N_NEXa0V5QLb-dkP1Vp_fYKNjE4jGTqkiYNwPPOXZtw,1412
|
11
10
|
pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
|
12
11
|
pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
@@ -19,7 +18,7 @@ pypipr/choices.py,sha256=qhRdquHqPWUKVdYwi7KDDf1_CYJi9i5E52hs2mMxCWs,1473
|
|
19
18
|
pypipr/chr_to_int.py,sha256=5ETJZag1eM8wa2ceIGsmNP-jNufC5bCScghTLcwGEAI,459
|
20
19
|
pypipr/chunk_array.py,sha256=aodjp-daihl-Xd8kPqcpHZICZub7Jx0QBqyoF0bd0dY,385
|
21
20
|
pypipr/console_run.py,sha256=vCJqDa1rExisqaFLNeWM-hnuXHfUfiYcyNAOJjldOHs,525
|
22
|
-
pypipr/create_folder.py,sha256=
|
21
|
+
pypipr/create_folder.py,sha256=YgK3Rhg-v8314VNSgUvq7LgyLHlpHGBYXaa1RgRsbxo,523
|
23
22
|
pypipr/datetime_from_string.py,sha256=-GJ_QHD1feUMX0o8nwCPHGflDPXr84ovN4Awnk1T9r8,466
|
24
23
|
pypipr/datetime_now.py,sha256=YEaatUOp0KBWYRhOFnxnVW0X7C1XEx3dpdBEn5Vwy9w,379
|
25
24
|
pypipr/dict_first.py,sha256=X_pSaY0DLGZJSR2zJBa17yqbwAFLJrVpzb2gxR5wzZg,377
|
@@ -74,6 +73,7 @@ pypipr/print_dir.py,sha256=kO-YruOQ_gCaN7gsSXfcTbufWqAqtRemW8KrUqIijC8,919
|
|
74
73
|
pypipr/print_log.py,sha256=Oct2xfcMv_8iK2ySioQYrtlTYou6Cd671PqgPL9IGUE,282
|
75
74
|
pypipr/print_to_last_line.py,sha256=ym25h5MbjIaexcczDEGjNbr3dciS6_Vq8hFyMWo73PE,915
|
76
75
|
pypipr/random_bool.py,sha256=OkvQqpusHGc5mt2nHCycA7-s2I0gbN6UxI7opMOFppE,352
|
76
|
+
pypipr/repath.py,sha256=R-Jc1esxV_LmNqy1AXhfxVUmaLB6X3hiqHCwb81aPC0,1167
|
77
77
|
pypipr/restart.py,sha256=jUhsjZACAAcItYzCuiULHLFikoVyYDJWj16hCLARmAw,272
|
78
78
|
pypipr/set_timeout.py,sha256=heg1J3jSArgG5_75BNLrujjh7I9meTyAzHpuAY_4IBc,698
|
79
79
|
pypipr/sets_ordered.py,sha256=ve2Nc1eNYD_7QaTf_4otEAvzL1XpZP2MjX0KHSXF5nA,325
|
@@ -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.151.dist-info/METADATA,sha256=QhW0DPpvqIAt4R0AXW6xJhrYe40v1_pE0rx7qBhfVVE,57013
|
89
|
+
pypipr-1.0.151.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
90
|
+
pypipr-1.0.151.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
91
|
+
pypipr-1.0.151.dist-info/RECORD,,
|
pypipr/TextCase.py.bak
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
import re
|
2
|
-
|
3
|
-
class TextCase:
|
4
|
-
simbol = ".-_/\ "
|
5
|
-
kapital = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
6
|
-
cpattern = re.compile(r'(?=[ \-_/\.\\A-Z])')
|
7
|
-
|
8
|
-
def __init__(self, text:str) -> None:
|
9
|
-
self.text = self.explode(text)
|
10
|
-
print(self.text)
|
11
|
-
|
12
|
-
def explode(self, text):
|
13
|
-
return self.cpattern.split(text)
|
14
|
-
|
15
|
-
def ToTitleCase(self):
|
16
|
-
r = ""
|
17
|
-
for i in self.text:
|
18
|
-
if i:
|
19
|
-
r += i.title()
|
20
|
-
return r
|
21
|
-
|
22
|
-
def to_snake_case(self):
|
23
|
-
r = ""
|
24
|
-
for i in self.text:
|
25
|
-
print(i)
|
26
|
-
if len(i):
|
27
|
-
r += i.lower()
|
28
|
-
else:
|
29
|
-
r += "_"
|
30
|
-
return r
|
31
|
-
|
32
|
-
def toCamelCase(self):
|
33
|
-
r = ""
|
34
|
-
for i in self.text:
|
35
|
-
if i:
|
36
|
-
if r:
|
37
|
-
r += i.title()
|
38
|
-
else:
|
39
|
-
r += i.lower()
|
40
|
-
return r
|
41
|
-
|
42
|
-
def to_path_case(self):
|
43
|
-
r = ""
|
44
|
-
for i in self.text:
|
45
|
-
if i:
|
46
|
-
r += i
|
47
|
-
else:
|
48
|
-
r += "/"
|
49
|
-
return r
|
50
|
-
|
51
|
-
def to_dot_case(self):
|
52
|
-
r = ""
|
53
|
-
for i in self.text:
|
54
|
-
if i:
|
55
|
-
r += i
|
56
|
-
else:
|
57
|
-
r += "."
|
58
|
-
return r
|
File without changes
|
File without changes
|