ezKit 1.11.12__tar.gz → 1.11.14__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. {ezkit-1.11.12/ezKit.egg-info → ezkit-1.11.14}/PKG-INFO +7 -2
  2. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/utils.py +13 -11
  3. {ezkit-1.11.12 → ezkit-1.11.14/ezKit.egg-info}/PKG-INFO +7 -2
  4. {ezkit-1.11.12 → ezkit-1.11.14}/setup.py +1 -1
  5. {ezkit-1.11.12 → ezkit-1.11.14}/LICENSE +0 -0
  6. {ezkit-1.11.12 → ezkit-1.11.14}/MANIFEST.in +0 -0
  7. {ezkit-1.11.12 → ezkit-1.11.14}/README.md +0 -0
  8. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/__init__.py +0 -0
  9. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/_file.py +0 -0
  10. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/bottle.py +0 -0
  11. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/bottle_extensions.py +0 -0
  12. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/cipher.py +0 -0
  13. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/database.py +0 -0
  14. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/http.py +0 -0
  15. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/markdown_to_html.template +2 -2
  16. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/mongo.py +0 -0
  17. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/qywx.py +0 -0
  18. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/redis.py +0 -0
  19. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/sendemail.py +0 -0
  20. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/token.py +0 -0
  21. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit/xftp.py +0 -0
  22. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit.egg-info/SOURCES.txt +0 -0
  23. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit.egg-info/dependency_links.txt +0 -0
  24. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit.egg-info/requires.txt +0 -0
  25. {ezkit-1.11.12 → ezkit-1.11.14}/ezKit.egg-info/top_level.txt +0 -0
  26. {ezkit-1.11.12 → ezkit-1.11.14}/setup.cfg +0 -0
@@ -1,9 +1,14 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: ezKit
3
- Version: 1.11.12
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 = 'http'
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
- url = f'{scheme}://{url}'
1420
- if isTrue(url, str):
1421
- return urlparse(url)
1422
- return none_result
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 none_result
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
1
+ Metadata-Version: 2.2
2
2
  Name: ezKit
3
- Version: 1.11.12
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
@@ -3,7 +3,7 @@ from setuptools import find_packages, setup
3
3
 
4
4
  setup(
5
5
  name='ezKit',
6
- version='1.11.12',
6
+ version='1.11.14',
7
7
  author='septvean',
8
8
  author_email='septvean@gmail.com',
9
9
  description='Easy Kit',
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
@@ -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">
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes