realtime_web_logs
文件日志实时显示到web页面。附带全系统硬盘的文件浏览下载功能。
gunicorn -w 9 -k gevent --bind 0.0.0.0:8888 log_to_web:app
看日志希望带有彩色,希望从浏览器上看到,不用连到机器上看。
浏览系统的文件夹,scan + 系统文件夹的层级名字当做url路由,可以深层次看到机器上任何层级的文件夹,
实现系统文件夹浏览下载。
如果是点击文件夹进入子目录。
如果是点击文件,尝试以文本格式读取文件,并以实时更新的方式显示到浏览器日志控制台并加彩。
主要是要做到不遗漏推送日志和不重复推送日志,采用的是python 操作文件的seek和tell。
浏览系统目录和下载文件的页面
查看实时日志更新的页面,提供了暂停功能和自动下拉功能。把日志根据级别加了彩色,
更容易观察哪些是严重的,哪些是debug的。
Metadata
Release files for realtime-web-logs 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| realtime_web_logs-1.5.tar.gz | 370.8 kB | Without provenance | Details for realtime_web_logs-1.5.tar.gz |
Release files / realtime_web_logs-1.5.tar.gz
| Download URL | realtime_web_logs-1.5.tar.gz |
|---|---|
| Size | 370.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bf682d8f5d87aa2a5842c13be7e7f0c1f950953d08470c321faa41d6725119c
|
|
BLAKE2b-256 checksum How to use checksums |
18f5684687afbca99913e9f511e0b01663f62c56f2e2346fcede9c82d66776bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
|
Security for realtime-web-logs 1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.