Zathura是一个小型的空间记录器。当她进入一个未知的发展阶段时,它会把一些东西记录到她的日志中。
zathura的Python项目详细描述
______ ___________
___ /______ __ /___ /_____ ______________ _
__ / _ __ `/ __/_ __ \ / / /_ ___/ __ `/
_ /__/ /_/ // /_ _ / / / /_/ /_ / / /_/ /
/____/\__,_/ \__/ /_/ /_/\__,_/ /_/ \__,_/
扎图拉
Zathura是一个基于sqlite3的记录器。目前,您只能从终端查看错误和调试日志。不过,我正在研究webview。请记住,您必须为自己的项目处理身份验证。
如何安装
pip install zathura这将在您的virtualenv上安装最新版本
代码预览
一。您只需从zathuraproject.zathura导入zathura并调用insert_error_log函数即可立即开始记录错误。
from ZathuraProject.zathura import Zathurazathura = Zathura() zathura.insert_error_log(user_id, error_name, long_error_description)
2.从终端查看日志
zathura help这将列出所有可用的命令。从中进行选择以查看要如何对日志进行排序。
usage: Zathura COMMAND [args] ... For example: { Zathura v } will show the current version of this pacakge. ----------------------------------------------------- ----------------------------------------------------- All commands: [[ v ]] : Show the current version of this package [[ developer ]] : Search based on developers name. You can filter out the result based on date and descending order [[ debug_origin ]] : Shows debug messages based on point of origin. Point of origin is the class/function from where you are adding a message in sqlite. [[ error_user ]] : Shows error generated under the given username [[ all_debug ]] : Shows all debug messages [[ error_name ]] : Shows error based on a error name. [[ date ]] : Shows error occurred in between a specific date. [[ all_error ]] : Shows all error messages [[ origin ]] : Shows error generated on the given point of origin [[ mark_resolve ]] : Given an error name and point of origin all errors logged on database, is marked resolved. [[ delete_debug ]] : Deletes the last seven days of debug mesasges from the database. It is useful if you dont want to clutter the database with unnecessary debug info. [[ help ]] : Shows all the commands necessary to run this package from terminal ----------------------------------------------------- -----------------------------------------------------例如,要查看所有错误,无需排序,只需键入
zathura all_error
毫无疑问,这个项目可能存在一些缺陷和改进。我写信给扎图拉是为了帮助我完成我的项目。如果您遇到任何错误或需要更多模块,请打开一个问题。如果你想贡献,请克隆我的项目,并为我创建一个拉请求。
谢谢你。伊布特哈兹
在计算机上运行Zathura代码库
- 克隆项目并将目录更改为该项目。
- pip安装-r requirements.txt
- pip安装--升级setuptools控制盘
-
python3 setup.py sdist bdist_轮
这将从最新版本为您创建一个生成文件。 -
PIP安装。
检查你的机器