ezKit 1.11.13__tar.gz → 1.11.14__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {ezkit-1.11.13/ezKit.egg-info → ezkit-1.11.14}/PKG-INFO +7 -2
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/utils.py +13 -11
- {ezkit-1.11.13 → ezkit-1.11.14/ezKit.egg-info}/PKG-INFO +7 -2
- {ezkit-1.11.13 → ezkit-1.11.14}/setup.py +1 -1
- {ezkit-1.11.13 → ezkit-1.11.14}/LICENSE +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/MANIFEST.in +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/README.md +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/__init__.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/_file.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/bottle.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/bottle_extensions.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/cipher.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/database.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/http.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/markdown_to_html.template +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/mongo.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/qywx.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/redis.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/sendemail.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/token.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit/xftp.py +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit.egg-info/SOURCES.txt +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit.egg-info/dependency_links.txt +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit.egg-info/requires.txt +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/ezKit.egg-info/top_level.txt +0 -0
- {ezkit-1.11.13 → ezkit-1.11.14}/setup.cfg +0 -0
@@ -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
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|