pypipr 1.0.173__py3-none-any.whl → 1.0.175__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 -1
- pypipr/poetry_shell.py +14 -0
- {pypipr-1.0.173.dist-info → pypipr-1.0.175.dist-info}/METADATA +187 -180
- {pypipr-1.0.173.dist-info → pypipr-1.0.175.dist-info}/RECORD +6 -6
- {pypipr-1.0.173.dist-info → pypipr-1.0.175.dist-info}/WHEEL +1 -1
- pypipr/TextCase.py +0 -121
- {pypipr-1.0.173.dist-info → pypipr-1.0.175.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
|
@@ -71,6 +70,7 @@ from .path_to_module import path_to_module
|
|
71
70
|
from .pip_freeze_without_version import pip_freeze_without_version
|
72
71
|
from .pip_update_pypipr import pip_update_pypipr
|
73
72
|
from .poetry_publish import poetry_publish
|
73
|
+
from .poetry_shell import poetry_shell
|
74
74
|
from .poetry_update_version import poetry_update_version
|
75
75
|
from .print_colorize import print_colorize
|
76
76
|
from .print_dir import print_dir
|
pypipr/poetry_shell.py
ADDED
@@ -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.175
|
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
|
+
1746618872356961296
|
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 0x789d9fa940>
|
253
|
+
<generator object int_range at 0x789d9faa40>
|
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 0x789d9a7d00>
|
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 0x789da03e60>
|
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 0x789d9ff2e0>
|
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-08 09:18:03.290114+07:00
|
497
|
+
2025-05-08 02:18:03.292046+00:00
|
498
|
+
2025-05-07 19:18:03.296366-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 0x789d9ff4c0>
|
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 0x789d70cba0>
|
665
|
+
[<function ExampleGetClassMethod.a at 0x789d6ffce0>, <function ExampleGetClassMethod.b at 0x789d6ffa60>, <function ExampleGetClassMethod.c at 0x789d6ffc40>, <function ExampleGetClassMethod.d at 0x789d6ffba0>]
|
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',
|
@@ -862,6 +862,7 @@ Output:
|
|
862
862
|
'pip_freeze_without_version',
|
863
863
|
'pip_update_pypipr',
|
864
864
|
'poetry_publish',
|
865
|
+
'poetry_shell',
|
865
866
|
'poetry_update_version',
|
866
867
|
'pprint',
|
867
868
|
'print_colorize',
|
@@ -1089,7 +1090,7 @@ Output:
|
|
1089
1090
|
|
1090
1091
|
## ienumerate
|
1091
1092
|
|
1092
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1093
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x78a1c6af20>)`
|
1093
1094
|
|
1094
1095
|
meningkatkan fungsi enumerate() pada python
|
1095
1096
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1102,7 +1103,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1102
1103
|
|
1103
1104
|
Output:
|
1104
1105
|
```py
|
1105
|
-
<generator object ienumerate at
|
1106
|
+
<generator object ienumerate at 0x789d9ff4c0>
|
1106
1107
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1107
1108
|
```
|
1108
1109
|
|
@@ -1179,7 +1180,7 @@ print(ijoin(10, ' '))
|
|
1179
1180
|
|
1180
1181
|
Output:
|
1181
1182
|
```py
|
1182
|
-
|
1183
|
+
weq, dfs, asd, qweqw
|
1183
1184
|
,ini,path,seperti,url,
|
1184
1185
|
ini,path,seperti,url
|
1185
1186
|
<li>satu</li>
|
@@ -1224,10 +1225,10 @@ pprint.pprint(iloads_html(iopen("https://harga-emas.org/1-gram/")), depth=10)
|
|
1224
1225
|
Output:
|
1225
1226
|
```py
|
1226
1227
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1227
|
-
[['Harga Emas Hari Ini -
|
1228
|
-
['Spot Emas USD
|
1228
|
+
[['Harga Emas Hari Ini - Kamis, 08 Mei 2025'],
|
1229
|
+
['Spot Emas USD↑3.410,46 (+22,22) / oz',
|
1229
1230
|
'Kurs IDR1,00 / USD',
|
1230
|
-
'Emas IDR
|
1231
|
+
'Emas IDR↑110 (+1) / gr'],
|
1231
1232
|
['LM Antam (Jual)↓1.513.000 (-30.000) / gr',
|
1232
1233
|
'LM Antam (Beli)↓1.366.000 (-30.000) / gr']],
|
1233
1234
|
[['Harga Emas Hari Ini'],
|
@@ -1250,10 +1251,10 @@ Output:
|
|
1250
1251
|
'Update harga LM Pegadaian :31 Desember 1969']],
|
1251
1252
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1252
1253
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1253
|
-
['Ounce\xa0(oz)', '3.
|
1254
|
-
['Gram\xa0(gr)', '
|
1255
|
-
['Kilogram\xa0(kg)', '
|
1256
|
-
['Update harga emas :
|
1254
|
+
['Ounce\xa0(oz)', '3.410,46 (+22,22)', '1,00', '3.410'],
|
1255
|
+
['Gram\xa0(gr)', '109,65', '1,00', '110 (+1)'],
|
1256
|
+
['Kilogram\xa0(kg)', '109.648,84', '1,00', '109.649'],
|
1257
|
+
['Update harga emas :08 Mei 2025, pukul 09:18Update kurs :14 Maret 2025, '
|
1257
1258
|
'pukul 10:13']],
|
1258
1259
|
[['Gram', 'UBS Gold 99.99%'],
|
1259
1260
|
['Jual', 'Beli'],
|
@@ -1291,36 +1292,36 @@ Output:
|
|
1291
1292
|
['Unit', 'USD', 'IDR'],
|
1292
1293
|
['Angka', '+/-', 'Angka', '+/-'],
|
1293
1294
|
['Hari Ini', 'Kurs', '', '', '1', '%'],
|
1294
|
-
['oz', '3.
|
1295
|
-
['gr', '108,
|
1295
|
+
['oz', '3.388,24', '+22,22+0,66%', '3.388', '+22+0,66%'],
|
1296
|
+
['gr', '108,93', '+0,71+0,66%', '109', '+1+0,66%'],
|
1296
1297
|
['30 Hari', 'Kurs', '', '', '1', '%'],
|
1297
|
-
['oz', '
|
1298
|
-
['gr', '96,
|
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,
|
1298
|
+
['oz', '2.987,14', '+423,32+14,17%', '2.987', '+423+14,17%'],
|
1299
|
+
['gr', '96,04', '+13,61+14,17%', '96', '+14+14,17%'],
|
1300
|
+
['2 Bulan', 'Kurs', '', '', '16.315', '-16.314-99,99%'],
|
1301
|
+
['oz', '2.911,17', '+499,29+17,15%', '47.495.739', '-47.492.328-99,99%'],
|
1302
|
+
['gr', '93,60', '+16,05+17,15', '1.527.023', '-1.526.914-99,99%'],
|
1303
|
+
['6 Bulan', 'Kurs', '', '', '15.767', '-15.766-99,99%'],
|
1304
|
+
['oz', '2.684,64', '+725,82+27,04%', '42.328.719', '-42.325.308-99,99%'],
|
1305
|
+
['gr', '86,31', '+23,34+27,04%', '1.360.900', '-1.360.790-99,99%'],
|
1306
|
+
['1 Tahun', 'Kurs', '', '', '16.054', '-16.053-99,99%'],
|
1307
|
+
['oz', '2.317,41', '+1.093,05+47,17%', '37.203.700', '-37.200.290-99,99%'],
|
1308
|
+
['gr', '74,51', '+35,14+47,17%', '1.196.127', '-1.196.017-99,99%'],
|
1308
1309
|
['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', '
|
1310
|
+
['oz', '1.823,86', '+1.586,60+86,99%', '28.691.142', '-28.687.731-99,99%'],
|
1311
|
+
['gr', '58,64', '+51,01+86,99%', '922.442', '-922.332-99,99%'],
|
1312
|
+
['3 Tahun', 'Kurs', '', '', '14.480', '-14.479-99,99%'],
|
1313
|
+
['oz', '1.861,38', '+1.549,08+83,22%', '26.952.782', '-26.949.372-99,99%'],
|
1314
|
+
['gr', '59,84', '+49,80+83,22%', '866.552', '-866.442-99,99%'],
|
1315
|
+
['5 Tahun', 'Kurs', '', '', '15.009', '-15.008-99,99%'],
|
1316
|
+
['oz', '1.702,22', '+1.708,24+100,35%', '25.548.637', '-25.545.227-99,99%'],
|
1317
|
+
['gr', '54,73', '+54,92+100,35%', '821.408', '-821.298-99,99%']])
|
1317
1318
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1318
1319
|
[[''],
|
1319
1320
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1320
|
-
['USD', '
|
1321
|
-
['KURS', '16.
|
1322
|
-
['IDR', '1.
|
1323
|
-
['
|
1321
|
+
['USD', '109,65↑', '+0,72+0,66%'],
|
1322
|
+
['KURS', '16.566,00↑', '+97,50+0,59%'],
|
1323
|
+
['IDR', '1.816.442,60↑', '+22.455,68+1,25%'],
|
1324
|
+
['Kamis, 08 Mei 2025 09:18']],
|
1324
1325
|
[[''],
|
1325
1326
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1326
1327
|
'Hari Ini',
|
@@ -1331,25 +1332,25 @@ Output:
|
|
1331
1332
|
'']],
|
1332
1333
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1333
1334
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1334
|
-
['USD', '108,
|
1335
|
-
['KURS', '16.
|
1336
|
-
['IDR', '1.
|
1335
|
+
['USD', '108,93', '108,93 - 109,65', '109,29'],
|
1336
|
+
['KURS', '16.468,50', '16.468,50 - 16.566,00', '16.517,25'],
|
1337
|
+
['IDR', '1.793.986,92', '1.793.986,92 - 1.816.442,60', '1.805.214,76'],
|
1337
1338
|
[''],
|
1338
1339
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1339
|
-
['USD', '84,42', '84,38 - 109,73', '+
|
1340
|
-
['KURS', '16.220,76', '16.156,70 - 16.
|
1340
|
+
['USD', '84,42', '84,38 - 109,73', '+25,23 (29,89%)'],
|
1341
|
+
['KURS', '16.220,76', '16.156,70 - 16.877,75', '+345,24 (2,13%)'],
|
1341
1342
|
['IDR',
|
1342
1343
|
'1.369.306,75',
|
1343
1344
|
'1.368.695,74 - 1.850.462,40',
|
1344
|
-
'+
|
1345
|
+
'+447.135,85 (32,65%)'],
|
1345
1346
|
[''],
|
1346
1347
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1347
|
-
['USD', '74,
|
1348
|
-
['KURS', '16.
|
1348
|
+
['USD', '74,37', '73,75 - 109,73', '+35,28 (47,44%)'],
|
1349
|
+
['KURS', '16.067,00', '15.100,00 - 16.877,75', '+499,00 (3,11%)'],
|
1349
1350
|
['IDR',
|
1350
|
-
'1.
|
1351
|
-
'1.
|
1352
|
-
'+
|
1351
|
+
'1.194.982,56',
|
1352
|
+
'1.197.616,87 - 1.850.462,40',
|
1353
|
+
'+621.460,04 (52,01%)']])
|
1353
1354
|
```
|
1354
1355
|
|
1355
1356
|
## iloads
|
@@ -1479,7 +1480,7 @@ Output:
|
|
1479
1480
|
```py
|
1480
1481
|
8
|
1481
1482
|
['mana', 'aja']
|
1482
|
-
[<Element a at
|
1483
|
+
[<Element a at 0x789d7dc370>, <Element a at 0x789d7de350>, <Element a at 0x789d7dc410>, <Element a at 0x789d7dc4b0>, <Element a at 0x789d7dc500>, <Element a at 0x789d7dc5f0>, <Element a at 0x789d7dc690>, <Element a at 0x789d7dc730>, <Element a at 0x789d7dc870>, <Element a at 0x789d7dc8c0>, <Element a at 0x789d7dc910>, <Element a at 0x789d7dc960>, <Element a at 0x789d7dc9b0>, <Element a at 0x789d7dca00>, <Element a at 0x789d7dca50>, <Element a at 0x789d7dcaa0>, <Element a at 0x789d7dcaf0>, <Element a at 0x789d7dd590>]
|
1483
1484
|
False
|
1484
1485
|
```
|
1485
1486
|
|
@@ -1549,8 +1550,8 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1549
1550
|
|
1550
1551
|
Output:
|
1551
1552
|
```py
|
1552
|
-
<generator object iscandir at
|
1553
|
-
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr')
|
1553
|
+
<generator object iscandir at 0x789d9ff3d0>
|
1554
|
+
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr')]
|
1554
1555
|
```
|
1555
1556
|
|
1556
1557
|
## isplit
|
@@ -1582,119 +1583,119 @@ iprint(ivars(__import__('pypipr')))
|
|
1582
1583
|
|
1583
1584
|
Output:
|
1584
1585
|
```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
|
-
'
|
1655
|
-
'
|
1656
|
-
'
|
1657
|
-
'
|
1658
|
-
'
|
1659
|
-
'
|
1660
|
-
'
|
1661
|
-
'
|
1662
|
-
'
|
1663
|
-
'
|
1664
|
-
'
|
1665
|
-
'
|
1666
|
-
'
|
1667
|
-
'
|
1668
|
-
'
|
1669
|
-
'
|
1670
|
-
'
|
1586
|
+
{'function': {'avg': <function avg at 0x78a55f0720>,
|
1587
|
+
'get_filemtime': <function get_filemtime at 0x78a1d720c0>,
|
1588
|
+
'print_colorize': <function print_colorize at 0x78a1d722a0>,
|
1589
|
+
'print_log': <function print_log at 0x78a1d72160>,
|
1590
|
+
'console_run': <function console_run at 0x78a1d70720>,
|
1591
|
+
'auto_reload': <function auto_reload at 0x78a1e13a60>,
|
1592
|
+
'basename': <function basename at 0x78a1d72340>,
|
1593
|
+
'chr_to_int': <function chr_to_int at 0x78a1d728e0>,
|
1594
|
+
'int_to_chr': <function int_to_chr at 0x78a1d72980>,
|
1595
|
+
'irange': <function irange at 0x78a1d72e80>,
|
1596
|
+
'batchmaker': <function batchmaker at 0x78a1d72660>,
|
1597
|
+
'calculate': <function calculate at 0x78a1d72200>,
|
1598
|
+
'batch_calculate': <function batch_calculate at 0x78a1d723e0>,
|
1599
|
+
'bin_to_int': <function bin_to_int at 0x78a1d725c0>,
|
1600
|
+
'is_empty': <function is_empty at 0x78a1d73740>,
|
1601
|
+
'exit_if_empty': <function exit_if_empty at 0x78a1d73600>,
|
1602
|
+
'input_char': <function input_char at 0x78a1d736a0>,
|
1603
|
+
'choices': <function choices at 0x78a1d739c0>,
|
1604
|
+
'chunk_array': <function chunk_array at 0x78a1d73a60>,
|
1605
|
+
'create_folder': <function create_folder at 0x78a1d73b00>,
|
1606
|
+
'datetime_from_string': <function datetime_from_string at 0x78a1d73ba0>,
|
1607
|
+
'datetime_now': <function datetime_now at 0x78a1d73c40>,
|
1608
|
+
'dict_first': <function dict_first at 0x78a1d61ee0>,
|
1609
|
+
'dirname': <function dirname at 0x78a1d62020>,
|
1610
|
+
'django_clear_migrations': <function django_clear_migrations at 0x78a1d620c0>,
|
1611
|
+
'django_runserver': <function django_runserver at 0x78a1d623e0>,
|
1612
|
+
'is_iterable': <function is_iterable at 0x78a1d627a0>,
|
1613
|
+
'to_str': <function to_str at 0x78a1d628e0>,
|
1614
|
+
'filter_empty': <function filter_empty at 0x78a1d62660>,
|
1615
|
+
'get_by_index': <function get_by_index at 0x78a1d62840>,
|
1616
|
+
'get_class_method': <function get_class_method at 0x78a1d62980>,
|
1617
|
+
'get_filesize': <function get_filesize at 0x78a1d62ac0>,
|
1618
|
+
'github_init': <function github_init at 0x78a1d62b60>,
|
1619
|
+
'github_pull': <function github_pull at 0x78a1d62c00>,
|
1620
|
+
'github_push': <function github_push at 0x78a1d62d40>,
|
1621
|
+
'github_user': <function github_user at 0x78a1d62de0>,
|
1622
|
+
'hex_to_int': <function hex_to_int at 0x78a1d62e80>,
|
1623
|
+
'iargv': <function iargv at 0x78a1d62f20>,
|
1624
|
+
'idir': <function idir at 0x78a1d62fc0>,
|
1625
|
+
'idumps_html': <function idumps_html at 0x78a1c6aa20>,
|
1626
|
+
'idumps': <function idumps at 0x78a1d63060>,
|
1627
|
+
'int_to_int': <function int_to_int at 0x78a1c6af20>,
|
1628
|
+
'ienumerate': <function ienumerate at 0x78a1c55260>,
|
1629
|
+
'ienv': <function ienv at 0x78a1c6ade0>,
|
1630
|
+
'iexec': <function iexec at 0x78a1c6afc0>,
|
1631
|
+
'iinput': <function iinput at 0x78a1c6b060>,
|
1632
|
+
'ijoin': <function ijoin at 0x78a1c6b100>,
|
1633
|
+
'iloads_html': <function iloads_html at 0x78a1c6b420>,
|
1634
|
+
'iloads': <function iloads at 0x78a60a5260>,
|
1635
|
+
'int_to_bin': <function int_to_bin at 0x78a1c6b1a0>,
|
1636
|
+
'int_to_hex': <function int_to_hex at 0x78a1c6b240>,
|
1637
|
+
'int_to_oct': <function int_to_oct at 0x78a1c6b4c0>,
|
1638
|
+
'is_valid_url': <function is_valid_url at 0x78a1c6b740>,
|
1639
|
+
'iopen': <function iopen at 0x78a1a2b2e0>,
|
1640
|
+
'iprint': <function iprint at 0x78a1a7e2a0>,
|
1641
|
+
'is_raw_string': <function is_raw_string at 0x789dbecc20>,
|
1642
|
+
'ireplace': <function ireplace at 0x789dbe3100>,
|
1643
|
+
'is_html': <function is_html at 0x789dbecb80>,
|
1644
|
+
'iscandir': <function iscandir at 0x789dbeccc0>,
|
1645
|
+
'isplit': <function isplit at 0x789dbecd60>,
|
1646
|
+
'ivars': <function ivars at 0x789dbece00>,
|
1647
|
+
'log': <function log at 0x789dbecea0>,
|
1648
|
+
'no_indent': <function no_indent at 0x789dbecf40>,
|
1649
|
+
'oct_to_int': <function oct_to_int at 0x789dbecfe0>,
|
1650
|
+
'password_generator': <function password_generator at 0x789dbed080>,
|
1651
|
+
'path_to_module': <function path_to_module at 0x789dbed120>,
|
1652
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x789dbed1c0>,
|
1653
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x789dbed260>,
|
1654
|
+
'poetry_publish': <function poetry_publish at 0x789dbed300>,
|
1655
|
+
'poetry_shell': <function poetry_shell at 0x789dbed440>,
|
1656
|
+
'poetry_update_version': <function poetry_update_version at 0x789dbed4e0>,
|
1657
|
+
'print_dir': <function print_dir at 0x789dbed620>,
|
1658
|
+
'print_to_last_line': <function print_to_last_line at 0x789dbed6c0>,
|
1659
|
+
'random_bool': <function random_bool at 0x789dbed760>,
|
1660
|
+
'repath': <function repath at 0x789dbed8a0>,
|
1661
|
+
'restart': <function restart at 0x789dbed940>,
|
1662
|
+
'set_timeout': <function set_timeout at 0x789dbed9e0>,
|
1663
|
+
'sets_ordered': <function sets_ordered at 0x789dbeda80>,
|
1664
|
+
'sqlite_backup': <function sqlite_backup at 0x789dbedb20>,
|
1665
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x789dbedbc0>,
|
1666
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x789dbedc60>,
|
1667
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x789dbedd00>,
|
1668
|
+
'str_cmp': <function str_cmp at 0x789dbee5c0>,
|
1669
|
+
'text_colorize': <function text_colorize at 0x789dbee660>,
|
1670
|
+
'tiles': <function tiles at 0x789dbee700>,
|
1671
|
+
'traceback_filename': <function traceback_filename at 0x789dbee7a0>,
|
1672
|
+
'traceback_framename': <function traceback_framename at 0x789dbee840>},
|
1671
1673
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1672
1674
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1673
|
-
'RunParallel': <class 'pypipr.RunParallel.RunParallel'
|
1674
|
-
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1675
|
+
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>},
|
1675
1676
|
'variable': {'LINUX': True,
|
1676
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1677
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x78a55e8e30>,
|
1677
1678
|
'WINDOWS': False},
|
1678
1679
|
'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/home/.cache/pypoetry/virtualenvs/pypipr-
|
1680
|
+
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/colorama/__init__.py'>,
|
1680
1681
|
'csv': <module 'csv' from '/data/data/com.termux/files/usr/lib/python3.12/csv.py'>,
|
1681
1682
|
'datetime': <module 'datetime' from '/data/data/com.termux/files/usr/lib/python3.12/datetime.py'>,
|
1682
1683
|
'functools': <module 'functools' from '/data/data/com.termux/files/usr/lib/python3.12/functools.py'>,
|
1683
1684
|
'inspect': <module 'inspect' from '/data/data/com.termux/files/usr/lib/python3.12/inspect.py'>,
|
1684
1685
|
'io': <module 'io' (frozen)>,
|
1685
1686
|
'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/home/.cache/pypoetry/virtualenvs/pypipr-
|
1687
|
+
'lxml': <module 'lxml' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/lxml/__init__.py'>,
|
1687
1688
|
'math': <module 'math' from '/data/data/com.termux/files/usr/lib/python3.12/lib-dynload/math.cpython-312.so'>,
|
1688
1689
|
'multiprocessing': <module 'multiprocessing' from '/data/data/com.termux/files/usr/lib/python3.12/multiprocessing/__init__.py'>,
|
1689
1690
|
'operator': <module 'operator' from '/data/data/com.termux/files/usr/lib/python3.12/operator.py'>,
|
1690
1691
|
'os': <module 'os' (frozen)>,
|
1691
1692
|
'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/home/.cache/pypoetry/virtualenvs/pypipr-
|
1693
|
+
'pint': <module 'pint' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/pint/__init__.py'>,
|
1693
1694
|
'pprint': <module 'pprint' from '/data/data/com.termux/files/usr/lib/python3.12/pprint.py'>,
|
1694
1695
|
'queue': <module 'queue' from '/data/data/com.termux/files/usr/lib/python3.12/queue.py'>,
|
1695
1696
|
'random': <module 'random' from '/data/data/com.termux/files/usr/lib/python3.12/random.py'>,
|
1696
1697
|
'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/home/.cache/pypoetry/virtualenvs/pypipr-
|
1698
|
+
'requests': <module 'requests' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/requests/__init__.py'>,
|
1698
1699
|
'string': <module 'string' from '/data/data/com.termux/files/usr/lib/python3.12/string.py'>,
|
1699
1700
|
'subprocess': <module 'subprocess' from '/data/data/com.termux/files/usr/lib/python3.12/subprocess.py'>,
|
1700
1701
|
'sys': <module 'sys' (built-in)>,
|
@@ -1702,10 +1703,10 @@ Output:
|
|
1702
1703
|
'threading': <module 'threading' from '/data/data/com.termux/files/usr/lib/python3.12/threading.py'>,
|
1703
1704
|
'time': <module 'time' (built-in)>,
|
1704
1705
|
'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/home/.cache/pypoetry/virtualenvs/pypipr-
|
1706
|
+
'tzdata': <module 'tzdata' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/tzdata/__init__.py'>,
|
1706
1707
|
'uuid': <module 'uuid' from '/data/data/com.termux/files/usr/lib/python3.12/uuid.py'>,
|
1707
1708
|
'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/home/.cache/pypoetry/virtualenvs/pypipr-
|
1709
|
+
'yaml': <module 'yaml' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-C3uocabE-py3.12/lib/python3.12/site-packages/yaml/__init__.py'>,
|
1709
1710
|
'zoneinfo': <module 'zoneinfo' from '/data/data/com.termux/files/usr/lib/python3.12/zoneinfo/__init__.py'>}}
|
1710
1711
|
```
|
1711
1712
|
|
@@ -1768,7 +1769,7 @@ print(password_generator())
|
|
1768
1769
|
|
1769
1770
|
Output:
|
1770
1771
|
```py
|
1771
|
-
|
1772
|
+
eG&H<y]Z
|
1772
1773
|
```
|
1773
1774
|
|
1774
1775
|
## path_to_module
|
@@ -1813,6 +1814,16 @@ Publish project to pypi,org
|
|
1813
1814
|
poetry_publish()
|
1814
1815
|
```
|
1815
1816
|
|
1817
|
+
## poetry_shell
|
1818
|
+
|
1819
|
+
`poetry_shell()`
|
1820
|
+
|
1821
|
+
Masuk ke virtual environment poetry
|
1822
|
+
|
1823
|
+
```py
|
1824
|
+
poetry_shell()
|
1825
|
+
```
|
1826
|
+
|
1816
1827
|
## poetry_update_version
|
1817
1828
|
|
1818
1829
|
`poetry_update_version(mayor=False, minor=False, patch=False)`
|
@@ -1847,7 +1858,7 @@ Output:
|
|
1847
1858
|
__enter__ : https:/www.google.com
|
1848
1859
|
__fspath__ : https:/www.google.com
|
1849
1860
|
__getstate__ : (None, {'_raw_paths': ['https://www.google.com/'], '_drv': '', '_root': '', '_tail_cached': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1850
|
-
__hash__ : -
|
1861
|
+
__hash__ : -4191427992187343970
|
1851
1862
|
__init__ : None
|
1852
1863
|
__init_subclass__ : None
|
1853
1864
|
__module__ : pathlib
|
@@ -1859,7 +1870,7 @@ Output:
|
|
1859
1870
|
__subclasshook__ : NotImplemented
|
1860
1871
|
_drv :
|
1861
1872
|
_flavour : <module 'posixpath' (frozen)>
|
1862
|
-
_hash : -
|
1873
|
+
_hash : -4191427992187343970
|
1863
1874
|
_lines : https:
|
1864
1875
|
www.google.com
|
1865
1876
|
_lines_cached : https:
|
@@ -1874,10 +1885,10 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1874
1885
|
_str_normcase_cached : https:/www.google.com
|
1875
1886
|
_tail : []
|
1876
1887
|
_tail_cached : []
|
1877
|
-
absolute : /data/data/com.termux/files/home/
|
1888
|
+
absolute : /data/data/com.termux/files/home/r/p
|
1878
1889
|
anchor :
|
1879
1890
|
as_posix : https:/www.google.com
|
1880
|
-
cwd : /data/data/com.termux/files/home/
|
1891
|
+
cwd : /data/data/com.termux/files/home/r/p
|
1881
1892
|
drive :
|
1882
1893
|
exists : False
|
1883
1894
|
expanduser : https:/www.google.com
|
@@ -1893,18 +1904,18 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1893
1904
|
is_reserved : False
|
1894
1905
|
is_socket : False
|
1895
1906
|
is_symlink : False
|
1896
|
-
iterdir : <generator object Path.iterdir at
|
1907
|
+
iterdir : <generator object Path.iterdir at 0x789d730110>
|
1897
1908
|
joinpath : .
|
1898
1909
|
name :
|
1899
1910
|
parent : https:/www.google.com
|
1900
1911
|
parents : <PosixPath.parents>
|
1901
1912
|
parts : ()
|
1902
|
-
resolve : /data/data/com.termux/files/home/
|
1913
|
+
resolve : /data/data/com.termux/files/home/r/p/https:/www.google.com
|
1903
1914
|
root :
|
1904
1915
|
stem :
|
1905
1916
|
suffix :
|
1906
1917
|
suffixes : []
|
1907
|
-
walk : <generator object Path.walk at
|
1918
|
+
walk : <generator object Path.walk at 0x789dcb7880>
|
1908
1919
|
with_segments : .
|
1909
1920
|
```
|
1910
1921
|
|
@@ -1946,7 +1957,7 @@ print(random_bool())
|
|
1946
1957
|
|
1947
1958
|
Output:
|
1948
1959
|
```py
|
1949
|
-
|
1960
|
+
True
|
1950
1961
|
```
|
1951
1962
|
|
1952
1963
|
## repath
|
@@ -1984,7 +1995,7 @@ x.cancel()
|
|
1984
1995
|
|
1985
1996
|
Output:
|
1986
1997
|
```py
|
1987
|
-
<Timer(Thread-2, started
|
1998
|
+
<Timer(Thread-2, started 518009109744)>
|
1988
1999
|
menghentikan timeout 7
|
1989
2000
|
```
|
1990
2001
|
|
@@ -2002,7 +2013,7 @@ print(list(sets_ordered(array)))
|
|
2002
2013
|
|
2003
2014
|
Output:
|
2004
2015
|
```py
|
2005
|
-
<generator object sets_ordered at
|
2016
|
+
<generator object sets_ordered at 0x789d733100>
|
2006
2017
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
2007
2018
|
```
|
2008
2019
|
|
@@ -2124,15 +2135,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2124
2135
|
|
2125
2136
|
Output:
|
2126
2137
|
```py
|
2127
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2138
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x789d6f1840>,
|
2128
2139
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2129
2140
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2130
2141
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2131
|
-
{'a':
|
2132
|
-
{'a':
|
2133
|
-
{'a':
|
2134
|
-
{'a':
|
2135
|
-
{'a':
|
2142
|
+
{'a': 100, 'b': 185, 'c': 153, 'd': 165}
|
2143
|
+
{'a': 100, 'b': 179, 'c': 127, 'd': 173}
|
2144
|
+
{'a': 100, 'b': 166, 'c': 116, 'd': 171}
|
2145
|
+
{'a': 100, 'b': 175, 'c': 121, 'd': 173}
|
2146
|
+
{'a': 100, 'b': 166, 'c': 109, 'd': 171}
|
2136
2147
|
```
|
2137
2148
|
|
2138
2149
|
## PintUregQuantity
|
@@ -2241,7 +2252,3 @@ if __name__ == "__main__":
|
|
2241
2252
|
print(ExampleRunParallel().run_multi_processing())
|
2242
2253
|
```
|
2243
2254
|
|
2244
|
-
## TextCase
|
2245
|
-
|
2246
|
-
`TextCase(text: str) -> None`
|
2247
|
-
|
@@ -3,9 +3,8 @@ 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=
|
7
|
+
pypipr/__init__.py,sha256=5QfHX8hq9KjbpaAOalRZDtdflk-FuUHIi0SkDK1Q_go,3878
|
9
8
|
pypipr/__terminal__.py,sha256=N_NEXa0V5QLb-dkP1Vp_fYKNjE4jGTqkiYNwPPOXZtw,1412
|
10
9
|
pypipr/auto_reload.py,sha256=FGchFBjQs_eT7CmOMLNYoch-17q7ySFOnPx5z1kbH3E,918
|
11
10
|
pypipr/avg.py,sha256=wUtX3x8dgLoODhQLyMB-HRMVo8Ha2yz3cp7lgcUNbr0,218
|
@@ -73,6 +72,7 @@ pypipr/path_to_module.py,sha256=FdORASXdtKv_kQxOcd4nL13UxXKGOXaA4SrwDgpw2pQ,948
|
|
73
72
|
pypipr/pip_freeze_without_version.py,sha256=txQ7zn-RCEsO94XK-IhSZtMgDUHvoMJm0kO0j07WEjM,675
|
74
73
|
pypipr/pip_update_pypipr.py,sha256=bKQ-7cReZHwQYcvkm9bVxbexdda1oz7jGXPsjdr-DnQ,147
|
75
74
|
pypipr/poetry_publish.py,sha256=2mebYHdjQ3PKaZsif_r1Nz4N-PEaoozPf4S6sm5nVkw,349
|
75
|
+
pypipr/poetry_shell.py,sha256=PNfCirZFU0AqRjZYtYl6D-dNVog1kmKocN3-9KPPoes,243
|
76
76
|
pypipr/poetry_update_version.py,sha256=iFA0DIz5_h7_v3PmWRzR5Ayu5h3ikNciTw_zI_3d3lg,470
|
77
77
|
pypipr/print_colorize.py,sha256=Ld4cjI9E7C8NDLCOkJLtwiV7WYBjizJ6dvmE__lN2GY,541
|
78
78
|
pypipr/print_dir.py,sha256=kO-YruOQ_gCaN7gsSXfcTbufWqAqtRemW8KrUqIijC8,919
|
@@ -93,7 +93,7 @@ pypipr/tiles.py,sha256=uSEYqvjBQHIz7pZKtdta1XwFhGrMFieMHOH2DKrlcXc,328
|
|
93
93
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
94
94
|
pypipr/traceback_filename.py,sha256=4o85J0N8clI0cM6NTGcKZ4zxR9yS7W2NS_bz3J2_PnY,288
|
95
95
|
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.
|
96
|
+
pypipr-1.0.175.dist-info/METADATA,sha256=RiHu_l37oHfizxl37k8kbZAeuB_o20_-PhhykPxfNPs,58357
|
97
|
+
pypipr-1.0.175.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
98
|
+
pypipr-1.0.175.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
99
|
+
pypipr-1.0.175.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
|