upplib 3.2.4__tar.gz → 3.2.6__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 (29) hide show
  1. {upplib-3.2.4 → upplib-3.2.6}/PKG-INFO +1 -1
  2. {upplib-3.2.4 → upplib-3.2.6}/upplib/file_text.py +4 -4
  3. {upplib-3.2.4 → upplib-3.2.6}/upplib/util.py +2 -2
  4. {upplib-3.2.4 → upplib-3.2.6}/upplib.egg-info/PKG-INFO +1 -1
  5. {upplib-3.2.4 → upplib-3.2.6}/LICENSE +0 -0
  6. {upplib-3.2.4 → upplib-3.2.6}/README.md +0 -0
  7. {upplib-3.2.4 → upplib-3.2.6}/pyproject.toml +0 -0
  8. {upplib-3.2.4 → upplib-3.2.6}/setup.cfg +0 -0
  9. {upplib-3.2.4 → upplib-3.2.6}/setup.py +0 -0
  10. {upplib-3.2.4 → upplib-3.2.6}/upplib/__init__.py +0 -0
  11. {upplib-3.2.4 → upplib-3.2.6}/upplib/chart.py +0 -0
  12. {upplib-3.2.4 → upplib-3.2.6}/upplib/chart_html.py +0 -0
  13. {upplib-3.2.4 → upplib-3.2.6}/upplib/clean_up_msg.py +0 -0
  14. {upplib-3.2.4 → upplib-3.2.6}/upplib/common_package.py +0 -0
  15. {upplib-3.2.4 → upplib-3.2.6}/upplib/db.py +0 -0
  16. {upplib-3.2.4 → upplib-3.2.6}/upplib/file.py +0 -0
  17. {upplib-3.2.4 → upplib-3.2.6}/upplib/format_data.py +0 -0
  18. {upplib-3.2.4 → upplib-3.2.6}/upplib/http_util.py +0 -0
  19. {upplib-3.2.4 → upplib-3.2.6}/upplib/index.py +0 -0
  20. {upplib-3.2.4 → upplib-3.2.6}/upplib/mail.py +0 -0
  21. {upplib-3.2.4 → upplib-3.2.6}/upplib/mail_html.py +0 -0
  22. {upplib-3.2.4 → upplib-3.2.6}/upplib/markdown.py +0 -0
  23. {upplib-3.2.4 → upplib-3.2.6}/upplib/multi_thread.py +0 -0
  24. {upplib-3.2.4 → upplib-3.2.6}/upplib/query_log.py +0 -0
  25. {upplib-3.2.4 → upplib-3.2.6}/upplib/redis_tool.py +0 -0
  26. {upplib-3.2.4 → upplib-3.2.6}/upplib.egg-info/SOURCES.txt +0 -0
  27. {upplib-3.2.4 → upplib-3.2.6}/upplib.egg-info/dependency_links.txt +0 -0
  28. {upplib-3.2.4 → upplib-3.2.6}/upplib.egg-info/requires.txt +0 -0
  29. {upplib-3.2.4 → upplib-3.2.6}/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.2.4
3
+ Version: 3.2.6
4
4
  Summary: util
5
5
  Author: Luck
6
6
  Author-email: wantwaterfish@gmail.com
@@ -365,8 +365,8 @@ def to_list(file_name: str = 'a.txt',
365
365
  sep_line_prefix: str = None,
366
366
  sep_line_suffix: str = None,
367
367
  sep_all: str = None,
368
- ignore_start_with: list[str] | set[str] | str = None,
369
- ignore_end_with: list[str] | set[str] | str | None = None,
368
+ line_ignore_start_with: list[str] | set[str] | str = None,
369
+ line_ignore_end_with: list[str] | set[str] | str | None = None,
370
370
  start_index: int = None,
371
371
  start_line: str = None,
372
372
  end_index: int = None,
@@ -410,8 +410,8 @@ def to_list(file_name: str = 'a.txt',
410
410
  sep_line_prefix=sep_line_prefix,
411
411
  sep_line_suffix=sep_line_suffix,
412
412
  sep_all=sep_all,
413
- ignore_start_with=ignore_start_with,
414
- ignore_end_with=ignore_end_with,
413
+ line_ignore_start_with=line_ignore_start_with,
414
+ line_ignore_end_with=line_ignore_end_with,
415
415
  start_index=start_index,
416
416
  start_line=start_line,
417
417
  end_index=end_index,
@@ -1,4 +1,5 @@
1
1
  from upplib import *
2
+ from upplib.file_text import to_list_from_txt
2
3
  from upplib.clean_up_msg import *
3
4
  from datetime import datetime, timezone, timedelta
4
5
  from typing import Any, Optional, Union, Callable, List
@@ -50,8 +51,7 @@ def get_from_txt(file_name: str = '_start_time_end_time_str.txt',
50
51
  second : 获得时间,在 second 基础上,前后冗余多少秒
51
52
  获得日志
52
53
  """
53
- date_list = to_list_from_txt(file_name)
54
- date_list = list(filter(lambda x: len(x) > 0 and not str(x).strip().startswith('#'), date_list))
54
+ date_list = to_list_from_txt(file_name, line_ignore_start_with='#')
55
55
  if len(date_list) == 0:
56
56
  return None, None
57
57
  date_time_list = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upplib
3
- Version: 3.2.4
3
+ Version: 3.2.6
4
4
  Summary: util
5
5
  Author: Luck
6
6
  Author-email: wantwaterfish@gmail.com
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