upplib 3.3.0__tar.gz → 3.3.2__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.
- {upplib-3.3.0 → upplib-3.3.2}/PKG-INFO +1 -1
- {upplib-3.3.0 → upplib-3.3.2}/upplib/file_text.py +9 -9
- {upplib-3.3.0 → upplib-3.3.2}/upplib/query_log.py +1 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib.egg-info/PKG-INFO +1 -1
- {upplib-3.3.0 → upplib-3.3.2}/LICENSE +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/README.md +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/pyproject.toml +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/setup.cfg +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/setup.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/__init__.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/chart.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/chart_html.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/clean_up_msg.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/common_package.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/config_data.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/db.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/file.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/format_data.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/http_util.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/index.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/mail.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/mail_html.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/markdown.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/multi_thread.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/redis_tool.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib/util.py +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib.egg-info/SOURCES.txt +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib.egg-info/dependency_links.txt +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib.egg-info/requires.txt +0 -0
- {upplib-3.3.0 → upplib-3.3.2}/upplib.egg-info/top_level.txt +0 -0
|
@@ -817,16 +817,16 @@ def to_list_from_txt(file_name: str = 'a.txt',
|
|
|
817
817
|
# 读取文件中的数据,返回一个 str
|
|
818
818
|
def to_str_from_file(file_name: str = 'a.txt',
|
|
819
819
|
str_join: str = ' ',
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
line_ignore_start_with: list | int | str | None = None,
|
|
821
|
+
line_ignore_end_with: list | int | str | None = None,
|
|
822
822
|
start_index: int = None,
|
|
823
823
|
start_line: str = None,
|
|
824
824
|
end_index: int = None,
|
|
825
825
|
end_line: str = None,
|
|
826
826
|
count: int = None) -> str:
|
|
827
827
|
return to_data_from_file(file_name=file_name,
|
|
828
|
-
|
|
829
|
-
|
|
828
|
+
line_ignore_start_with=line_ignore_start_with,
|
|
829
|
+
line_ignore_end_with=line_ignore_end_with,
|
|
830
830
|
str_join=str_join,
|
|
831
831
|
start_index=start_index,
|
|
832
832
|
start_line=start_line,
|
|
@@ -848,7 +848,7 @@ def to_json_from_file(file_name: str = 'a.txt',
|
|
|
848
848
|
start_line=start_line,
|
|
849
849
|
end_index=end_index,
|
|
850
850
|
end_line=end_line,
|
|
851
|
-
|
|
851
|
+
line_ignore_start_with=['//', '/*', '#'],
|
|
852
852
|
count=count,
|
|
853
853
|
r_json=True)
|
|
854
854
|
|
|
@@ -857,8 +857,8 @@ def to_data_from_file(file_name: str = 'a.txt',
|
|
|
857
857
|
sep: str = None,
|
|
858
858
|
sep_line: str = None,
|
|
859
859
|
sep_all: str = None,
|
|
860
|
-
|
|
861
|
-
|
|
860
|
+
line_ignore_start_with: list | int | str | None = None,
|
|
861
|
+
line_ignore_end_with: list | int | str | None = None,
|
|
862
862
|
start_index: int = None,
|
|
863
863
|
start_line: str = None,
|
|
864
864
|
end_index: int = None,
|
|
@@ -881,8 +881,8 @@ def to_data_from_file(file_name: str = 'a.txt',
|
|
|
881
881
|
sep=sep,
|
|
882
882
|
sep_line=sep_line,
|
|
883
883
|
sep_all=sep_all,
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
line_ignore_start_with=line_ignore_start_with,
|
|
885
|
+
line_ignore_end_with=line_ignore_end_with,
|
|
886
886
|
start_index=start_index,
|
|
887
887
|
start_line=start_line,
|
|
888
888
|
end_index=end_index,
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|