pypipr 1.0.173__py3-none-any.whl → 1.0.174__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 +0 -1
- pypipr/__terminal__.py +1 -1
- {pypipr-1.0.173.dist-info → pypipr-1.0.174.dist-info}/METADATA +171 -176
- {pypipr-1.0.173.dist-info → pypipr-1.0.174.dist-info}/RECORD +6 -7
- {pypipr-1.0.173.dist-info → pypipr-1.0.174.dist-info}/WHEEL +1 -1
- pypipr/TextCase.py +0 -121
- {pypipr-1.0.173.dist-info → pypipr-1.0.174.dist-info}/entry_points.txt +0 -0
pypipr/__init__.py
CHANGED
@@ -3,7 +3,6 @@ from .LINUX import LINUX
|
|
3
3
|
from .PintUreg import PintUreg
|
4
4
|
from .PintUregQuantity import PintUregQuantity
|
5
5
|
from .RunParallel import RunParallel
|
6
|
-
from .TextCase import TextCase
|
7
6
|
from .WINDOWS import WINDOWS
|
8
7
|
from .auto_reload import auto_reload
|
9
8
|
from .avg import avg
|
pypipr/__terminal__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.174
|
4
4
|
Summary: The Python Package Index Project
|
5
5
|
Author: ufiapjj
|
6
6
|
Author-email: ufiapjj@gmail.com
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
13
14
|
Requires-Dist: colorama
|
14
15
|
Requires-Dist: cssselect
|
15
16
|
Requires-Dist: django
|
@@ -84,7 +85,7 @@ print(get_filemtime(__file__))
|
|
84
85
|
|
85
86
|
Output:
|
86
87
|
```py
|
87
|
-
|
88
|
+
1746437240592950738
|
88
89
|
```
|
89
90
|
|
90
91
|
## print_colorize
|
@@ -248,8 +249,8 @@ iprint(irange("z", "a", 4))
|
|
248
249
|
|
249
250
|
Output:
|
250
251
|
```py
|
251
|
-
<generator object int_range at
|
252
|
-
<generator object int_range at
|
252
|
+
<generator object int_range at 0x73c75bde40>
|
253
|
+
<generator object int_range at 0x73c75bdf40>
|
253
254
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
254
255
|
[2, 5, 8]
|
255
256
|
[]
|
@@ -281,7 +282,7 @@ print(list(batchmaker(s)))
|
|
281
282
|
|
282
283
|
Output:
|
283
284
|
```py
|
284
|
-
<generator object batchmaker at
|
285
|
+
<generator object batchmaker at 0x73c7614b80>
|
285
286
|
['Urutan 1 dan 10 dan j dan Z saja.', 'Urutan 1 dan 10 dan j dan K saja.', 'Urutan 1 dan 10 dan j dan saja.']
|
286
287
|
```
|
287
288
|
|
@@ -335,7 +336,7 @@ print(list(batch_calculate("{1 10} m ** {1 3}")))
|
|
335
336
|
|
336
337
|
Output:
|
337
338
|
```py
|
338
|
-
<generator object batch_calculate at
|
339
|
+
<generator object batch_calculate at 0x73c75f9460>
|
339
340
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('1 m ** 3', <Quantity(1, 'meter ** 3')>)]
|
340
341
|
```
|
341
342
|
|
@@ -441,7 +442,7 @@ print(list(chunk_array(arr, 5)))
|
|
441
442
|
|
442
443
|
Output:
|
443
444
|
```py
|
444
|
-
<generator object chunk_array at
|
445
|
+
<generator object chunk_array at 0x73c9eff3d0>
|
445
446
|
[[2, 3, 12, 3, 3], [42, 42, 1, 43, 2], [42, 41, 4, 24, 32], [42, 3, 12, 32, 42], [42]]
|
446
447
|
```
|
447
448
|
|
@@ -492,9 +493,9 @@ print(datetime_now("Etc/GMT+7"))
|
|
492
493
|
|
493
494
|
Output:
|
494
495
|
```py
|
495
|
-
2025-
|
496
|
-
2025-
|
497
|
-
2025-
|
496
|
+
2025-05-05 17:52:27.836354+07:00
|
497
|
+
2025-05-05 10:52:27.837681+00:00
|
498
|
+
2025-05-05 03:52:27.841385-07:00
|
498
499
|
```
|
499
500
|
|
500
501
|
## dict_first
|
@@ -613,7 +614,7 @@ iprint(filter_empty(var))
|
|
613
614
|
|
614
615
|
Output:
|
615
616
|
```py
|
616
|
-
<generator object filter_empty at
|
617
|
+
<generator object filter_empty at 0x73c9eff5b0>
|
617
618
|
[1, '0', True, {}, ['eee']]
|
618
619
|
```
|
619
620
|
|
@@ -660,8 +661,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
660
661
|
|
661
662
|
Output:
|
662
663
|
```py
|
663
|
-
<generator object get_class_method at
|
664
|
-
[<function ExampleGetClassMethod.a at
|
664
|
+
<generator object get_class_method at 0x73c75f9620>
|
665
|
+
[<function ExampleGetClassMethod.a at 0x73c7629260>, <function ExampleGetClassMethod.b at 0x73c7628fe0>, <function ExampleGetClassMethod.c at 0x73c76293a0>, <function ExampleGetClassMethod.d at 0x73c7629440>]
|
665
666
|
```
|
666
667
|
|
667
668
|
## get_filesize
|
@@ -779,7 +780,6 @@ Output:
|
|
779
780
|
'PintUreg',
|
780
781
|
'PintUregQuantity',
|
781
782
|
'RunParallel',
|
782
|
-
'TextCase',
|
783
783
|
'WINDOWS',
|
784
784
|
'asyncio',
|
785
785
|
'auto_reload',
|
@@ -1089,7 +1089,7 @@ Output:
|
|
1089
1089
|
|
1090
1090
|
## ienumerate
|
1091
1091
|
|
1092
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1092
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x73cd625ee0>)`
|
1093
1093
|
|
1094
1094
|
meningkatkan fungsi enumerate() pada python
|
1095
1095
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1102,7 +1102,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1102
1102
|
|
1103
1103
|
Output:
|
1104
1104
|
```py
|
1105
|
-
<generator object ienumerate at
|
1105
|
+
<generator object ienumerate at 0x73c9eff5b0>
|
1106
1106
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1107
1107
|
```
|
1108
1108
|
|
@@ -1179,7 +1179,7 @@ print(ijoin(10, ' '))
|
|
1179
1179
|
|
1180
1180
|
Output:
|
1181
1181
|
```py
|
1182
|
-
qweqw, dfs,
|
1182
|
+
qweqw, dfs, asd, weq
|
1183
1183
|
,ini,path,seperti,url,
|
1184
1184
|
ini,path,seperti,url
|
1185
1185
|
<li>satu</li>
|
@@ -1224,10 +1224,10 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1224
1224
|
Output:
|
1225
1225
|
```py
|
1226
1226
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1227
|
-
[['Harga Emas Hari Ini -
|
1228
|
-
['Spot Emas USD
|
1227
|
+
[['Harga Emas Hari Ini - Senin, 05 Mei 2025'],
|
1228
|
+
['Spot Emas USD↑3.313,02 (+71,66) / oz',
|
1229
1229
|
'Kurs IDR1,00 / USD',
|
1230
|
-
'Emas IDR
|
1230
|
+
'Emas IDR↑107 (+2) / gr'],
|
1231
1231
|
['LM Antam (Jual)↓1.513.000 (-30.000) / gr',
|
1232
1232
|
'LM Antam (Beli)↓1.366.000 (-30.000) / gr']],
|
1233
1233
|
[['Harga Emas Hari Ini'],
|
@@ -1250,10 +1250,10 @@ Output:
|
|
1250
1250
|
'Update harga LM Pegadaian :31 Desember 1969']],
|
1251
1251
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1252
1252
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1253
|
-
['Ounce\xa0(oz)', '3.
|
1254
|
-
['Gram\xa0(gr)', '
|
1255
|
-
['Kilogram\xa0(kg)', '
|
1256
|
-
['Update harga emas :
|
1253
|
+
['Ounce\xa0(oz)', '3.313,02 (+71,66)', '1,00', '3.313'],
|
1254
|
+
['Gram\xa0(gr)', '106,52', '1,00', '107 (+2)'],
|
1255
|
+
['Kilogram\xa0(kg)', '106.516,07', '1,00', '106.516'],
|
1256
|
+
['Update harga emas :05 Mei 2025, pukul 17:52Update kurs :14 Maret 2025, '
|
1257
1257
|
'pukul 10:13']],
|
1258
1258
|
[['Gram', 'UBS Gold 99.99%'],
|
1259
1259
|
['Jual', 'Beli'],
|
@@ -1291,36 +1291,36 @@ Output:
|
|
1291
1291
|
['Unit', 'USD', 'IDR'],
|
1292
1292
|
['Angka', '+/-', 'Angka', '+/-'],
|
1293
1293
|
['Hari Ini', 'Kurs', '', '', '1', '%'],
|
1294
|
-
['oz', '3.
|
1295
|
-
['gr', '
|
1294
|
+
['oz', '3.241,36', '+71,66+2,21%', '3.241', '+72+2,21%'],
|
1295
|
+
['gr', '104,21', '+2,30+2,21%', '104', '+2+2,21%'],
|
1296
1296
|
['30 Hari', 'Kurs', '', '', '1', '%'],
|
1297
|
-
['oz', '3.
|
1298
|
-
['gr', '
|
1299
|
-
['2 Bulan', 'Kurs', '', '', '16.
|
1300
|
-
['oz', '2.
|
1301
|
-
['gr', '
|
1302
|
-
['6 Bulan', 'Kurs', '', '', '15.
|
1303
|
-
['oz', '2.
|
1304
|
-
['gr', '
|
1305
|
-
['1 Tahun', 'Kurs', '', '', '16.
|
1306
|
-
['oz', '2.
|
1307
|
-
['gr', '74,
|
1297
|
+
['oz', '3.037,65', '+275,37+9,07%', '3.038', '+275+9,07%'],
|
1298
|
+
['gr', '97,66', '+8,85+9,07%', '98', '+9+9,07%'],
|
1299
|
+
['2 Bulan', 'Kurs', '', '', '16.371', '-16.370-99,99%'],
|
1300
|
+
['oz', '2.917,04', '+395,98+13,57%', '47.754.862', '-47.751.549-99,99%'],
|
1301
|
+
['gr', '93,79', '+12,73+13,57', '1.535.354', '-1.535.248-99,99%'],
|
1302
|
+
['6 Bulan', 'Kurs', '', '', '15.766', '-15.765-99,99%'],
|
1303
|
+
['oz', '2.666,70', '+646,32+24,24%', '42.043.192', '-42.039.879-99,99%'],
|
1304
|
+
['gr', '85,74', '+20,78+24,24%', '1.351.720', '-1.351.614-99,99%'],
|
1305
|
+
['1 Tahun', 'Kurs', '', '', '16.202', '-16.201-99,99%'],
|
1306
|
+
['oz', '2.302,57', '+1.010,45+43,88%', '37.306.239', '-37.302.926-99,99%'],
|
1307
|
+
['gr', '74,03', '+32,49+43,88%', '1.199.423', '-1.199.317-99,99%'],
|
1308
1308
|
['2 Tahun', 'Kurs', '', '', '15.731', '-15.730-99,99%'],
|
1309
|
-
['oz', '1.823,86', '+1.
|
1310
|
-
['gr', '58,64', '+
|
1311
|
-
['3 Tahun', 'Kurs', '', '', '14.
|
1312
|
-
['oz', '1.
|
1313
|
-
['gr', '
|
1314
|
-
['5 Tahun', 'Kurs', '', '', '15.
|
1315
|
-
['oz', '1.
|
1316
|
-
['gr', '
|
1309
|
+
['oz', '1.823,86', '+1.489,16+81,65%', '28.691.142', '-28.687.829-99,99%'],
|
1310
|
+
['gr', '58,64', '+47,88+81,65%', '922.442', '-922.335-99,99%'],
|
1311
|
+
['3 Tahun', 'Kurs', '', '', '14.418', '-14.417-99,99%'],
|
1312
|
+
['oz', '1.888,48', '+1.424,54+75,43%', '27.228.105', '-27.224.792-99,99%'],
|
1313
|
+
['gr', '60,72', '+45,80+75,43%', '875.404', '-875.297-99,99%'],
|
1314
|
+
['5 Tahun', 'Kurs', '', '', '15.127', '-15.126-99,99%'],
|
1315
|
+
['oz', '1.686,56', '+1.626,46+96,44%', '25.512.610', '-25.509.297-99,99%'],
|
1316
|
+
['gr', '54,22', '+52,29+96,44%', '820.249', '-820.143-99,99%']])
|
1317
1317
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1318
1318
|
[[''],
|
1319
1319
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1320
|
-
['USD', '
|
1321
|
-
['KURS', '16.
|
1322
|
-
['IDR', '1.
|
1323
|
-
['
|
1320
|
+
['USD', '106,52↑', '+2,31+2,22%'],
|
1321
|
+
['KURS', '16.434,99↓', '-40,97-0,25%'],
|
1322
|
+
['IDR', '1.750.590,49↑', '+33.595,37+1,96%'],
|
1323
|
+
['Senin, 05 Mei 2025 17:52']],
|
1324
1324
|
[[''],
|
1325
1325
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1326
1326
|
'Hari Ini',
|
@@ -1331,25 +1331,25 @@ Output:
|
|
1331
1331
|
'']],
|
1332
1332
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1333
1333
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1334
|
-
['USD', '
|
1335
|
-
['KURS', '16.
|
1336
|
-
['IDR', '1.
|
1334
|
+
['USD', '104,21', '104,21 - 106,52', '105,37'],
|
1335
|
+
['KURS', '16.475,96', '16.434,99 - 16.475,96', '16.455,48'],
|
1336
|
+
['IDR', '1.716.995,12', '1.716.995,12 - 1.750.590,49', '1.733.792,81'],
|
1337
1337
|
[''],
|
1338
1338
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1339
|
-
['USD', '84,42', '84,38 - 109,73', '+
|
1340
|
-
['KURS', '16.220,76', '16.156,70 - 16.
|
1339
|
+
['USD', '84,42', '84,38 - 109,73', '+22,10 (26,18%)'],
|
1340
|
+
['KURS', '16.220,76', '16.156,70 - 16.877,75', '+214,23 (1,32%)'],
|
1341
1341
|
['IDR',
|
1342
1342
|
'1.369.306,75',
|
1343
1343
|
'1.368.695,74 - 1.850.462,40',
|
1344
|
-
'+
|
1344
|
+
'+381.283,74 (27,85%)'],
|
1345
1345
|
[''],
|
1346
1346
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1347
|
-
['USD', '74,
|
1348
|
-
['KURS', '
|
1347
|
+
['USD', '74,03', '73,75 - 109,73', '+32,49 (43,89%)'],
|
1348
|
+
['KURS', '15.968,70', '15.100,00 - 16.877,75', '+466,29 (2,92%)'],
|
1349
1349
|
['IDR',
|
1350
|
-
'1.
|
1351
|
-
'1.
|
1352
|
-
'+
|
1350
|
+
'1.182.152,40',
|
1351
|
+
'1.182.152,40 - 1.850.462,40',
|
1352
|
+
'+568.438,09 (48,09%)']])
|
1353
1353
|
```
|
1354
1354
|
|
1355
1355
|
## iloads
|
@@ -1479,7 +1479,7 @@ Output:
|
|
1479
1479
|
```py
|
1480
1480
|
8
|
1481
1481
|
['mana', 'aja']
|
1482
|
-
[<Element a at
|
1482
|
+
[<Element a at 0x73ce411310>, <Element a at 0x73c764b390>, <Element a at 0x73c764b610>, <Element a at 0x73c764b6b0>, <Element a at 0x73c764b750>, <Element a at 0x73c764b840>, <Element a at 0x73c764bac0>, <Element a at 0x73c764bc50>, <Element a at 0x73c764bd40>, <Element a at 0x73c76749b0>, <Element a at 0x73c7674640>, <Element a at 0x73c7674780>, <Element a at 0x73c7674820>, <Element a at 0x73c76748c0>, <Element a at 0x73c7674a00>, <Element a at 0x73c7674a50>, <Element a at 0x73c7674aa0>, <Element a at 0x73c7674af0>]
|
1483
1483
|
False
|
1484
1484
|
```
|
1485
1485
|
|
@@ -1549,8 +1549,8 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1549
1549
|
|
1550
1550
|
Output:
|
1551
1551
|
```py
|
1552
|
-
<generator object iscandir at
|
1553
|
-
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr')
|
1552
|
+
<generator object iscandir at 0x73c9eff4c0>
|
1553
|
+
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr')]
|
1554
1554
|
```
|
1555
1555
|
|
1556
1556
|
## isplit
|
@@ -1582,119 +1582,118 @@ iprint(ivars(__import__('pypipr')))
|
|
1582
1582
|
|
1583
1583
|
Output:
|
1584
1584
|
```py
|
1585
|
-
{'function': {'avg': <function avg at
|
1586
|
-
'get_filemtime': <function get_filemtime at
|
1587
|
-
'print_colorize': <function print_colorize at
|
1588
|
-
'print_log': <function print_log at
|
1589
|
-
'console_run': <function console_run at
|
1590
|
-
'auto_reload': <function auto_reload at
|
1591
|
-
'basename': <function basename at
|
1592
|
-
'chr_to_int': <function chr_to_int at
|
1593
|
-
'int_to_chr': <function int_to_chr at
|
1594
|
-
'irange': <function irange at
|
1595
|
-
'batchmaker': <function batchmaker at
|
1596
|
-
'calculate': <function calculate at
|
1597
|
-
'batch_calculate': <function batch_calculate at
|
1598
|
-
'bin_to_int': <function bin_to_int at
|
1599
|
-
'is_empty': <function is_empty at
|
1600
|
-
'exit_if_empty': <function exit_if_empty at
|
1601
|
-
'input_char': <function input_char at
|
1602
|
-
'choices': <function choices at
|
1603
|
-
'chunk_array': <function chunk_array at
|
1604
|
-
'create_folder': <function create_folder at
|
1605
|
-
'datetime_from_string': <function datetime_from_string at
|
1606
|
-
'datetime_now': <function datetime_now at
|
1607
|
-
'dict_first': <function dict_first at
|
1608
|
-
'dirname': <function dirname at
|
1609
|
-
'django_clear_migrations': <function django_clear_migrations at
|
1610
|
-
'django_runserver': <function django_runserver at
|
1611
|
-
'is_iterable': <function is_iterable at
|
1612
|
-
'to_str': <function to_str at
|
1613
|
-
'filter_empty': <function filter_empty at
|
1614
|
-
'get_by_index': <function get_by_index at
|
1615
|
-
'get_class_method': <function get_class_method at
|
1616
|
-
'get_filesize': <function get_filesize at
|
1617
|
-
'github_init': <function github_init at
|
1618
|
-
'github_pull': <function github_pull at
|
1619
|
-
'github_push': <function github_push at
|
1620
|
-
'github_user': <function github_user at
|
1621
|
-
'hex_to_int': <function hex_to_int at
|
1622
|
-
'iargv': <function iargv at
|
1623
|
-
'idir': <function idir at
|
1624
|
-
'idumps_html': <function idumps_html at
|
1625
|
-
'idumps': <function idumps at
|
1626
|
-
'int_to_int': <function int_to_int at
|
1627
|
-
'ienumerate': <function ienumerate at
|
1628
|
-
'ienv': <function ienv at
|
1629
|
-
'iexec': <function iexec at
|
1630
|
-
'iinput': <function iinput at
|
1631
|
-
'ijoin': <function ijoin at
|
1632
|
-
'iloads_html': <function iloads_html at
|
1633
|
-
'iloads': <function iloads at
|
1634
|
-
'int_to_bin': <function int_to_bin at
|
1635
|
-
'int_to_hex': <function int_to_hex at
|
1636
|
-
'int_to_oct': <function int_to_oct at
|
1637
|
-
'is_valid_url': <function is_valid_url at
|
1638
|
-
'iopen': <function iopen at
|
1639
|
-
'iprint': <function iprint at
|
1640
|
-
'is_raw_string': <function is_raw_string at
|
1641
|
-
'ireplace': <function ireplace at
|
1642
|
-
'is_html': <function is_html at
|
1643
|
-
'iscandir': <function iscandir at
|
1644
|
-
'isplit': <function isplit at
|
1645
|
-
'ivars': <function ivars at
|
1646
|
-
'log': <function log at
|
1647
|
-
'no_indent': <function no_indent at
|
1648
|
-
'oct_to_int': <function oct_to_int at
|
1649
|
-
'password_generator': <function password_generator at
|
1650
|
-
'path_to_module': <function path_to_module 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
|
-
'repath': <function repath at
|
1659
|
-
'restart': <function restart at
|
1660
|
-
'set_timeout': <function set_timeout at
|
1661
|
-
'sets_ordered': <function sets_ordered at
|
1662
|
-
'sqlite_backup': <function sqlite_backup at
|
1663
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1664
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1665
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1666
|
-
'str_cmp': <function str_cmp at
|
1667
|
-
'text_colorize': <function text_colorize at
|
1668
|
-
'tiles': <function tiles at
|
1669
|
-
'traceback_filename': <function traceback_filename at
|
1670
|
-
'traceback_framename': <function traceback_framename at
|
1585
|
+
{'function': {'avg': <function avg at 0x73d71bb920>,
|
1586
|
+
'get_filemtime': <function get_filemtime at 0x73cd7b1080>,
|
1587
|
+
'print_colorize': <function print_colorize at 0x73cd7b1260>,
|
1588
|
+
'print_log': <function print_log at 0x73cd7b1120>,
|
1589
|
+
'console_run': <function console_run at 0x73cd7b11c0>,
|
1590
|
+
'auto_reload': <function auto_reload at 0x73d66b0400>,
|
1591
|
+
'basename': <function basename at 0x73cd7b1300>,
|
1592
|
+
'chr_to_int': <function chr_to_int at 0x73cd7b18a0>,
|
1593
|
+
'int_to_chr': <function int_to_chr at 0x73cd7b1940>,
|
1594
|
+
'irange': <function irange at 0x73cd7b1e40>,
|
1595
|
+
'batchmaker': <function batchmaker at 0x73cd7b1620>,
|
1596
|
+
'calculate': <function calculate at 0x73cd7b16c0>,
|
1597
|
+
'batch_calculate': <function batch_calculate at 0x73cd7b13a0>,
|
1598
|
+
'bin_to_int': <function bin_to_int at 0x73cd7b1580>,
|
1599
|
+
'is_empty': <function is_empty at 0x73cd7b2700>,
|
1600
|
+
'exit_if_empty': <function exit_if_empty at 0x73cd7b25c0>,
|
1601
|
+
'input_char': <function input_char at 0x73cd7b2660>,
|
1602
|
+
'choices': <function choices at 0x73cd7b2980>,
|
1603
|
+
'chunk_array': <function chunk_array at 0x73cd7b2a20>,
|
1604
|
+
'create_folder': <function create_folder at 0x73cd7b2ac0>,
|
1605
|
+
'datetime_from_string': <function datetime_from_string at 0x73cd7b2b60>,
|
1606
|
+
'datetime_now': <function datetime_now at 0x73cd7b2c00>,
|
1607
|
+
'dict_first': <function dict_first at 0x73cd78ce00>,
|
1608
|
+
'dirname': <function dirname at 0x73cd78cf40>,
|
1609
|
+
'django_clear_migrations': <function django_clear_migrations at 0x73cd78cfe0>,
|
1610
|
+
'django_runserver': <function django_runserver at 0x73cd78d300>,
|
1611
|
+
'is_iterable': <function is_iterable at 0x73cd78d6c0>,
|
1612
|
+
'to_str': <function to_str at 0x73cd78d800>,
|
1613
|
+
'filter_empty': <function filter_empty at 0x73cd78d580>,
|
1614
|
+
'get_by_index': <function get_by_index at 0x73cd78d760>,
|
1615
|
+
'get_class_method': <function get_class_method at 0x73cd78d8a0>,
|
1616
|
+
'get_filesize': <function get_filesize at 0x73cd78d9e0>,
|
1617
|
+
'github_init': <function github_init at 0x73cd78da80>,
|
1618
|
+
'github_pull': <function github_pull at 0x73cd78db20>,
|
1619
|
+
'github_push': <function github_push at 0x73cd78dc60>,
|
1620
|
+
'github_user': <function github_user at 0x73cd78dd00>,
|
1621
|
+
'hex_to_int': <function hex_to_int at 0x73cd78dda0>,
|
1622
|
+
'iargv': <function iargv at 0x73cd78de40>,
|
1623
|
+
'idir': <function idir at 0x73cd78dee0>,
|
1624
|
+
'idumps_html': <function idumps_html at 0x73cd625a80>,
|
1625
|
+
'idumps': <function idumps at 0x73cd78df80>,
|
1626
|
+
'int_to_int': <function int_to_int at 0x73cd625ee0>,
|
1627
|
+
'ienumerate': <function ienumerate at 0x73cd78e020>,
|
1628
|
+
'ienv': <function ienv at 0x73cd625da0>,
|
1629
|
+
'iexec': <function iexec at 0x73cd625f80>,
|
1630
|
+
'iinput': <function iinput at 0x73cd626020>,
|
1631
|
+
'ijoin': <function ijoin at 0x73cd6260c0>,
|
1632
|
+
'iloads_html': <function iloads_html at 0x73cd6263e0>,
|
1633
|
+
'iloads': <function iloads at 0x73d7c75260>,
|
1634
|
+
'int_to_bin': <function int_to_bin at 0x73cd626160>,
|
1635
|
+
'int_to_hex': <function int_to_hex at 0x73cd626200>,
|
1636
|
+
'int_to_oct': <function int_to_oct at 0x73cd626480>,
|
1637
|
+
'is_valid_url': <function is_valid_url at 0x73cd68a2a0>,
|
1638
|
+
'iopen': <function iopen at 0x73cd6265c0>,
|
1639
|
+
'iprint': <function iprint at 0x73cd68a3e0>,
|
1640
|
+
'is_raw_string': <function is_raw_string at 0x73ca64ff60>,
|
1641
|
+
'ireplace': <function ireplace at 0x73ca64e480>,
|
1642
|
+
'is_html': <function is_html at 0x73ca64fec0>,
|
1643
|
+
'iscandir': <function iscandir at 0x73ca658040>,
|
1644
|
+
'isplit': <function isplit at 0x73ca6580e0>,
|
1645
|
+
'ivars': <function ivars at 0x73ca658180>,
|
1646
|
+
'log': <function log at 0x73ca658220>,
|
1647
|
+
'no_indent': <function no_indent at 0x73ca6582c0>,
|
1648
|
+
'oct_to_int': <function oct_to_int at 0x73ca658360>,
|
1649
|
+
'password_generator': <function password_generator at 0x73ca658400>,
|
1650
|
+
'path_to_module': <function path_to_module at 0x73ca6584a0>,
|
1651
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x73ca658540>,
|
1652
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x73ca6585e0>,
|
1653
|
+
'poetry_publish': <function poetry_publish at 0x73ca658680>,
|
1654
|
+
'poetry_update_version': <function poetry_update_version at 0x73ca6587c0>,
|
1655
|
+
'print_dir': <function print_dir at 0x73ca658900>,
|
1656
|
+
'print_to_last_line': <function print_to_last_line at 0x73ca6589a0>,
|
1657
|
+
'random_bool': <function random_bool at 0x73ca658a40>,
|
1658
|
+
'repath': <function repath at 0x73ca658b80>,
|
1659
|
+
'restart': <function restart at 0x73ca658c20>,
|
1660
|
+
'set_timeout': <function set_timeout at 0x73ca658cc0>,
|
1661
|
+
'sets_ordered': <function sets_ordered at 0x73ca658d60>,
|
1662
|
+
'sqlite_backup': <function sqlite_backup at 0x73ca658e00>,
|
1663
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x73ca658ea0>,
|
1664
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x73ca658f40>,
|
1665
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x73ca658fe0>,
|
1666
|
+
'str_cmp': <function str_cmp at 0x73ca6598a0>,
|
1667
|
+
'text_colorize': <function text_colorize at 0x73ca659940>,
|
1668
|
+
'tiles': <function tiles at 0x73ca6599e0>,
|
1669
|
+
'traceback_filename': <function traceback_filename at 0x73ca659a80>,
|
1670
|
+
'traceback_framename': <function traceback_framename at 0x73ca659b20>},
|
1671
1671
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1672
1672
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1673
|
-
'RunParallel': <class 'pypipr.RunParallel.RunParallel'
|
1674
|
-
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1673
|
+
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1675
1674
|
'variable': {'LINUX': True,
|
1676
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1675
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x73d71e80e0>,
|
1677
1676
|
'WINDOWS': False},
|
1678
1677
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.12/asyncio/__init__.py'>,
|
1679
|
-
'colorama': <module 'colorama' from '/data/data/com.termux/files/
|
1678
|
+
'colorama': <module 'colorama' from '/data/data/com.termux/files/usr/lib/python3.12/site-packages/colorama/__init__.py'>,
|
1680
1679
|
'csv': <module 'csv' from '/data/data/com.termux/files/usr/lib/python3.12/csv.py'>,
|
1681
1680
|
'datetime': <module 'datetime' from '/data/data/com.termux/files/usr/lib/python3.12/datetime.py'>,
|
1682
1681
|
'functools': <module 'functools' from '/data/data/com.termux/files/usr/lib/python3.12/functools.py'>,
|
1683
1682
|
'inspect': <module 'inspect' from '/data/data/com.termux/files/usr/lib/python3.12/inspect.py'>,
|
1684
1683
|
'io': <module 'io' (frozen)>,
|
1685
1684
|
'json': <module 'json' from '/data/data/com.termux/files/usr/lib/python3.12/json/__init__.py'>,
|
1686
|
-
'lxml': <module 'lxml' from '/data/data/com.termux/files/
|
1685
|
+
'lxml': <module 'lxml' from '/data/data/com.termux/files/usr/lib/python3.12/site-packages/lxml/__init__.py'>,
|
1687
1686
|
'math': <module 'math' from '/data/data/com.termux/files/usr/lib/python3.12/lib-dynload/math.cpython-312.so'>,
|
1688
1687
|
'multiprocessing': <module 'multiprocessing' from '/data/data/com.termux/files/usr/lib/python3.12/multiprocessing/__init__.py'>,
|
1689
1688
|
'operator': <module 'operator' from '/data/data/com.termux/files/usr/lib/python3.12/operator.py'>,
|
1690
1689
|
'os': <module 'os' (frozen)>,
|
1691
1690
|
'pathlib': <module 'pathlib' from '/data/data/com.termux/files/usr/lib/python3.12/pathlib.py'>,
|
1692
|
-
'pint': <module 'pint' from '/data/data/com.termux/files/
|
1691
|
+
'pint': <module 'pint' from '/data/data/com.termux/files/usr/lib/python3.12/site-packages/pint/__init__.py'>,
|
1693
1692
|
'pprint': <module 'pprint' from '/data/data/com.termux/files/usr/lib/python3.12/pprint.py'>,
|
1694
1693
|
'queue': <module 'queue' from '/data/data/com.termux/files/usr/lib/python3.12/queue.py'>,
|
1695
1694
|
'random': <module 'random' from '/data/data/com.termux/files/usr/lib/python3.12/random.py'>,
|
1696
1695
|
're': <module 're' from '/data/data/com.termux/files/usr/lib/python3.12/re/__init__.py'>,
|
1697
|
-
'requests': <module 'requests' from '/data/data/com.termux/files/
|
1696
|
+
'requests': <module 'requests' from '/data/data/com.termux/files/usr/lib/python3.12/site-packages/requests/__init__.py'>,
|
1698
1697
|
'string': <module 'string' from '/data/data/com.termux/files/usr/lib/python3.12/string.py'>,
|
1699
1698
|
'subprocess': <module 'subprocess' from '/data/data/com.termux/files/usr/lib/python3.12/subprocess.py'>,
|
1700
1699
|
'sys': <module 'sys' (built-in)>,
|
@@ -1702,10 +1701,10 @@ Output:
|
|
1702
1701
|
'threading': <module 'threading' from '/data/data/com.termux/files/usr/lib/python3.12/threading.py'>,
|
1703
1702
|
'time': <module 'time' (built-in)>,
|
1704
1703
|
'traceback': <module 'traceback' from '/data/data/com.termux/files/usr/lib/python3.12/traceback.py'>,
|
1705
|
-
'tzdata': <module 'tzdata' from '/data/data/com.termux/files/
|
1704
|
+
'tzdata': <module 'tzdata' from '/data/data/com.termux/files/usr/lib/python3.12/site-packages/tzdata/__init__.py'>,
|
1706
1705
|
'uuid': <module 'uuid' from '/data/data/com.termux/files/usr/lib/python3.12/uuid.py'>,
|
1707
1706
|
'webbrowser': <module 'webbrowser' from '/data/data/com.termux/files/usr/lib/python3.12/webbrowser.py'>,
|
1708
|
-
'yaml': <module 'yaml' from '/data/data/com.termux/files/
|
1707
|
+
'yaml': <module 'yaml' from '/data/data/com.termux/files/usr/lib/python3.12/site-packages/yaml/__init__.py'>,
|
1709
1708
|
'zoneinfo': <module 'zoneinfo' from '/data/data/com.termux/files/usr/lib/python3.12/zoneinfo/__init__.py'>}}
|
1710
1709
|
```
|
1711
1710
|
|
@@ -1768,7 +1767,7 @@ print(password_generator())
|
|
1768
1767
|
|
1769
1768
|
Output:
|
1770
1769
|
```py
|
1771
|
-
|
1770
|
+
7x+fuwo/
|
1772
1771
|
```
|
1773
1772
|
|
1774
1773
|
## path_to_module
|
@@ -1847,7 +1846,7 @@ Output:
|
|
1847
1846
|
__enter__ : https:/www.google.com
|
1848
1847
|
__fspath__ : https:/www.google.com
|
1849
1848
|
__getstate__ : (None, {'_raw_paths': ['https://www.google.com/'], '_drv': '', '_root': '', '_tail_cached': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1850
|
-
__hash__ : -
|
1849
|
+
__hash__ : -539428712773499791
|
1851
1850
|
__init__ : None
|
1852
1851
|
__init_subclass__ : None
|
1853
1852
|
__module__ : pathlib
|
@@ -1859,7 +1858,7 @@ Output:
|
|
1859
1858
|
__subclasshook__ : NotImplemented
|
1860
1859
|
_drv :
|
1861
1860
|
_flavour : <module 'posixpath' (frozen)>
|
1862
|
-
_hash : -
|
1861
|
+
_hash : -539428712773499791
|
1863
1862
|
_lines : https:
|
1864
1863
|
www.google.com
|
1865
1864
|
_lines_cached : https:
|
@@ -1893,7 +1892,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1893
1892
|
is_reserved : False
|
1894
1893
|
is_socket : False
|
1895
1894
|
is_symlink : False
|
1896
|
-
iterdir : <generator object Path.iterdir at
|
1895
|
+
iterdir : <generator object Path.iterdir at 0x73c75e60c0>
|
1897
1896
|
joinpath : .
|
1898
1897
|
name :
|
1899
1898
|
parent : https:/www.google.com
|
@@ -1904,7 +1903,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1904
1903
|
stem :
|
1905
1904
|
suffix :
|
1906
1905
|
suffixes : []
|
1907
|
-
walk : <generator object Path.walk at
|
1906
|
+
walk : <generator object Path.walk at 0x73c75e8f40>
|
1908
1907
|
with_segments : .
|
1909
1908
|
```
|
1910
1909
|
|
@@ -1984,7 +1983,7 @@ x.cancel()
|
|
1984
1983
|
|
1985
1984
|
Output:
|
1986
1985
|
```py
|
1987
|
-
<Timer(Thread-2, started
|
1986
|
+
<Timer(Thread-2, started 497243110640)>
|
1988
1987
|
menghentikan timeout 7
|
1989
1988
|
```
|
1990
1989
|
|
@@ -2002,7 +2001,7 @@ print(list(sets_ordered(array)))
|
|
2002
2001
|
|
2003
2002
|
Output:
|
2004
2003
|
```py
|
2005
|
-
<generator object sets_ordered at
|
2004
|
+
<generator object sets_ordered at 0x73c766c520>
|
2006
2005
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
2007
2006
|
```
|
2008
2007
|
|
@@ -2124,15 +2123,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2124
2123
|
|
2125
2124
|
Output:
|
2126
2125
|
```py
|
2127
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2126
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x73c75b8dc0>,
|
2128
2127
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2129
2128
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2130
2129
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2131
|
-
{'a':
|
2132
|
-
{'a':
|
2133
|
-
{'a':
|
2134
|
-
{'a': 124, 'b':
|
2135
|
-
{'a':
|
2130
|
+
{'a': 170, 'b': 187, 'c': 100, 'd': 161}
|
2131
|
+
{'a': 139, 'b': 170, 'c': 100, 'd': 174}
|
2132
|
+
{'a': 127, 'b': 168, 'c': 100, 'd': 178}
|
2133
|
+
{'a': 124, 'b': 167, 'c': 100, 'd': 173}
|
2134
|
+
{'a': 135, 'b': 168, 'c': 99, 'd': 181}
|
2136
2135
|
```
|
2137
2136
|
|
2138
2137
|
## PintUregQuantity
|
@@ -2241,7 +2240,3 @@ if __name__ == "__main__":
|
|
2241
2240
|
print(ExampleRunParallel().run_multi_processing())
|
2242
2241
|
```
|
2243
2242
|
|
2244
|
-
## TextCase
|
2245
|
-
|
2246
|
-
`TextCase(text: str) -> None`
|
2247
|
-
|
@@ -3,10 +3,9 @@ pypipr/LINUX.py,sha256=XF5CR2imyRv8hGQpsDLDs_RU8xsD1aZLpFldEzP-mkU,77
|
|
3
3
|
pypipr/PintUreg.py,sha256=_jmHZhUn8AcgFkXvZ6OTsWnjtp-CYcXUJ-dG_QdcARY,222
|
4
4
|
pypipr/PintUregQuantity.py,sha256=ErSZKB-GHShi1zKac30XgFdBwAUrxMo80IQzIjQ2HVc,118
|
5
5
|
pypipr/RunParallel.py,sha256=a7Fa0YrnCeXakdgLTd2BYjB6Ck6vvZ1gIaTS7ZISmSg,6536
|
6
|
-
pypipr/TextCase.py,sha256=v62BsRiJUSOqYZM9BHTKvQtF6rWgaug5F0XirXNlens,2896
|
7
6
|
pypipr/WINDOWS.py,sha256=NMW-94lzdqwfEWv2lF_i2GcSHJFDwWjccFufpymg4-E,83
|
8
|
-
pypipr/__init__.py,sha256=
|
9
|
-
pypipr/__terminal__.py,sha256=
|
7
|
+
pypipr/__init__.py,sha256=afjwpmYCAoCvqGOzEoT9egfLQpP8Mvbh95or5gC2dNk,3839
|
8
|
+
pypipr/__terminal__.py,sha256=_XUx9cZBF5RhsZajSSs7dHAHnw_53nZBd1HA2hTj6fk,1413
|
10
9
|
pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
|
11
10
|
pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
12
11
|
pypipr/basename.py,sha256=nypVfls6YL_7sY-MYHDcatm5flpBpGj2aMlIOKG9YqE,194
|
@@ -93,7 +92,7 @@ pypipr/tiles.py,sha256=uSEYqvjBQHIz7pZKtdta1XwFhGrMFieMHOH2DKrlcXc,328
|
|
93
92
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
94
93
|
pypipr/traceback_filename.py,sha256=4o85J0N8clI0cM6NTGcKZ4zxR9yS7W2NS_bz3J2_PnY,288
|
95
94
|
pypipr/traceback_framename.py,sha256=_mullrAZzMhBFEFVCgdsmkYQmYUkd58o-J-HuMntKyc,291
|
96
|
-
pypipr-1.0.
|
97
|
-
pypipr-1.0.
|
98
|
-
pypipr-1.0.
|
99
|
-
pypipr-1.0.
|
95
|
+
pypipr-1.0.174.dist-info/METADATA,sha256=1GFlCQ7JOnYr6x2OeGqMRBSi8vQn7FEW6Jforu4mlcQ,57850
|
96
|
+
pypipr-1.0.174.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
97
|
+
pypipr-1.0.174.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
98
|
+
pypipr-1.0.174.dist-info/RECORD,,
|
pypipr/TextCase.py
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
class TextCase:
|
2
|
-
simbol = ".-_/\ "
|
3
|
-
kapital = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
4
|
-
|
5
|
-
def __init__(self, text: str) -> None:
|
6
|
-
self.text = self.explode(text)
|
7
|
-
self.double_symbol = True
|
8
|
-
|
9
|
-
def explode(self, text):
|
10
|
-
r = []
|
11
|
-
b = ""
|
12
|
-
|
13
|
-
for t in text:
|
14
|
-
if t in self.simbol:
|
15
|
-
if len(b):
|
16
|
-
r.append(b)
|
17
|
-
b = ""
|
18
|
-
r.append(t)
|
19
|
-
elif t in self.kapital:
|
20
|
-
if len(b):
|
21
|
-
r.append(b)
|
22
|
-
b = ""
|
23
|
-
b = t
|
24
|
-
else:
|
25
|
-
b += t
|
26
|
-
|
27
|
-
if len(b):
|
28
|
-
r.append(b)
|
29
|
-
b = ""
|
30
|
-
|
31
|
-
return r
|
32
|
-
|
33
|
-
def to_title_case(self):
|
34
|
-
r = ""
|
35
|
-
z = True
|
36
|
-
for i in self.text:
|
37
|
-
if i in self.simbol:
|
38
|
-
if not z or self.double_symbol:
|
39
|
-
r += ""
|
40
|
-
z = True
|
41
|
-
else:
|
42
|
-
if not z:
|
43
|
-
r += ""
|
44
|
-
r += i.title()
|
45
|
-
z = False
|
46
|
-
return r
|
47
|
-
|
48
|
-
def to_snake_case(self):
|
49
|
-
r = ""
|
50
|
-
z = True
|
51
|
-
for i in self.text:
|
52
|
-
if i in self.simbol:
|
53
|
-
if not z or self.double_symbol:
|
54
|
-
r += "_"
|
55
|
-
z = True
|
56
|
-
else:
|
57
|
-
if not z:
|
58
|
-
r += "_"
|
59
|
-
r += i.lower()
|
60
|
-
z = False
|
61
|
-
return r
|
62
|
-
|
63
|
-
def to_camel_case(self):
|
64
|
-
r = ""
|
65
|
-
z = True
|
66
|
-
for i in self.text:
|
67
|
-
if i in self.simbol:
|
68
|
-
if not z or self.double_symbol:
|
69
|
-
r += ""
|
70
|
-
z = True
|
71
|
-
else:
|
72
|
-
if not z:
|
73
|
-
r += ""
|
74
|
-
r += i.title()
|
75
|
-
z = False
|
76
|
-
return r
|
77
|
-
|
78
|
-
def to_path_case(self):
|
79
|
-
r = ""
|
80
|
-
z = True
|
81
|
-
for i in self.text:
|
82
|
-
if i in self.simbol:
|
83
|
-
if not z or self.double_symbol:
|
84
|
-
r += "/"
|
85
|
-
z = True
|
86
|
-
else:
|
87
|
-
if not z:
|
88
|
-
r += "/"
|
89
|
-
r += i
|
90
|
-
z = False
|
91
|
-
return r
|
92
|
-
|
93
|
-
def to_dot_case(self):
|
94
|
-
r = ""
|
95
|
-
z = True
|
96
|
-
for i in self.text:
|
97
|
-
if i in self.simbol:
|
98
|
-
if not z or self.double_symbol:
|
99
|
-
r += "."
|
100
|
-
z = True
|
101
|
-
else:
|
102
|
-
if not z:
|
103
|
-
r += "."
|
104
|
-
r += i
|
105
|
-
z = False
|
106
|
-
return r
|
107
|
-
|
108
|
-
def to_space_case(self):
|
109
|
-
r = ""
|
110
|
-
z = True
|
111
|
-
for i in self.text:
|
112
|
-
if i in self.simbol:
|
113
|
-
if not z or self.double_symbol:
|
114
|
-
r += " "
|
115
|
-
z = True
|
116
|
-
else:
|
117
|
-
if not z:
|
118
|
-
r += " "
|
119
|
-
r += i
|
120
|
-
z = False
|
121
|
-
return r
|
File without changes
|