zread 1.0.0__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.
- zread-1.0.0/.gitignore +421 -0
- zread-1.0.0/CONTRIBUTING.md +44 -0
- zread-1.0.0/LICENSE +21 -0
- zread-1.0.0/PKG-INFO +245 -0
- zread-1.0.0/README.md +222 -0
- zread-1.0.0/pyproject.toml +39 -0
- zread-1.0.0/requirements.txt +9 -0
- zread-1.0.0/server.json +39 -0
- zread-1.0.0/zread.py +4501 -0
zread-1.0.0/.gitignore
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
|
|
2
|
+
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,linux,node,python,windows
|
|
3
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos,linux,node,python,windows
|
|
4
|
+
|
|
5
|
+
### Linux ###
|
|
6
|
+
*~
|
|
7
|
+
|
|
8
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
|
9
|
+
.fuse_hidden*
|
|
10
|
+
|
|
11
|
+
# KDE directory preferences
|
|
12
|
+
.directory
|
|
13
|
+
|
|
14
|
+
# Linux trash folder which might appear on any partition or disk
|
|
15
|
+
.Trash-*
|
|
16
|
+
|
|
17
|
+
# .nfs files are created when an open file is removed but is still being accessed
|
|
18
|
+
.nfs*
|
|
19
|
+
|
|
20
|
+
### macOS ###
|
|
21
|
+
# General
|
|
22
|
+
.DS_Store
|
|
23
|
+
.AppleDouble
|
|
24
|
+
.LSOverride
|
|
25
|
+
|
|
26
|
+
# Icon must end with two \r
|
|
27
|
+
Icon
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Thumbnails
|
|
31
|
+
._*
|
|
32
|
+
|
|
33
|
+
# Files that might appear in the root of a volume
|
|
34
|
+
.DocumentRevisions-V100
|
|
35
|
+
.fseventsd
|
|
36
|
+
.Spotlight-V100
|
|
37
|
+
.TemporaryItems
|
|
38
|
+
.Trashes
|
|
39
|
+
.VolumeIcon.icns
|
|
40
|
+
.com.apple.timemachine.donotpresent
|
|
41
|
+
|
|
42
|
+
# Directories potentially created on remote AFP share
|
|
43
|
+
.AppleDB
|
|
44
|
+
.AppleDesktop
|
|
45
|
+
Network Trash Folder
|
|
46
|
+
Temporary Items
|
|
47
|
+
.apdisk
|
|
48
|
+
|
|
49
|
+
### macOS Patch ###
|
|
50
|
+
# iCloud generated files
|
|
51
|
+
*.icloud
|
|
52
|
+
|
|
53
|
+
### Node ###
|
|
54
|
+
# Logs
|
|
55
|
+
logs
|
|
56
|
+
*.log
|
|
57
|
+
npm-debug.log*
|
|
58
|
+
yarn-debug.log*
|
|
59
|
+
yarn-error.log*
|
|
60
|
+
lerna-debug.log*
|
|
61
|
+
.pnpm-debug.log*
|
|
62
|
+
|
|
63
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
64
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
65
|
+
|
|
66
|
+
# Runtime data
|
|
67
|
+
pids
|
|
68
|
+
*.pid
|
|
69
|
+
*.seed
|
|
70
|
+
*.pid.lock
|
|
71
|
+
|
|
72
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
73
|
+
lib-cov
|
|
74
|
+
|
|
75
|
+
# Coverage directory used by tools like istanbul
|
|
76
|
+
coverage
|
|
77
|
+
*.lcov
|
|
78
|
+
|
|
79
|
+
# nyc test coverage
|
|
80
|
+
.nyc_output
|
|
81
|
+
|
|
82
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
83
|
+
.grunt
|
|
84
|
+
|
|
85
|
+
# Bower dependency directory (https://bower.io/)
|
|
86
|
+
bower_components
|
|
87
|
+
|
|
88
|
+
# node-waf configuration
|
|
89
|
+
.lock-wscript
|
|
90
|
+
|
|
91
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
92
|
+
build/Release
|
|
93
|
+
|
|
94
|
+
# Dependency directories
|
|
95
|
+
node_modules/
|
|
96
|
+
jspm_packages/
|
|
97
|
+
|
|
98
|
+
# Snowpack dependency directory (https://snowpack.dev/)
|
|
99
|
+
web_modules/
|
|
100
|
+
|
|
101
|
+
# TypeScript cache
|
|
102
|
+
*.tsbuildinfo
|
|
103
|
+
|
|
104
|
+
# Optional npm cache directory
|
|
105
|
+
.npm
|
|
106
|
+
|
|
107
|
+
# Optional eslint cache
|
|
108
|
+
.eslintcache
|
|
109
|
+
|
|
110
|
+
# Optional stylelint cache
|
|
111
|
+
.stylelintcache
|
|
112
|
+
|
|
113
|
+
# Microbundle cache
|
|
114
|
+
.rpt2_cache/
|
|
115
|
+
.rts2_cache_cjs/
|
|
116
|
+
.rts2_cache_es/
|
|
117
|
+
.rts2_cache_umd/
|
|
118
|
+
|
|
119
|
+
# Optional REPL history
|
|
120
|
+
.node_repl_history
|
|
121
|
+
|
|
122
|
+
# Output of 'npm pack'
|
|
123
|
+
*.tgz
|
|
124
|
+
|
|
125
|
+
# Yarn Integrity file
|
|
126
|
+
.yarn-integrity
|
|
127
|
+
|
|
128
|
+
# dotenv environment variable files
|
|
129
|
+
.env
|
|
130
|
+
.env.development.local
|
|
131
|
+
.env.test.local
|
|
132
|
+
.env.production.local
|
|
133
|
+
.env.local
|
|
134
|
+
|
|
135
|
+
# parcel-bundler cache (https://parceljs.org/)
|
|
136
|
+
.cache
|
|
137
|
+
.parcel-cache
|
|
138
|
+
|
|
139
|
+
# Next.js build output
|
|
140
|
+
.next
|
|
141
|
+
out
|
|
142
|
+
|
|
143
|
+
# Nuxt.js build / generate output
|
|
144
|
+
.nuxt
|
|
145
|
+
dist
|
|
146
|
+
|
|
147
|
+
# Gatsby files
|
|
148
|
+
.cache/
|
|
149
|
+
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
150
|
+
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
151
|
+
# public
|
|
152
|
+
|
|
153
|
+
# vuepress build output
|
|
154
|
+
.vuepress/dist
|
|
155
|
+
|
|
156
|
+
# vuepress v2.x temp and cache directory
|
|
157
|
+
.temp
|
|
158
|
+
|
|
159
|
+
# Docusaurus cache and generated files
|
|
160
|
+
.docusaurus
|
|
161
|
+
|
|
162
|
+
# Serverless directories
|
|
163
|
+
.serverless/
|
|
164
|
+
|
|
165
|
+
# FuseBox cache
|
|
166
|
+
.fusebox/
|
|
167
|
+
|
|
168
|
+
# DynamoDB Local files
|
|
169
|
+
.dynamodb/
|
|
170
|
+
|
|
171
|
+
# TernJS port file
|
|
172
|
+
.tern-port
|
|
173
|
+
|
|
174
|
+
# Stores VSCode versions used for testing VSCode extensions
|
|
175
|
+
.vscode-test
|
|
176
|
+
|
|
177
|
+
# yarn v2
|
|
178
|
+
.yarn/cache
|
|
179
|
+
.yarn/unplugged
|
|
180
|
+
.yarn/build-state.yml
|
|
181
|
+
.yarn/install-state.gz
|
|
182
|
+
.pnp.*
|
|
183
|
+
|
|
184
|
+
### Node Patch ###
|
|
185
|
+
# Serverless Webpack directories
|
|
186
|
+
.webpack/
|
|
187
|
+
|
|
188
|
+
# Optional stylelint cache
|
|
189
|
+
|
|
190
|
+
# SvelteKit build / generate output
|
|
191
|
+
.svelte-kit
|
|
192
|
+
|
|
193
|
+
### Python ###
|
|
194
|
+
# Byte-compiled / optimized / DLL files
|
|
195
|
+
__pycache__/
|
|
196
|
+
*.py[cod]
|
|
197
|
+
*$py.class
|
|
198
|
+
|
|
199
|
+
# C extensions
|
|
200
|
+
*.so
|
|
201
|
+
|
|
202
|
+
# Distribution / packaging
|
|
203
|
+
.Python
|
|
204
|
+
build/
|
|
205
|
+
develop-eggs/
|
|
206
|
+
dist/
|
|
207
|
+
downloads/
|
|
208
|
+
eggs/
|
|
209
|
+
.eggs/
|
|
210
|
+
lib/
|
|
211
|
+
lib64/
|
|
212
|
+
parts/
|
|
213
|
+
sdist/
|
|
214
|
+
var/
|
|
215
|
+
wheels/
|
|
216
|
+
share/python-wheels/
|
|
217
|
+
*.egg-info/
|
|
218
|
+
.installed.cfg
|
|
219
|
+
*.egg
|
|
220
|
+
MANIFEST
|
|
221
|
+
|
|
222
|
+
# PyInstaller
|
|
223
|
+
# Usually these files are written by a python script from a template
|
|
224
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
225
|
+
*.manifest
|
|
226
|
+
*.spec
|
|
227
|
+
|
|
228
|
+
# Installer logs
|
|
229
|
+
pip-log.txt
|
|
230
|
+
pip-delete-this-directory.txt
|
|
231
|
+
|
|
232
|
+
# Unit test / coverage reports
|
|
233
|
+
htmlcov/
|
|
234
|
+
.tox/
|
|
235
|
+
.nox/
|
|
236
|
+
.coverage
|
|
237
|
+
.coverage.*
|
|
238
|
+
nosetests.xml
|
|
239
|
+
coverage.xml
|
|
240
|
+
*.cover
|
|
241
|
+
*.py,cover
|
|
242
|
+
.hypothesis/
|
|
243
|
+
.pytest_cache/
|
|
244
|
+
cover/
|
|
245
|
+
|
|
246
|
+
# Translations
|
|
247
|
+
*.mo
|
|
248
|
+
*.pot
|
|
249
|
+
|
|
250
|
+
# Django stuff:
|
|
251
|
+
local_settings.py
|
|
252
|
+
db.sqlite3
|
|
253
|
+
db.sqlite3-journal
|
|
254
|
+
|
|
255
|
+
# Flask stuff:
|
|
256
|
+
instance/
|
|
257
|
+
.webassets-cache
|
|
258
|
+
|
|
259
|
+
# Scrapy stuff:
|
|
260
|
+
.scrapy
|
|
261
|
+
|
|
262
|
+
# Sphinx documentation
|
|
263
|
+
docs/_build/
|
|
264
|
+
|
|
265
|
+
# PyBuilder
|
|
266
|
+
.pybuilder/
|
|
267
|
+
target/
|
|
268
|
+
|
|
269
|
+
# Jupyter Notebook
|
|
270
|
+
.ipynb_checkpoints
|
|
271
|
+
|
|
272
|
+
# IPython
|
|
273
|
+
profile_default/
|
|
274
|
+
ipython_config.py
|
|
275
|
+
|
|
276
|
+
# pyenv
|
|
277
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
278
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
279
|
+
# .python-version
|
|
280
|
+
|
|
281
|
+
# pipenv
|
|
282
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
283
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
284
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
285
|
+
# install all needed dependencies.
|
|
286
|
+
#Pipfile.lock
|
|
287
|
+
|
|
288
|
+
# poetry
|
|
289
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
290
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
291
|
+
# commonly ignored for libraries.
|
|
292
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
293
|
+
#poetry.lock
|
|
294
|
+
|
|
295
|
+
# pdm
|
|
296
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
297
|
+
#pdm.lock
|
|
298
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
299
|
+
# in version control.
|
|
300
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
301
|
+
.pdm.toml
|
|
302
|
+
|
|
303
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
304
|
+
__pypackages__/
|
|
305
|
+
|
|
306
|
+
# Celery stuff
|
|
307
|
+
celerybeat-schedule
|
|
308
|
+
celerybeat.pid
|
|
309
|
+
|
|
310
|
+
# SageMath parsed files
|
|
311
|
+
*.sage.py
|
|
312
|
+
|
|
313
|
+
# Environments
|
|
314
|
+
.venv
|
|
315
|
+
env/
|
|
316
|
+
venv/
|
|
317
|
+
ENV/
|
|
318
|
+
env.bak/
|
|
319
|
+
venv.bak/
|
|
320
|
+
|
|
321
|
+
# Spyder project settings
|
|
322
|
+
.spyderproject
|
|
323
|
+
.spyproject
|
|
324
|
+
|
|
325
|
+
# Rope project settings
|
|
326
|
+
.ropeproject
|
|
327
|
+
|
|
328
|
+
# mkdocs documentation
|
|
329
|
+
/site
|
|
330
|
+
|
|
331
|
+
# mypy
|
|
332
|
+
.mypy_cache/
|
|
333
|
+
.dmypy.json
|
|
334
|
+
dmypy.json
|
|
335
|
+
|
|
336
|
+
# Pyre type checker
|
|
337
|
+
.pyre/
|
|
338
|
+
|
|
339
|
+
# pytype static type analyzer
|
|
340
|
+
.pytype/
|
|
341
|
+
|
|
342
|
+
# Cython debug symbols
|
|
343
|
+
cython_debug/
|
|
344
|
+
|
|
345
|
+
# PyCharm
|
|
346
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
347
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
348
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
349
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
350
|
+
#.idea/
|
|
351
|
+
|
|
352
|
+
### Python Patch ###
|
|
353
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
|
354
|
+
poetry.toml
|
|
355
|
+
|
|
356
|
+
# ruff
|
|
357
|
+
.ruff_cache/
|
|
358
|
+
|
|
359
|
+
# LSP config files
|
|
360
|
+
pyrightconfig.json
|
|
361
|
+
|
|
362
|
+
### VisualStudioCode ###
|
|
363
|
+
.vscode/*
|
|
364
|
+
!.vscode/settings.json
|
|
365
|
+
!.vscode/tasks.json
|
|
366
|
+
!.vscode/launch.json
|
|
367
|
+
!.vscode/extensions.json
|
|
368
|
+
!.vscode/*.code-snippets
|
|
369
|
+
|
|
370
|
+
# Local History for Visual Studio Code
|
|
371
|
+
.history/
|
|
372
|
+
|
|
373
|
+
# Built Visual Studio Code Extensions
|
|
374
|
+
*.vsix
|
|
375
|
+
|
|
376
|
+
### VisualStudioCode Patch ###
|
|
377
|
+
# Ignore all local history of files
|
|
378
|
+
.history
|
|
379
|
+
.ionide
|
|
380
|
+
|
|
381
|
+
### Windows ###
|
|
382
|
+
# Windows thumbnail cache files
|
|
383
|
+
Thumbs.db
|
|
384
|
+
Thumbs.db:encryptable
|
|
385
|
+
ehthumbs.db
|
|
386
|
+
ehthumbs_vista.db
|
|
387
|
+
|
|
388
|
+
# Dump file
|
|
389
|
+
*.stackdump
|
|
390
|
+
|
|
391
|
+
# Folder config file
|
|
392
|
+
[Dd]esktop.ini
|
|
393
|
+
|
|
394
|
+
# Recycle Bin used on file shares
|
|
395
|
+
$RECYCLE.BIN/
|
|
396
|
+
|
|
397
|
+
# Windows Installer files
|
|
398
|
+
*.cab
|
|
399
|
+
*.msi
|
|
400
|
+
*.msix
|
|
401
|
+
*.msm
|
|
402
|
+
*.msp
|
|
403
|
+
|
|
404
|
+
# Windows shortcuts
|
|
405
|
+
*.lnk
|
|
406
|
+
|
|
407
|
+
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos,linux,node,python,windows
|
|
408
|
+
|
|
409
|
+
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
|
|
410
|
+
|
|
411
|
+
.mcpregistry*
|
|
412
|
+
.claude/
|
|
413
|
+
.env
|
|
414
|
+
|
|
415
|
+
# Test export directories
|
|
416
|
+
facebook-react/
|
|
417
|
+
golang-go/
|
|
418
|
+
test-export/
|
|
419
|
+
|
|
420
|
+
# Python version file
|
|
421
|
+
.python-version
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# 贡献指南
|
|
2
|
+
|
|
3
|
+
感谢您对 Zread 项目的关注!
|
|
4
|
+
|
|
5
|
+
## 如何贡献
|
|
6
|
+
|
|
7
|
+
1. **Fork 仓库** - 点击 GitHub 右上角的 Fork 按钮
|
|
8
|
+
2. **克隆代码** - `git clone https://github.com/YOUR_USERNAME/zread.git`
|
|
9
|
+
3. **创建分支** - `git checkout -b feature/your-feature-name`
|
|
10
|
+
4. **提交更改** - `git commit -m "描述您的更改"`
|
|
11
|
+
5. **推送分支** - `git push origin feature/your-feature-name`
|
|
12
|
+
6. **创建 Pull Request** - 在 GitHub 上提交 PR
|
|
13
|
+
|
|
14
|
+
## 开发环境设置
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# 克隆仓库
|
|
18
|
+
git clone https://github.com/ejfkdev/zread.git
|
|
19
|
+
cd zread
|
|
20
|
+
|
|
21
|
+
# 创建虚拟环境
|
|
22
|
+
python -m venv .venv
|
|
23
|
+
source .venv/bin/active # Windows: .venv\Scripts\activate
|
|
24
|
+
|
|
25
|
+
# 安装依赖
|
|
26
|
+
pip install -r requirements.txt
|
|
27
|
+
|
|
28
|
+
# 本地运行测试
|
|
29
|
+
python zread.py --help
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 代码规范
|
|
33
|
+
|
|
34
|
+
- 遵循 PEP 8 风格指南
|
|
35
|
+
- 添加适当的文档字符串
|
|
36
|
+
- 保持代码简洁清晰
|
|
37
|
+
|
|
38
|
+
## 报告问题
|
|
39
|
+
|
|
40
|
+
如果您发现 bug 或有功能建议,请在 [Issues](https://github.com/ejfkdev/zread/issues) 页面提交。
|
|
41
|
+
|
|
42
|
+
## 许可证
|
|
43
|
+
|
|
44
|
+
通过贡献您的代码,您同意将其授权为 MIT 许可证。
|
zread-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ejfkdev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|