Skip to content

Commit 4667576

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

File tree

7 files changed

+1626
-1533
lines changed

7 files changed

+1626
-1533
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 1.2.4 (2025-03-08)
22
1. add `key_type` arg to `sqlite.KV`, to support `int` key.
3+
2. add `utils.cut_file` to cut file with `a+b` mode to limit the file size
34

45
### 1.2.3 (2025-03-07)
56
1. add `sqlite.KV`: A key-value store using sqlite3, lightweight `sqlitedict`.

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)