xlin 0.1.6__tar.gz → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xlin
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: toolbox for LinXueyuan
5
5
  License: MIT
6
6
  Author: XiChen
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "xlin"
3
- version = "0.1.6"
3
+ version = "0.1.7"
4
4
  description = "toolbox for LinXueyuan"
5
5
  authors = ["XiChen <23211526+LinXueyuanStdio@users.noreply.github.com>"]
6
6
  license = "MIT"
@@ -62,6 +62,10 @@ def is_jsonl(filepath: str):
62
62
  else:
63
63
  return True # 第一行是json,所以是jsonl格式
64
64
 
65
+ def load_text(filename):
66
+ with open(filename, 'r') as f:
67
+ return f.read()
68
+
65
69
 
66
70
  def load_json_or_jsonl(filepath: str):
67
71
  if is_jsonl(filepath):
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