pypipr 1.0.162__py3-none-any.whl → 1.0.164__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/iinput.py +55 -12
- {pypipr-1.0.162.dist-info → pypipr-1.0.164.dist-info}/METADATA +146 -143
- {pypipr-1.0.162.dist-info → pypipr-1.0.164.dist-info}/RECORD +5 -5
- {pypipr-1.0.162.dist-info → pypipr-1.0.164.dist-info}/WHEEL +0 -0
- {pypipr-1.0.162.dist-info → pypipr-1.0.164.dist-info}/entry_points.txt +0 -0
pypipr/iinput.py
CHANGED
@@ -1,21 +1,64 @@
|
|
1
1
|
import sys
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
argv = sys.argv[1:]
|
4
|
+
argv_iter = iter(argv)
|
5
5
|
|
6
6
|
|
7
|
-
def iinput(
|
7
|
+
def iinput(*args, **kwargs):
|
8
8
|
"""
|
9
|
-
|
10
|
-
|
9
|
+
iinput()
|
10
|
+
iinput("pesan")
|
11
|
+
iinput("pesan", default)
|
12
|
+
iinput(msg="...", default="...")
|
13
|
+
iinput(default="...")
|
11
14
|
"""
|
12
|
-
global
|
15
|
+
global argv_iter
|
16
|
+
k = {}
|
13
17
|
|
14
|
-
|
15
|
-
|
16
|
-
|
18
|
+
try:
|
19
|
+
_next = next(argv_iter)
|
20
|
+
if _next != "_":
|
21
|
+
return _next
|
22
|
+
k["_"] = True
|
23
|
+
except Exception:
|
24
|
+
pass
|
25
|
+
|
26
|
+
|
27
|
+
def get_args(indeks):
|
28
|
+
try:
|
29
|
+
return args[indeks]
|
30
|
+
except Exception:
|
31
|
+
raise
|
32
|
+
|
33
|
+
def get_kwargs(key, indeks):
|
34
|
+
if key in kwargs:
|
35
|
+
return kwargs[key]
|
36
|
+
return get_args(indeks)
|
37
|
+
|
38
|
+
try:
|
39
|
+
k["msg"] = get_kwargs("msg", 0)
|
40
|
+
except Exception:
|
41
|
+
pass
|
17
42
|
|
18
43
|
try:
|
19
|
-
|
20
|
-
except
|
21
|
-
|
44
|
+
k["default"] = get_kwargs("default", 1)
|
45
|
+
except Exception:
|
46
|
+
pass
|
47
|
+
|
48
|
+
use_default = "_" in k
|
49
|
+
no_msg = "msg" not in k
|
50
|
+
no_default = "default" not in k
|
51
|
+
has_msg = "msg" in k
|
52
|
+
has_default = "default" in k
|
53
|
+
|
54
|
+
if use_default and has_default:
|
55
|
+
return k["default"]
|
56
|
+
|
57
|
+
if has_default and no_msg:
|
58
|
+
return k["default"]
|
59
|
+
|
60
|
+
if has_msg and no_default:
|
61
|
+
return input(k["msg"])
|
62
|
+
|
63
|
+
if has_msg and has_default:
|
64
|
+
return input(k["msg"]) or k["default"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pypipr
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.164
|
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 0x77f180a940>
|
252
|
+
<generator object int_range at 0x77f180aa40>
|
253
253
|
[13, 12, 11, 10, 9, 8, 7, 6]
|
254
254
|
[2, 5, 8]
|
255
255
|
[]
|
@@ -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 0x77f181b1c0>
|
285
285
|
['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
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 0x77f1833300>
|
339
339
|
[('1 m ** 1', <Quantity(1, 'meter')>), ('1 m ** 2', <Quantity(1, 'meter ** 2')>), ('1 m ** 3', <Quantity(1, 'meter ** 3')>)]
|
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 0x77f1817010>
|
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
|
-
2025-04-07
|
496
|
-
2025-04-07
|
497
|
-
2025-04-06
|
495
|
+
2025-04-07 20:20:28.326318+07:00
|
496
|
+
2025-04-07 13:20:28.328509+00:00
|
497
|
+
2025-04-07 06:20:28.331140-07:00
|
498
498
|
```
|
499
499
|
|
500
500
|
## dict_first
|
@@ -608,7 +608,7 @@ iprint(filter_empty(var))
|
|
608
608
|
|
609
609
|
Output:
|
610
610
|
```py
|
611
|
-
<generator object filter_empty at
|
611
|
+
<generator object filter_empty at 0x77f18171f0>
|
612
612
|
[1, '0', True, {}, ['eee']]
|
613
613
|
```
|
614
614
|
|
@@ -655,8 +655,8 @@ print(list(get_class_method(ExampleGetClassMethod)))
|
|
655
655
|
|
656
656
|
Output:
|
657
657
|
```py
|
658
|
-
<generator object get_class_method at
|
659
|
-
[<function ExampleGetClassMethod.a at
|
658
|
+
<generator object get_class_method at 0x77f1833e60>
|
659
|
+
[<function ExampleGetClassMethod.a at 0x77f1886ca0>, <function ExampleGetClassMethod.b at 0x77f1886b60>, <function ExampleGetClassMethod.c at 0x77f1886ac0>, <function ExampleGetClassMethod.d at 0x77f1886d40>]
|
660
660
|
```
|
661
661
|
|
662
662
|
## get_filesize
|
@@ -1082,7 +1082,7 @@ Output:
|
|
1082
1082
|
|
1083
1083
|
## ienumerate
|
1084
1084
|
|
1085
|
-
`ienumerate(iterator, start=0, key=<function int_to_int at
|
1085
|
+
`ienumerate(iterator, start=0, key=<function int_to_int at 0x77f77b25c0>)`
|
1086
1086
|
|
1087
1087
|
meningkatkan fungsi enumerate() pada python
|
1088
1088
|
untuk key menggunakan huruf dan basis angka lainnya.
|
@@ -1095,7 +1095,7 @@ iprint(ienumerate(it, key=int_to_chr))
|
|
1095
1095
|
|
1096
1096
|
Output:
|
1097
1097
|
```py
|
1098
|
-
<generator object ienumerate at
|
1098
|
+
<generator object ienumerate at 0x77f18171f0>
|
1099
1099
|
[('a', 'ini'), ('b', 'contoh'), ('c', 'enumerator')]
|
1100
1100
|
```
|
1101
1101
|
|
@@ -1140,10 +1140,13 @@ Output:
|
|
1140
1140
|
|
1141
1141
|
## iinput
|
1142
1142
|
|
1143
|
-
`iinput(
|
1143
|
+
`iinput(*args, **kwargs)`
|
1144
1144
|
|
1145
|
-
|
1146
|
-
|
1145
|
+
iinput()
|
1146
|
+
iinput("pesan")
|
1147
|
+
iinput("pesan", default)
|
1148
|
+
iinput(msg="...", default="...")
|
1149
|
+
iinput(default="...")
|
1147
1150
|
|
1148
1151
|
## ijoin
|
1149
1152
|
|
@@ -1169,7 +1172,7 @@ print(ijoin(10, ' '))
|
|
1169
1172
|
|
1170
1173
|
Output:
|
1171
1174
|
```py
|
1172
|
-
|
1175
|
+
dfs, asd, weq, qweqw
|
1173
1176
|
,ini,path,seperti,url,
|
1174
1177
|
ini,path,seperti,url
|
1175
1178
|
<li>satu</li>
|
@@ -1215,7 +1218,7 @@ Output:
|
|
1215
1218
|
```py
|
1216
1219
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1217
1220
|
[['Harga Emas Hari Ini - Senin, 07 April 2025'],
|
1218
|
-
['Spot Emas USD↓3.027,
|
1221
|
+
['Spot Emas USD↓3.027,13 (-10,52) / oz',
|
1219
1222
|
'Kurs IDR1,00 / USD',
|
1220
1223
|
'Emas IDR↓97 (-0) / gr'],
|
1221
1224
|
['LM Antam (Jual)↓1.513.000 (-30.000) / gr',
|
@@ -1240,10 +1243,10 @@ Output:
|
|
1240
1243
|
'Update harga LM Pegadaian :31 Desember 1969']],
|
1241
1244
|
[['Spot Harga Emas Hari Ini (Market Open)'],
|
1242
1245
|
['Satuan', 'USD', 'Kurs\xa0Dollar', 'IDR'],
|
1243
|
-
['Ounce\xa0(oz)', '3.027,
|
1246
|
+
['Ounce\xa0(oz)', '3.027,13 (-10,52)', '1,00', '3.027'],
|
1244
1247
|
['Gram\xa0(gr)', '97,32', '1,00', '97 (-0)'],
|
1245
|
-
['Kilogram\xa0(kg)', '97.
|
1246
|
-
['Update harga emas :07 April 2025, pukul
|
1248
|
+
['Kilogram\xa0(kg)', '97.324,49', '1,00', '97.324'],
|
1249
|
+
['Update harga emas :07 April 2025, pukul 20:19Update kurs :14 Maret 2025, '
|
1247
1250
|
'pukul 10:13']],
|
1248
1251
|
[['Gram', 'UBS Gold 99.99%'],
|
1249
1252
|
['Jual', 'Beli'],
|
@@ -1281,36 +1284,36 @@ Output:
|
|
1281
1284
|
['Unit', 'USD', 'IDR'],
|
1282
1285
|
['Angka', '+/-', 'Angka', '+/-'],
|
1283
1286
|
['Hari Ini', 'Kurs', '', '', '1', '%'],
|
1284
|
-
['oz', '3.037,65', '-10,
|
1287
|
+
['oz', '3.037,65', '-10,52-0,35%', '3.038', '-11-0,35%'],
|
1285
1288
|
['gr', '97,66', '-0,34-0,35%', '98', '-0-0,35%'],
|
1286
1289
|
['30 Hari', 'Kurs', '', '', '16.315', '-16.314-99,99%'],
|
1287
|
-
['oz', '2.911,17', '+115,
|
1290
|
+
['oz', '2.911,17', '+115,96+3,98%', '47.495.739', '-47.492.711-99,99%'],
|
1288
1291
|
['gr', '93,60', '+3,73+3,98%', '1.527.023', '-1.526.926-99,99%'],
|
1289
1292
|
['2 Bulan', 'Kurs', '', '', '16.308', '-16.307-99,99%'],
|
1290
|
-
['oz', '2.849,65', '+177,
|
1291
|
-
['gr', '91,62', '+5,
|
1293
|
+
['oz', '2.849,65', '+177,48+6,23%', '46.472.092', '-46.469.065-99,99%'],
|
1294
|
+
['gr', '91,62', '+5,71+6,23', '1.494.112', '-1.494.015-99,99%'],
|
1292
1295
|
['6 Bulan', 'Kurs', '', '', '15.671', '-15.670-99,99%'],
|
1293
|
-
['oz', '2.609,31', '+417,
|
1296
|
+
['oz', '2.609,31', '+417,82+16,01%', '40.890.497', '-40.887.470-99,99%'],
|
1294
1297
|
['gr', '83,89', '+13,43+16,01%', '1.314.660', '-1.314.563-99,99%'],
|
1295
1298
|
['1 Tahun', 'Kurs', '', '', '15.907', '-15.906-99,99%'],
|
1296
|
-
['oz', '2.329,93', '+697,
|
1297
|
-
['gr', '74,91', '+22,
|
1299
|
+
['oz', '2.329,93', '+697,20+29,92%', '37.062.197', '-37.059.169-99,99%'],
|
1300
|
+
['gr', '74,91', '+22,42+29,92%', '1.191.577', '-1.191.480-99,99%'],
|
1298
1301
|
['2 Tahun', 'Kurs', '', '', '15.731', '-15.730-99,99%'],
|
1299
|
-
['oz', '1.823,86', '+1.203,
|
1300
|
-
['gr', '58,64', '+38,
|
1302
|
+
['oz', '1.823,86', '+1.203,27+65,97%', '28.691.142', '-28.688.115-99,99%'],
|
1303
|
+
['gr', '58,64', '+38,69+65,97%', '922.442', '-922.344-99,99%'],
|
1301
1304
|
['3 Tahun', 'Kurs', '', '', '14.359', '-14.358-99,99%'],
|
1302
|
-
['oz', '1.941,36', '+1.085,
|
1305
|
+
['oz', '1.941,36', '+1.085,77+55,93%', '27.876.008', '-27.872.981-99,99%'],
|
1303
1306
|
['gr', '62,42', '+34,91+55,93%', '896.234', '-896.137-99,99%'],
|
1304
1307
|
['5 Tahun', 'Kurs', '', '', '16.245', '-16.244-99,99%'],
|
1305
|
-
['oz', '1.650,14', '+1.376,
|
1306
|
-
['gr', '53,05', '+44,27+83,
|
1308
|
+
['oz', '1.650,14', '+1.376,99+83,45%', '26.806.541', '-26.803.514-99,99%'],
|
1309
|
+
['gr', '53,05', '+44,27+83,45%', '861.850', '-861.753-99,99%']])
|
1307
1310
|
(['Home', 'Emas 1 Gram', 'History', 'Trend', 'Perak 1 Gram', 'Pluang'],
|
1308
1311
|
[[''],
|
1309
1312
|
['Emas 24 KaratHarga Emas 1 Gram', ''],
|
1310
|
-
['USD', '97,
|
1313
|
+
['USD', '97,30↓', '-0,36-0,37%'],
|
1311
1314
|
['KURS', '16.355,25↓', '%'],
|
1312
|
-
['IDR', '1.591.
|
1313
|
-
['Senin, 07 April 2025
|
1315
|
+
['IDR', '1.591.408,79↓', '-5.889,34-0,37%'],
|
1316
|
+
['Senin, 07 April 2025 20:20']],
|
1314
1317
|
[[''],
|
1315
1318
|
['Emas 1 Gram (IDR)Emas 1 Gram (USD)Kurs USD-IDR',
|
1316
1319
|
'Hari Ini',
|
@@ -1321,25 +1324,25 @@ Output:
|
|
1321
1324
|
'']],
|
1322
1325
|
[['Pergerakkan Harga Emas 1 Gram'],
|
1323
1326
|
['', 'Penutupan Kemarin', 'Pergerakkan Hari Ini', 'Rata-rata'],
|
1324
|
-
['USD', '97,66', '97,
|
1327
|
+
['USD', '97,66', '97,30 - 97,66', '97,48'],
|
1325
1328
|
['KURS', '16.355,25', '16.355,25 - 16.355,25', '16.355,25'],
|
1326
|
-
['IDR', '1.597.298,13', '1.591.
|
1329
|
+
['IDR', '1.597.298,13', '1.591.408,79 - 1.597.298,13', '1.594.353,46'],
|
1327
1330
|
[''],
|
1328
1331
|
['', 'Awal Tahun', 'Pergerakkan YTD', '+/- YTD'],
|
1329
|
-
['USD', '84,42', '84,38 - 100,65', '+12,
|
1332
|
+
['USD', '84,42', '84,38 - 100,65', '+12,88 (15,26%)'],
|
1330
1333
|
['KURS', '16.220,76', '16.156,70 - 16.387,00', '+134,49 (0,83%)'],
|
1331
1334
|
['IDR',
|
1332
1335
|
'1.369.306,75',
|
1333
1336
|
'1.368.695,74 - 1.646.100,73',
|
1334
|
-
'+222.
|
1337
|
+
'+222.102,04 (16,22%)'],
|
1335
1338
|
[''],
|
1336
1339
|
['', 'Tahun Lalu / 52 Minggu', 'Pergerakkan 52 Minggu', '+/- 52 Minggu'],
|
1337
|
-
['USD', '74,91', '73,75 - 100,65', '+22,
|
1340
|
+
['USD', '74,91', '73,75 - 100,65', '+22,39 (29,89%)'],
|
1338
1341
|
['KURS', '15.887,75', '15.100,00 - 16.509,65', '+467,50 (2,94%)'],
|
1339
1342
|
['IDR',
|
1340
1343
|
'1.190.135,29',
|
1341
1344
|
'1.181.943,88 - 1.646.100,73',
|
1342
|
-
'+401.
|
1345
|
+
'+401.273,50 (33,72%)']])
|
1343
1346
|
```
|
1344
1347
|
|
1345
1348
|
## iloads
|
@@ -1469,7 +1472,7 @@ Output:
|
|
1469
1472
|
```py
|
1470
1473
|
8
|
1471
1474
|
['mana', 'aja']
|
1472
|
-
[<Element a at
|
1475
|
+
[<Element a at 0x77f1569130>, <Element a at 0x77f15a3d90>, <Element a at 0x77f15a3de0>, <Element a at 0x77f15a3e30>, <Element a at 0x77f15a3e80>, <Element a at 0x77f15a3ed0>, <Element a at 0x77f15a3f20>, <Element a at 0x77f15a3f70>, <Element a at 0x77f15a3fc0>, <Element a at 0x77f15c0050>, <Element a at 0x77f15c00a0>, <Element a at 0x77f15c00f0>, <Element a at 0x77f15c0140>, <Element a at 0x77f15c0190>, <Element a at 0x77f15c01e0>, <Element a at 0x77f15c0230>, <Element a at 0x77f15c0280>, <Element a at 0x77f15c02d0>]
|
1473
1476
|
False
|
1474
1477
|
```
|
1475
1478
|
|
@@ -1539,7 +1542,7 @@ print(list(iscandir("./", recursive=False, scan_file=False)))
|
|
1539
1542
|
|
1540
1543
|
Output:
|
1541
1544
|
```py
|
1542
|
-
<generator object iscandir at
|
1545
|
+
<generator object iscandir at 0x77f1817100>
|
1543
1546
|
[PosixPath('.git'), PosixPath('.vscode'), PosixPath('pypipr'), PosixPath('__pycache__'), PosixPath('dist')]
|
1544
1547
|
```
|
1545
1548
|
|
@@ -1572,96 +1575,96 @@ iprint(ivars(__import__('pypipr')))
|
|
1572
1575
|
|
1573
1576
|
Output:
|
1574
1577
|
```py
|
1575
|
-
{'function': {'avg': <function avg at
|
1576
|
-
'get_filemtime': <function get_filemtime at
|
1577
|
-
'print_colorize': <function print_colorize at
|
1578
|
-
'print_log': <function print_log at
|
1579
|
-
'console_run': <function console_run at
|
1580
|
-
'auto_reload': <function auto_reload at
|
1581
|
-
'basename': <function basename at
|
1582
|
-
'chr_to_int': <function chr_to_int at
|
1583
|
-
'int_to_chr': <function int_to_chr at
|
1584
|
-
'irange': <function irange at
|
1585
|
-
'batchmaker': <function batchmaker at
|
1586
|
-
'calculate': <function calculate at
|
1587
|
-
'batch_calculate': <function batch_calculate at
|
1588
|
-
'bin_to_int': <function bin_to_int at
|
1589
|
-
'is_empty': <function is_empty at
|
1590
|
-
'exit_if_empty': <function exit_if_empty at
|
1591
|
-
'input_char': <function input_char at
|
1592
|
-
'choices': <function choices at
|
1593
|
-
'chunk_array': <function chunk_array at
|
1594
|
-
'create_folder': <function create_folder at
|
1595
|
-
'datetime_from_string': <function datetime_from_string at
|
1596
|
-
'datetime_now': <function datetime_now at
|
1597
|
-
'dict_first': <function dict_first at
|
1598
|
-
'dirname': <function dirname at
|
1599
|
-
'django_clear_migrations': <function django_clear_migrations at
|
1600
|
-
'django_runserver': <function django_runserver at
|
1601
|
-
'is_iterable': <function is_iterable at
|
1602
|
-
'to_str': <function to_str at
|
1603
|
-
'filter_empty': <function filter_empty at
|
1604
|
-
'get_by_index': <function get_by_index at
|
1605
|
-
'get_class_method': <function get_class_method at
|
1606
|
-
'get_filesize': <function get_filesize at
|
1607
|
-
'github_init': <function github_init at
|
1608
|
-
'github_pull': <function github_pull at
|
1609
|
-
'github_push': <function github_push at
|
1610
|
-
'github_user': <function github_user at
|
1611
|
-
'hex_to_int': <function hex_to_int at
|
1612
|
-
'iargv': <function iargv at
|
1613
|
-
'idir': <function idir at
|
1614
|
-
'idumps_html': <function idumps_html at
|
1615
|
-
'idumps': <function idumps at
|
1616
|
-
'int_to_int': <function int_to_int at
|
1617
|
-
'ienumerate': <function ienumerate at
|
1618
|
-
'ienv': <function ienv at
|
1619
|
-
'iexec': <function iexec at
|
1620
|
-
'iinput': <function iinput at
|
1621
|
-
'ijoin': <function ijoin at
|
1622
|
-
'iloads_html': <function iloads_html at
|
1623
|
-
'iloads': <function iloads at
|
1624
|
-
'int_to_bin': <function int_to_bin at
|
1625
|
-
'int_to_hex': <function int_to_hex at
|
1626
|
-
'int_to_oct': <function int_to_oct at
|
1627
|
-
'is_valid_url': <function is_valid_url at
|
1628
|
-
'iopen': <function iopen at
|
1629
|
-
'iprint': <function iprint at
|
1630
|
-
'is_raw_string': <function is_raw_string at
|
1631
|
-
'ireplace': <function ireplace at
|
1632
|
-
'is_html': <function is_html at
|
1633
|
-
'iscandir': <function iscandir at
|
1634
|
-
'isplit': <function isplit at
|
1635
|
-
'ivars': <function ivars at
|
1636
|
-
'log': <function log at
|
1637
|
-
'oct_to_int': <function oct_to_int at
|
1638
|
-
'password_generator': <function password_generator at
|
1639
|
-
'pip_freeze_without_version': <function pip_freeze_without_version at
|
1640
|
-
'pip_update_pypipr': <function pip_update_pypipr at
|
1641
|
-
'poetry_publish': <function poetry_publish at
|
1642
|
-
'poetry_update_version': <function poetry_update_version at
|
1643
|
-
'print_dir': <function print_dir at
|
1644
|
-
'print_to_last_line': <function print_to_last_line at
|
1645
|
-
'random_bool': <function random_bool at
|
1646
|
-
'repath': <function repath at
|
1647
|
-
'restart': <function restart at
|
1648
|
-
'set_timeout': <function set_timeout at
|
1649
|
-
'sets_ordered': <function sets_ordered at
|
1650
|
-
'sqlite_backup': <function sqlite_backup at
|
1651
|
-
'sqlite_delete_table': <function sqlite_delete_table at
|
1652
|
-
'sqlite_get_all_tables': <function sqlite_get_all_tables at
|
1653
|
-
'sqlite_get_data_table': <function sqlite_get_data_table at
|
1654
|
-
'str_cmp': <function str_cmp at
|
1655
|
-
'text_colorize': <function text_colorize at
|
1656
|
-
'tiles': <function tiles at
|
1657
|
-
'traceback_filename': <function traceback_filename at
|
1658
|
-
'traceback_framename': <function traceback_framename at
|
1578
|
+
{'function': {'avg': <function avg at 0x77fd368680>,
|
1579
|
+
'get_filemtime': <function get_filemtime at 0x77f77013a0>,
|
1580
|
+
'print_colorize': <function print_colorize at 0x77f7701580>,
|
1581
|
+
'print_log': <function print_log at 0x77fa0734c0>,
|
1582
|
+
'console_run': <function console_run at 0x77f7701440>,
|
1583
|
+
'auto_reload': <function auto_reload at 0x77f7700d60>,
|
1584
|
+
'basename': <function basename at 0x77f7701620>,
|
1585
|
+
'chr_to_int': <function chr_to_int at 0x77f7701bc0>,
|
1586
|
+
'int_to_chr': <function int_to_chr at 0x77f7701c60>,
|
1587
|
+
'irange': <function irange at 0x77f7702160>,
|
1588
|
+
'batchmaker': <function batchmaker at 0x77f7701940>,
|
1589
|
+
'calculate': <function calculate at 0x77f77014e0>,
|
1590
|
+
'batch_calculate': <function batch_calculate at 0x77f77016c0>,
|
1591
|
+
'bin_to_int': <function bin_to_int at 0x77f77018a0>,
|
1592
|
+
'is_empty': <function is_empty at 0x77f7702a20>,
|
1593
|
+
'exit_if_empty': <function exit_if_empty at 0x77f77028e0>,
|
1594
|
+
'input_char': <function input_char at 0x77f7702980>,
|
1595
|
+
'choices': <function choices at 0x77f7702ca0>,
|
1596
|
+
'chunk_array': <function chunk_array at 0x77f7702d40>,
|
1597
|
+
'create_folder': <function create_folder at 0x77f7702de0>,
|
1598
|
+
'datetime_from_string': <function datetime_from_string at 0x77f7702e80>,
|
1599
|
+
'datetime_now': <function datetime_now at 0x77f7702f20>,
|
1600
|
+
'dict_first': <function dict_first at 0x77f77211c0>,
|
1601
|
+
'dirname': <function dirname at 0x77f7721260>,
|
1602
|
+
'django_clear_migrations': <function django_clear_migrations at 0x77f7721300>,
|
1603
|
+
'django_runserver': <function django_runserver at 0x77f7721620>,
|
1604
|
+
'is_iterable': <function is_iterable at 0x77f77219e0>,
|
1605
|
+
'to_str': <function to_str at 0x77f7721b20>,
|
1606
|
+
'filter_empty': <function filter_empty at 0x77f77218a0>,
|
1607
|
+
'get_by_index': <function get_by_index at 0x77f7721a80>,
|
1608
|
+
'get_class_method': <function get_class_method at 0x77f7721bc0>,
|
1609
|
+
'get_filesize': <function get_filesize at 0x77f7721d00>,
|
1610
|
+
'github_init': <function github_init at 0x77f7721da0>,
|
1611
|
+
'github_pull': <function github_pull at 0x77f7721e40>,
|
1612
|
+
'github_push': <function github_push at 0x77f7721f80>,
|
1613
|
+
'github_user': <function github_user at 0x77f7722020>,
|
1614
|
+
'hex_to_int': <function hex_to_int at 0x77f77220c0>,
|
1615
|
+
'iargv': <function iargv at 0x77f7722160>,
|
1616
|
+
'idir': <function idir at 0x77f7722200>,
|
1617
|
+
'idumps_html': <function idumps_html at 0x77f77b20c0>,
|
1618
|
+
'idumps': <function idumps at 0x77f77222a0>,
|
1619
|
+
'int_to_int': <function int_to_int at 0x77f77b25c0>,
|
1620
|
+
'ienumerate': <function ienumerate at 0x77f7798900>,
|
1621
|
+
'ienv': <function ienv at 0x77f77b2480>,
|
1622
|
+
'iexec': <function iexec at 0x77f77b2660>,
|
1623
|
+
'iinput': <function iinput at 0x77f77b2700>,
|
1624
|
+
'ijoin': <function ijoin at 0x77f77b27a0>,
|
1625
|
+
'iloads_html': <function iloads_html at 0x77f77b2ac0>,
|
1626
|
+
'iloads': <function iloads at 0x77fd761260>,
|
1627
|
+
'int_to_bin': <function int_to_bin at 0x77f77b2840>,
|
1628
|
+
'int_to_hex': <function int_to_hex at 0x77f77b28e0>,
|
1629
|
+
'int_to_oct': <function int_to_oct at 0x77f77b2b60>,
|
1630
|
+
'is_valid_url': <function is_valid_url at 0x77f77b2de0>,
|
1631
|
+
'iopen': <function iopen at 0x77f754e980>,
|
1632
|
+
'iprint': <function iprint at 0x77f75a1940>,
|
1633
|
+
'is_raw_string': <function is_raw_string at 0x77f19c4220>,
|
1634
|
+
'ireplace': <function ireplace at 0x77f760e700>,
|
1635
|
+
'is_html': <function is_html at 0x77f19c4180>,
|
1636
|
+
'iscandir': <function iscandir at 0x77f19c42c0>,
|
1637
|
+
'isplit': <function isplit at 0x77f19c4360>,
|
1638
|
+
'ivars': <function ivars at 0x77f19c4400>,
|
1639
|
+
'log': <function log at 0x77f19c44a0>,
|
1640
|
+
'oct_to_int': <function oct_to_int at 0x77f19c4540>,
|
1641
|
+
'password_generator': <function password_generator at 0x77f19c45e0>,
|
1642
|
+
'pip_freeze_without_version': <function pip_freeze_without_version at 0x77f19c4680>,
|
1643
|
+
'pip_update_pypipr': <function pip_update_pypipr at 0x77f19c4720>,
|
1644
|
+
'poetry_publish': <function poetry_publish at 0x77f19c47c0>,
|
1645
|
+
'poetry_update_version': <function poetry_update_version at 0x77f19c4900>,
|
1646
|
+
'print_dir': <function print_dir at 0x77f19c4a40>,
|
1647
|
+
'print_to_last_line': <function print_to_last_line at 0x77f19c4ae0>,
|
1648
|
+
'random_bool': <function random_bool at 0x77f19c4b80>,
|
1649
|
+
'repath': <function repath at 0x77f19c4cc0>,
|
1650
|
+
'restart': <function restart at 0x77f19c4d60>,
|
1651
|
+
'set_timeout': <function set_timeout at 0x77f19c4e00>,
|
1652
|
+
'sets_ordered': <function sets_ordered at 0x77f19c4ea0>,
|
1653
|
+
'sqlite_backup': <function sqlite_backup at 0x77f19c4f40>,
|
1654
|
+
'sqlite_delete_table': <function sqlite_delete_table at 0x77f19c4fe0>,
|
1655
|
+
'sqlite_get_all_tables': <function sqlite_get_all_tables at 0x77f19c4c20>,
|
1656
|
+
'sqlite_get_data_table': <function sqlite_get_data_table at 0x77f19c5120>,
|
1657
|
+
'str_cmp': <function str_cmp at 0x77f19c59e0>,
|
1658
|
+
'text_colorize': <function text_colorize at 0x77f19c5a80>,
|
1659
|
+
'tiles': <function tiles at 0x77f19c5b20>,
|
1660
|
+
'traceback_filename': <function traceback_filename at 0x77f19c5bc0>,
|
1661
|
+
'traceback_framename': <function traceback_framename at 0x77f19c5c60>},
|
1659
1662
|
'class': {'ComparePerformance': <class 'pypipr.ComparePerformance.ComparePerformance'>,
|
1660
1663
|
'PintUregQuantity': <class 'pint.Quantity'>,
|
1661
1664
|
'RunParallel': <class 'pypipr.RunParallel.RunParallel'>,
|
1662
1665
|
'TextCase': <class 'pypipr.TextCase.TextCase'>},
|
1663
1666
|
'variable': {'LINUX': True,
|
1664
|
-
'PintUreg': <pint.registry.UnitRegistry object at
|
1667
|
+
'PintUreg': <pint.registry.UnitRegistry object at 0x77fc787620>,
|
1665
1668
|
'WINDOWS': False},
|
1666
1669
|
'module': {'asyncio': <module 'asyncio' from '/data/data/com.termux/files/usr/lib/python3.12/asyncio/__init__.py'>,
|
1667
1670
|
'colorama': <module 'colorama' from '/data/data/com.termux/files/home/.cache/pypoetry/virtualenvs/pypipr-ZoJyDxLL-py3.12/lib/python3.12/site-packages/colorama/__init__.py'>,
|
@@ -1752,7 +1755,7 @@ print(password_generator())
|
|
1752
1755
|
|
1753
1756
|
Output:
|
1754
1757
|
```py
|
1755
|
-
|
1758
|
+
3@!D`YLP
|
1756
1759
|
```
|
1757
1760
|
|
1758
1761
|
## pip_freeze_without_version
|
@@ -1814,7 +1817,7 @@ Output:
|
|
1814
1817
|
__enter__ : https:/www.google.com
|
1815
1818
|
__fspath__ : https:/www.google.com
|
1816
1819
|
__getstate__ : (None, {'_raw_paths': ['https://www.google.com/'], '_drv': '', '_root': '', '_tail_cached': ['https:', 'www.google.com'], '_str': 'https:/www.google.com'})
|
1817
|
-
__hash__ :
|
1820
|
+
__hash__ : -1109388569518886985
|
1818
1821
|
__init__ : None
|
1819
1822
|
__init_subclass__ : None
|
1820
1823
|
__module__ : pathlib
|
@@ -1826,7 +1829,7 @@ Output:
|
|
1826
1829
|
__subclasshook__ : NotImplemented
|
1827
1830
|
_drv :
|
1828
1831
|
_flavour : <module 'posixpath' (frozen)>
|
1829
|
-
_hash :
|
1832
|
+
_hash : -1109388569518886985
|
1830
1833
|
_lines : https:
|
1831
1834
|
www.google.com
|
1832
1835
|
_lines_cached : https:
|
@@ -1860,7 +1863,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1860
1863
|
is_reserved : False
|
1861
1864
|
is_socket : False
|
1862
1865
|
is_symlink : False
|
1863
|
-
iterdir : <generator object Path.iterdir at
|
1866
|
+
iterdir : <generator object Path.iterdir at 0x77f181fe00>
|
1864
1867
|
joinpath : .
|
1865
1868
|
name :
|
1866
1869
|
parent : https:/www.google.com
|
@@ -1871,7 +1874,7 @@ _parts_normcase_cached : ['https:', 'www.google.com']
|
|
1871
1874
|
stem :
|
1872
1875
|
suffix :
|
1873
1876
|
suffixes : []
|
1874
|
-
walk : <generator object Path.walk at
|
1877
|
+
walk : <generator object Path.walk at 0x77f1a8bd80>
|
1875
1878
|
with_segments : .
|
1876
1879
|
```
|
1877
1880
|
|
@@ -1951,7 +1954,7 @@ x.cancel()
|
|
1951
1954
|
|
1952
1955
|
Output:
|
1953
1956
|
```py
|
1954
|
-
<Timer(Thread-2, started
|
1957
|
+
<Timer(Thread-2, started 515123428592)>
|
1955
1958
|
menghentikan timeout 7
|
1956
1959
|
```
|
1957
1960
|
|
@@ -1969,7 +1972,7 @@ print(list(sets_ordered(array)))
|
|
1969
1972
|
|
1970
1973
|
Output:
|
1971
1974
|
```py
|
1972
|
-
<generator object sets_ordered at
|
1975
|
+
<generator object sets_ordered at 0x77f1582c20>
|
1973
1976
|
[2, 3, 12, 42, 1, 43, 41, 4, 24, 32]
|
1974
1977
|
```
|
1975
1978
|
|
@@ -2091,15 +2094,15 @@ print(ExampleComparePerformance().compare_performance())
|
|
2091
2094
|
|
2092
2095
|
Output:
|
2093
2096
|
```py
|
2094
|
-
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at
|
2097
|
+
{'a': <generator object ExampleComparePerformance.a.<locals>.<genexpr> at 0x77f186cac0>,
|
2095
2098
|
'b': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
|
2096
2099
|
'c': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
2097
2100
|
'd': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
|
2098
|
-
{'a':
|
2099
|
-
{'a':
|
2100
|
-
{'a':
|
2101
|
-
{'a':
|
2102
|
-
{'a':
|
2101
|
+
{'a': 100, 'b': 184, 'c': 105, 'd': 285}
|
2102
|
+
{'a': 100, 'b': 163, 'c': 104, 'd': 225}
|
2103
|
+
{'a': 107, 'b': 164, 'c': 100, 'd': 205}
|
2104
|
+
{'a': 100, 'b': 161, 'c': 100, 'd': 208}
|
2105
|
+
{'a': 100, 'b': 165, 'c': 109, 'd': 211}
|
2103
2106
|
```
|
2104
2107
|
|
2105
2108
|
## PintUregQuantity
|
@@ -43,7 +43,7 @@ pypipr/idumps_html.py,sha256=IdDLF3YB7fKvoCjeQC4pLhrVdeWFpVupnSDeI_TsqEY,1428
|
|
43
43
|
pypipr/ienumerate.py,sha256=7JBtPt5LVa7lTzbAx0WMoML6pgkx50Qpw9PLgUpp9sc,411
|
44
44
|
pypipr/ienv.py,sha256=DYFz_liUc4yYGKBqgVSLY0GBCsarfmRqVGsMjhTdRbc,657
|
45
45
|
pypipr/iexec.py,sha256=nK_WMRK2LnyZh9i7NpYii_bfDZUKfAsJ5PVf5ZrHuRo,465
|
46
|
-
pypipr/iinput.py,sha256=
|
46
|
+
pypipr/iinput.py,sha256=FF2mplVAUIkO5Hm2tO4EXgTCUe1hoGO-GedVsk5YOr4,1244
|
47
47
|
pypipr/ijoin.py,sha256=2qi9Dx3t1ksZShC6a15FAJ-A8DnscohZxZFXwYM_x0g,2036
|
48
48
|
pypipr/iloads.py,sha256=eyvSgqDxOXzU5dcPDT8cbtGtUIfjogxOqeQfwIhc92Q,638
|
49
49
|
pypipr/iloads_html.py,sha256=HwpSvnV5PgjtPcXeYUeC_NovQ3jeKvGKkL3s4GfdVr8,4152
|
@@ -91,7 +91,7 @@ pypipr/tiles.py,sha256=uSEYqvjBQHIz7pZKtdta1XwFhGrMFieMHOH2DKrlcXc,328
|
|
91
91
|
pypipr/to_str.py,sha256=vSuspf-ZQldf4enkssa9XH0WMjkmWug51G9ia0K5occ,597
|
92
92
|
pypipr/traceback_filename.py,sha256=4o85J0N8clI0cM6NTGcKZ4zxR9yS7W2NS_bz3J2_PnY,288
|
93
93
|
pypipr/traceback_framename.py,sha256=_mullrAZzMhBFEFVCgdsmkYQmYUkd58o-J-HuMntKyc,291
|
94
|
-
pypipr-1.0.
|
95
|
-
pypipr-1.0.
|
96
|
-
pypipr-1.0.
|
97
|
-
pypipr-1.0.
|
94
|
+
pypipr-1.0.164.dist-info/METADATA,sha256=l-keJZkgXPTd5Kd_w6ZBjLQpddiYcj4N3EbKCGN3AaM,57178
|
95
|
+
pypipr-1.0.164.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
96
|
+
pypipr-1.0.164.dist-info/entry_points.txt,sha256=XEBtOa61BCVW4cVvoqYQnyTcenJ1tzFFB09YnuqlKBY,51
|
97
|
+
pypipr-1.0.164.dist-info/RECORD,,
|
File without changes
|
File without changes
|