upplib 3.3.6__tar.gz → 3.3.7__tar.gz

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.
Files changed (31) hide show
  1. {upplib-3.3.6 → upplib-3.3.7}/PKG-INFO +1 -1
  2. {upplib-3.3.6 → upplib-3.3.7}/upplib/__init__.py +1 -1
  3. upplib-3.3.6/upplib/file_text.py → upplib-3.3.7/upplib/file_to_text.py +8 -8
  4. upplib-3.3.7/upplib/text_to_file.py +3 -0
  5. {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/PKG-INFO +1 -1
  6. {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/SOURCES.txt +2 -1
  7. {upplib-3.3.6 → upplib-3.3.7}/LICENSE +0 -0
  8. {upplib-3.3.6 → upplib-3.3.7}/README.md +0 -0
  9. {upplib-3.3.6 → upplib-3.3.7}/pyproject.toml +0 -0
  10. {upplib-3.3.6 → upplib-3.3.7}/setup.cfg +0 -0
  11. {upplib-3.3.6 → upplib-3.3.7}/setup.py +0 -0
  12. {upplib-3.3.6 → upplib-3.3.7}/upplib/chart.py +0 -0
  13. {upplib-3.3.6 → upplib-3.3.7}/upplib/chart_html.py +0 -0
  14. {upplib-3.3.6 → upplib-3.3.7}/upplib/clean_up_msg.py +0 -0
  15. {upplib-3.3.6 → upplib-3.3.7}/upplib/common_package.py +0 -0
  16. {upplib-3.3.6 → upplib-3.3.7}/upplib/config_data.py +0 -0
  17. {upplib-3.3.6 → upplib-3.3.7}/upplib/db.py +0 -0
  18. {upplib-3.3.6 → upplib-3.3.7}/upplib/file.py +0 -0
  19. {upplib-3.3.6 → upplib-3.3.7}/upplib/format_data.py +0 -0
  20. {upplib-3.3.6 → upplib-3.3.7}/upplib/http_util.py +0 -0
  21. {upplib-3.3.6 → upplib-3.3.7}/upplib/index.py +0 -0
  22. {upplib-3.3.6 → upplib-3.3.7}/upplib/mail.py +0 -0
  23. {upplib-3.3.6 → upplib-3.3.7}/upplib/mail_html.py +0 -0
  24. {upplib-3.3.6 → upplib-3.3.7}/upplib/markdown.py +0 -0
  25. {upplib-3.3.6 → upplib-3.3.7}/upplib/multi_thread.py +0 -0
  26. {upplib-3.3.6 → upplib-3.3.7}/upplib/query_log.py +0 -0
  27. {upplib-3.3.6 → upplib-3.3.7}/upplib/redis_tool.py +0 -0
  28. {upplib-3.3.6 → upplib-3.3.7}/upplib/util.py +0 -0
  29. {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/dependency_links.txt +0 -0
  30. {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/requires.txt +0 -0
  31. {upplib-3.3.6 → upplib-3.3.7}/upplib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upplib
3
- Version: 3.3.6
3
+ Version: 3.3.7
4
4
  Summary: util
5
5
  Author: Luck
6
6
  Author-email: wantwaterfish@gmail.com
@@ -8,7 +8,7 @@ from upplib.util import *
8
8
 
9
9
  # 有关文件操作类的包
10
10
  from upplib.file import *
11
- from upplib.file_text import *
11
+ from upplib.file_to_text import *
12
12
 
13
13
  from upplib.clean_up_msg import *
14
14
 
@@ -4,25 +4,25 @@ from upplib.file import get_file
4
4
 
5
5
 
6
6
  def get_latest_file(file_path: str = None,
7
- path_prefix: str = None,
8
- prefix: str = None,
7
+ path_startswith: str = None,
8
+ startswith: str = None,
9
9
  path_contain: str = None,
10
10
  contain: str = None,
11
- path_suffix: str = None,
12
- suffix: str = None,
11
+ path_endswith: str = None,
12
+ endswith: str = None,
13
13
  full_path: bool = None) -> None | tuple[str, str] | str:
14
14
  """
15
15
  按照文件名字排序,获得最新的一个文件
16
16
  full_path: 是否返回完整的路径
17
17
  """
18
18
  html_list = get_file(file_path=file_path,
19
- path_prefix=path_prefix,
20
- prefix=prefix,
19
+ path_startswith=path_startswith,
20
+ startswith=startswith,
21
21
  path_contain=path_contain,
22
22
  contain=contain,
23
23
  sort_asc=False,
24
- path_suffix=path_suffix,
25
- suffix=suffix)
24
+ path_endswith=path_endswith,
25
+ endswith=endswith)
26
26
  r1 = html_list[-1] if len(html_list) > 0 else None
27
27
  if r1 is None:
28
28
  return None
@@ -0,0 +1,3 @@
1
+ from upplib import *
2
+ from upplib.common_package import *
3
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upplib
3
- Version: 3.3.6
3
+ Version: 3.3.7
4
4
  Summary: util
5
5
  Author: Luck
6
6
  Author-email: wantwaterfish@gmail.com
@@ -10,7 +10,7 @@ upplib/common_package.py
10
10
  upplib/config_data.py
11
11
  upplib/db.py
12
12
  upplib/file.py
13
- upplib/file_text.py
13
+ upplib/file_to_text.py
14
14
  upplib/format_data.py
15
15
  upplib/http_util.py
16
16
  upplib/index.py
@@ -20,6 +20,7 @@ upplib/markdown.py
20
20
  upplib/multi_thread.py
21
21
  upplib/query_log.py
22
22
  upplib/redis_tool.py
23
+ upplib/text_to_file.py
23
24
  upplib/util.py
24
25
  upplib.egg-info/PKG-INFO
25
26
  upplib.egg-info/SOURCES.txt
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