ezKit 1.11.12__py3-none-any.whl → 1.11.14__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- ezKit/markdown_to_html.template +2 -2
- ezKit/utils.py +13 -11
- {ezKit-1.11.12.dist-info → ezKit-1.11.14.dist-info}/METADATA +7 -2
- {ezKit-1.11.12.dist-info → ezKit-1.11.14.dist-info}/RECORD +7 -7
- {ezKit-1.11.12.dist-info → ezKit-1.11.14.dist-info}/WHEEL +1 -1
- {ezKit-1.11.12.dist-info → ezKit-1.11.14.dist-info}/LICENSE +0 -0
- {ezKit-1.11.12.dist-info → ezKit-1.11.14.dist-info}/top_level.txt +0 -0
ezKit/markdown_to_html.template
CHANGED
@@ -454,18 +454,17 @@
|
|
454
454
|
box-shadow: inset 0 -1px 0 #bbb;
|
455
455
|
}
|
456
456
|
|
457
|
+
/**
|
457
458
|
* {
|
458
459
|
-webkit-print-color-adjust: exact;
|
459
460
|
}
|
460
461
|
|
461
|
-
/**
|
462
462
|
@media screen and (min-width: 914px) {
|
463
463
|
body {
|
464
464
|
width: 854px;
|
465
465
|
margin: 0 auto;
|
466
466
|
}
|
467
467
|
}
|
468
|
-
**/
|
469
468
|
|
470
469
|
@media print {
|
471
470
|
|
@@ -482,6 +481,7 @@
|
|
482
481
|
padding: 2cm;
|
483
482
|
}
|
484
483
|
}
|
484
|
+
**/
|
485
485
|
</style>
|
486
486
|
|
487
487
|
<style type="text/css">
|
ezKit/utils.py
CHANGED
@@ -7,7 +7,6 @@ import re
|
|
7
7
|
import subprocess
|
8
8
|
import time
|
9
9
|
import tomllib
|
10
|
-
from ast import literal_eval
|
11
10
|
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
|
12
11
|
from copy import deepcopy
|
13
12
|
from datetime import date, datetime, timedelta, timezone
|
@@ -1408,21 +1407,24 @@ def git_clone(
|
|
1408
1407
|
|
1409
1408
|
|
1410
1409
|
def url_parse(
|
1411
|
-
url: str
|
1412
|
-
scheme: str =
|
1413
|
-
) -> ParseResult:
|
1410
|
+
url: str
|
1411
|
+
# scheme: str = "http"
|
1412
|
+
) -> ParseResult | None:
|
1414
1413
|
"""URL Parse"""
|
1415
|
-
none_result = ParseResult(scheme='', netloc='', path='', params='', query='', fragment='')
|
1414
|
+
# none_result = ParseResult(scheme='', netloc='', path='', params='', query='', fragment='')
|
1416
1415
|
try:
|
1416
|
+
if not check_arguments([(url, str, "url_parse -> url")]):
|
1417
|
+
return None
|
1417
1418
|
# 如果没有 scheme 的话, 字符串是不解析的. 所以, 如果没有 scheme, 就添加一个 scheme, 默认添加 http
|
1418
|
-
if isTrue(url, str) and (url.find('://') == -1) and isTrue(scheme, str):
|
1419
|
-
|
1420
|
-
if isTrue(url, str):
|
1421
|
-
|
1422
|
-
return
|
1419
|
+
# if isTrue(url, str) and (url.find('://') == -1) and isTrue(scheme, str):
|
1420
|
+
# url = f'{scheme}://{url}'
|
1421
|
+
# if isTrue(url, str):
|
1422
|
+
# return urlparse(url)
|
1423
|
+
# return None
|
1424
|
+
return urlparse(url)
|
1423
1425
|
except Exception as e:
|
1424
1426
|
logger.exception(e)
|
1425
|
-
return
|
1427
|
+
return None
|
1426
1428
|
|
1427
1429
|
# def debug_log(
|
1428
1430
|
# log: None | str = None,
|
@@ -1,9 +1,14 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: ezKit
|
3
|
-
Version: 1.11.
|
3
|
+
Version: 1.11.14
|
4
4
|
Summary: Easy Kit
|
5
5
|
Author: septvean
|
6
6
|
Author-email: septvean@gmail.com
|
7
7
|
Requires-Python: >=3.11
|
8
8
|
License-File: LICENSE
|
9
9
|
Requires-Dist: loguru>=0.7
|
10
|
+
Dynamic: author
|
11
|
+
Dynamic: author-email
|
12
|
+
Dynamic: requires-dist
|
13
|
+
Dynamic: requires-python
|
14
|
+
Dynamic: summary
|
@@ -5,16 +5,16 @@ ezKit/bottle_extensions.py,sha256=CwXKxVKxxtbyfeeOSp2xODUqJBo7ro2C88H9sUOVDJI,11
|
|
5
5
|
ezKit/cipher.py,sha256=0T_StbjiNI4zgrjVgcfU-ffKgu1waBA9UDudAnqFcNM,2896
|
6
6
|
ezKit/database.py,sha256=r5YNoEzeOeVTlEWI99xXtHTmPZ73_DopS8DTzZk8Lts,12432
|
7
7
|
ezKit/http.py,sha256=ysXzqXFi9zmuVKINbYGwmf9Q5xDVW_DZWrSh6HSVq8M,1800
|
8
|
-
ezKit/markdown_to_html.template,sha256=
|
8
|
+
ezKit/markdown_to_html.template,sha256=21G2sSVGJn6aJvHd0NN4zY5YiDteKe4UtW36AzBwSdk,22274
|
9
9
|
ezKit/mongo.py,sha256=l3jRMmoGrTm16OG4daSCn0JLU1nbYAmTtHokwjLXzoA,2390
|
10
10
|
ezKit/qywx.py,sha256=dGChIIf2V81MwufcPn6hwgSenPuxqK994KRH7ECT-CM,10387
|
11
11
|
ezKit/redis.py,sha256=tdiqfizPYQQTIUumkJGUJsJVlv0zVTSTYGQN0QutYs4,1963
|
12
12
|
ezKit/sendemail.py,sha256=47JTDFoLJKi0YtF3RAp9nFfo0ko2jlde3R_C1wr2E2w,7397
|
13
13
|
ezKit/token.py,sha256=HKREyZj_T2S8-aFoFIrBXTaCKExQq4zE66OHXhGHqQg,1750
|
14
|
-
ezKit/utils.py,sha256=
|
14
|
+
ezKit/utils.py,sha256=DKCs4ivoRsp79QfmNFipQwis0OhWECqimYc5xEcnmVE,44061
|
15
15
|
ezKit/xftp.py,sha256=izUH9pLH_AzgR3c0g8xSfhLn7LQ9EDcTst3LFjTM6hU,7878
|
16
|
-
ezKit-1.11.
|
17
|
-
ezKit-1.11.
|
18
|
-
ezKit-1.11.
|
19
|
-
ezKit-1.11.
|
20
|
-
ezKit-1.11.
|
16
|
+
ezKit-1.11.14.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
17
|
+
ezKit-1.11.14.dist-info/METADATA,sha256=iR_YAF1nK4aF_EfNT7RgjVJwcft7bekiF17rgtR6iso,295
|
18
|
+
ezKit-1.11.14.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
19
|
+
ezKit-1.11.14.dist-info/top_level.txt,sha256=aYLB_1WODsqNTsTFWcKP-BN0KCTKcV-HZJ4zlHkCFw8,6
|
20
|
+
ezKit-1.11.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|