pypipr 1.0.150__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/repath.py +46 -0
- {pypipr-1.0.150.dist-info → pypipr-1.0.151.dist-info}/METADATA +207 -209
- {pypipr-1.0.150.dist-info → pypipr-1.0.151.dist-info}/RECORD +6 -6
- pypipr/TextCase.py.bak +0 -58
- {pypipr-1.0.150.dist-info → pypipr-1.0.151.dist-info}/WHEEL +0 -0
- {pypipr-1.0.150.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/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,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 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
|
|
@@ -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,
|
1155
|
+
qweqw, dfs, weq, asd
|
1155
1156
|
,ini,path,seperti,url,
|
1156
1157
|
ini,path,seperti,url
|
1157
1158
|
<li>satu</li>
|
@@ -1196,119 +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 :
|
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 '
|
1277
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
|
-
'64.
|
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',
|
1302
|
-
|
1303
|
-
|
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']],
|
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']],
|
1312
1305
|
[['Konversi Satuan'],
|
1313
1306
|
['Satuan', 'Ounce (oz)', 'Gram (gr)', 'Kilogram (kg)'],
|
1314
1307
|
['Ounce\xa0(oz)', '1', '31,1034767696', '0,0311034768'],
|
@@ -1318,37 +1311,37 @@ Output:
|
|
1318
1311
|
['Waktu', 'Emas'],
|
1319
1312
|
['Unit', 'USD', 'IDR'],
|
1320
1313
|
['Angka', '+/-', 'Angka', '+/-'],
|
1321
|
-
['Hari Ini', 'Kurs', '', '', '
|
1322
|
-
['oz', '2.
|
1323
|
-
['gr', '
|
1324
|
-
['30 Hari', 'Kurs', '', '', '16.
|
1325
|
-
['oz', '2.
|
1326
|
-
['gr', '
|
1327
|
-
['2 Bulan', 'Kurs', '', '', '16.
|
1328
|
-
['oz', '2.
|
1329
|
-
['gr', '74,
|
1330
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1331
|
-
['oz', '2.
|
1332
|
-
['gr', '
|
1333
|
-
['1 Tahun', 'Kurs', '', '', '15.731', '+
|
1334
|
-
['oz', '1.823,86', '+
|
1335
|
-
['gr', '58,64', '+
|
1336
|
-
['2 Tahun', 'Kurs', '', '', '14.
|
1337
|
-
['oz', '1.
|
1338
|
-
['gr', '57,
|
1339
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1340
|
-
['oz', '1.
|
1341
|
-
['gr', '56,
|
1342
|
-
['5 Tahun', 'Kurs', '', '', '14.
|
1343
|
-
['oz', '1.
|
1344
|
-
['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%']])
|
1345
1338
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1346
1339
|
[[''],
|
1347
1340
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1348
|
-
['USD', '
|
1349
|
-
['KURS', '
|
1350
|
-
['IDR', '1.
|
1351
|
-
['
|
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']],
|
1352
1345
|
[[''],
|
1353
1346
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1354
1347
|
'Hari Ini',
|
@@ -1359,19 +1352,19 @@ Output:
|
|
1359
1352
|
'']],
|
1360
1353
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1361
1354
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1362
|
-
['USD', '
|
1363
|
-
['KURS', '
|
1364
|
-
['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'],
|
1365
1358
|
[''],
|
1366
1359
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1367
|
-
['USD', '66,32', '64,07 - 79,08', '+11,
|
1368
|
-
['KURS', '15.390,10', '15.390,00 - 16.509,65', '+
|
1369
|
-
['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%)'],
|
1370
1363
|
[''],
|
1371
1364
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1372
|
-
['USD', '62
|
1373
|
-
['KURS', '15.
|
1374
|
-
['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%)']])
|
1375
1368
|
```
|
1376
1369
|
|
1377
1370
|
## iloads
|
@@ -1501,7 +1494,7 @@ Output:
|
|
1501
1494
|
```py
|
1502
1495
|
8
|
1503
1496
|
['mana', 'aja']
|
1504
|
-
[<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>]
|
1505
1498
|
False
|
1506
1499
|
```
|
1507
1500
|
|
@@ -1563,7 +1556,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1563
1556
|
|
1564
1557
|
Output:
|
1565
1558
|
```py
|
1566
|
-
<generator object iscandir at
|
1559
|
+
<generator object iscandir at 0x733e4d3140>
|
1567
1560
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1568
1561
|
```
|
1569
1562
|
|
@@ -1596,89 +1589,90 @@ iprint(ivars(__import__('pypipr')))
|
|
1596
1589
|
|
1597
1590
|
Output:
|
1598
1591
|
```py
|
1599
|
-
{'function': {'avg': <function avg at
|
1600
|
-
'get_filemtime': <function get_filemtime at
|
1601
|
-
'print_colorize': <function print_colorize at
|
1602
|
-
'print_log': <function print_log at
|
1603
|
-
'console_run': <function console_run at
|
1604
|
-
'auto_reload': <function auto_reload at
|
1605
|
-
'basename': <function basename at
|
1606
|
-
'chr_to_int': <function chr_to_int at
|
1607
|
-
'int_to_chr': <function int_to_chr at
|
1608
|
-
'irange': <function irange at
|
1609
|
-
'batchmaker': <function batchmaker at
|
1610
|
-
'calculate': <function calculate at
|
1611
|
-
'batch_calculate': <function batch_calculate at
|
1612
|
-
'bin_to_int': <function bin_to_int at
|
1613
|
-
'is_empty': <function is_empty at
|
1614
|
-
'exit_if_empty': <function exit_if_empty at
|
1615
|
-
'input_char': <function input_char at
|
1616
|
-
'choices': <function choices at
|
1617
|
-
'chunk_array': <function chunk_array at
|
1618
|
-
'create_folder': <function create_folder at
|
1619
|
-
'datetime_from_string': <function datetime_from_string at
|
1620
|
-
'datetime_now': <function datetime_now at
|
1621
|
-
'dict_first': <function dict_first at
|
1622
|
-
'dirname': <function dirname at
|
1623
|
-
'django_runserver': <function django_runserver at
|
1624
|
-
'is_iterable': <function is_iterable at
|
1625
|
-
'to_str': <function to_str at
|
1626
|
-
'filter_empty': <function filter_empty at
|
1627
|
-
'get_by_index': <function get_by_index at
|
1628
|
-
'get_class_method': <function get_class_method at
|
1629
|
-
'get_filesize': <function get_filesize at
|
1630
|
-
'github_init': <function github_init at
|
1631
|
-
'github_pull': <function github_pull at
|
1632
|
-
'github_push': <function github_push at
|
1633
|
-
'github_user': <function github_user at
|
1634
|
-
'hex_to_int': <function hex_to_int at
|
1635
|
-
'iargv': <function iargv at
|
1636
|
-
'idir': <function idir at
|
1637
|
-
'idumps_html': <function idumps_html at
|
1638
|
-
'idumps': <function idumps at
|
1639
|
-
'int_to_int': <function int_to_int at
|
1640
|
-
'ienumerate': <function ienumerate at
|
1641
|
-
'ienv': <function ienv at
|
1642
|
-
'iexec': <function iexec at
|
1643
|
-
'ijoin': <function ijoin at
|
1644
|
-
'iloads_html': <function iloads_html at
|
1645
|
-
'iloads': <function iloads at
|
1646
|
-
'int_to_bin': <function int_to_bin at
|
1647
|
-
'int_to_hex': <function int_to_hex at
|
1648
|
-
'int_to_oct': <function int_to_oct at
|
1649
|
-
'is_valid_url': <function is_valid_url at
|
1650
|
-
'iopen': <function iopen at
|
1651
|
-
'iprint': <function iprint at
|
1652
|
-
'ireplace': <function ireplace at
|
1653
|
-
'iscandir': <function iscandir at
|
1654
|
-
'isplit': <function isplit at
|
1655
|
-
'ivars': <function ivars at
|
1656
|
-
'log': <function log at
|
1657
|
-
'oct_to_int': <function oct_to_int at
|
1658
|
-
'password_generator': <function password_generator at
|
1659
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1660
|
-
'pip_update_pypipr': <function pip_update_pypipr at
|
1661
|
-
'poetry_publish': <function poetry_publish at
|
1662
|
-
'poetry_update_version': <function poetry_update_version at
|
1663
|
-
'print_dir': <function print_dir at
|
1664
|
-
'print_to_last_line': <function print_to_last_line at
|
1665
|
-
'random_bool': <function random_bool at
|
1666
|
-
'
|
1667
|
-
'
|
1668
|
-
'
|
1669
|
-
'
|
1670
|
-
'
|
1671
|
-
'
|
1672
|
-
'
|
1673
|
-
'
|
1674
|
-
'
|
1675
|
-
'
|
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>},
|
1676
1670
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1677
1671
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1678
1672
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1679
1673
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1680
1674
|
'variable': {'LINUX': True,
|
1681
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1675
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x7345220c90>,
|
1682
1676
|
'WINDOWS': False},
|
1683
1677
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.11/asyncio/__init__.py'>,
|
1684
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'>,
|
@@ -1769,7 +1763,7 @@ print(password_generator())
|
|
1769
1763
|
|
1770
1764
|
Output:
|
1771
1765
|
```py
|
1772
|
-
|
1766
|
+
.Bi?EoL;
|
1773
1767
|
```
|
1774
1768
|
|
1775
1769
|
## pip_freeze_without_version
|
@@ -1831,7 +1825,7 @@ Output:
|
|
1831
1825
|
__enter__ : https:/www.google.com
|
1832
1826
|
__fspath__ : https:/www.google.com
|
1833
1827
|
__getstate__ : (None, {'_drv': '', '_root': '', '_parts': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1834
|
-
__hash__ :
|
1828
|
+
__hash__ : -5001937873928961749
|
1835
1829
|
__init__ : None
|
1836
1830
|
__init_subclass__ : None
|
1837
1831
|
__module__ : pathlib
|
@@ -1844,8 +1838,8 @@ Output:
|
|
1844
1838
|
_cached_cparts : ['https:', 'www.google.com']
|
1845
1839
|
_cparts : ['https:', 'www.google.com']
|
1846
1840
|
_drv :
|
1847
|
-
_flavour : <pathlib._PosixFlavour object at
|
1848
|
-
_hash :
|
1841
|
+
_flavour : <pathlib._PosixFlavour object at 0x7346f1d890>
|
1842
|
+
_hash : -5001937873928961749
|
1849
1843
|
_parts : ['https:', 'www.google.com']
|
1850
1844
|
_root :
|
1851
1845
|
_str : https:/www.google.com
|
@@ -1867,7 +1861,7 @@ Output:
|
|
1867
1861
|
is_reserved : False
|
1868
1862
|
is_socket : False
|
1869
1863
|
is_symlink : False
|
1870
|
-
iterdir : <generator object Path.iterdir at
|
1864
|
+
iterdir : <generator object Path.iterdir at 0x733e1ae5e0>
|
1871
1865
|
joinpath : https:/www.google.com
|
1872
1866
|
name : www.google.com
|
1873
1867
|
parent : https:
|
@@ -1921,6 +1915,10 @@ Output:
|
|
1921
1915
|
False
|
1922
1916
|
```
|
1923
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
|
+
|
1924
1922
|
## restart
|
1925
1923
|
|
1926
1924
|
`restart(*argv)`
|
@@ -1952,7 +1950,7 @@ x.cancel()
|
|
1952
1950
|
|
1953
1951
|
Output:
|
1954
1952
|
```py
|
1955
|
-
<Timer(Thread-2, started
|
1953
|
+
<Timer(Thread-2, started 494936243440)>
|
1956
1954
|
menghentikan timeout 7
|
1957
1955
|
```
|
1958
1956
|
|
@@ -1970,7 +1968,7 @@ print(list(sets_ordered(array)))
|
|
1970
1968
|
|
1971
1969
|
Output:
|
1972
1970
|
```py
|
1973
|
-
<generator object sets_ordered at
|
1971
|
+
<generator object sets_ordered at 0x733e1ccd40>
|
1974
1972
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1975
1973
|
```
|
1976
1974
|
|
@@ -2084,15 +2082,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2084
2082
|
|
2085
2083
|
Output:
|
2086
2084
|
```py
|
2087
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2085
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x733e1cc930>,
|
2088
2086
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2089
2087
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2090
2088
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2091
|
-
{'a':
|
2092
|
-
{'a':
|
2093
|
-
{'a':
|
2094
|
-
{'a':
|
2095
|
-
{'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}
|
2096
2094
|
```
|
2097
2095
|
|
2098
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
|
@@ -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
|