Skip to content

Commit 5cdc254

Browse files
committed
1. add utils.cut_file to cut file with a+b mode to limit the file size
1 parent c139c1a commit 5cdc254

File tree

8 files changed

+1629
-1534
lines changed

8 files changed

+1629
-1534
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ dmypy.json
133133
temp*.py
134134
*.pyz
135135
logs/
136+
uv.lock

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.2.5 (2025-03-31)
2+
1. add `utils.cut_file` to cut file with `a+b` mode to limit the file size
3+
14
### 1.2.4 (2025-03-08)
25
1. add `key_type` arg to `sqlite.KV`, to support `int` key.
36

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ print(morebuiltins.__file__)
129129

130130
1.38 `timeti` - Return the number of iterations per second for a given statement.
131131

132+
1.40 `cut_file` - Cut file to max_bytes, remain_ratio is the ratio of the end part to remain, ensure_line_start is to ensure the first line is a complete line
133+
132134

133135
## 2. morebuiltins.date
134136

0 commit comments

Comments
 (0)