华丽的待办事项列表
项目描述
使用这个华丽的待办事项列表跟踪优先级较高的笔记。
安装
使用 pip 安装 Backlog。
pip install backlog
使用方法
Backlog可以从命令行调用或在Python中导入。
命令行界面
$ backlog --help Usage: backlog [OPTIONS] COMMAND [ARGS]... Manage a Backlog. Options: --path PATH Specify the path to use for the backlog file. --version Show the version and exit. --help Show this message and exit. Commands: add Add an entry to the backlog. random Select a random entry from the backlog. remove Remove entries from the backlog. show Show entries in the backlog.
$ backlog add --priority 100 'Pay the water bill' $ backlog add --priority 200 --note "eggs, bread, milk" 'Buy groceries' $ backlog add 'Clean out the freezer' $ backlog show total 3 Pay the water bill 100 Buy groceries 200 eggs, bread, milk Clean out the freezer 0
$ backlog random Buy groceries priority: 200 eggs, bread, milk
$ backlog show --pattern bill total 1 Pay the water bill 100
API
>>> from backlog import Backlog
>>> help(Backlog)
>>> backlog = Backlog(
... entries=[
... Backlog.Entry('Pay the water bill', priority=100),
... Backlog.Entry('Buy groceries', priority=200, note='eggs, bread, milk'),
... Backlog.Entry('Clean out the freezer'),
... ],
... )
>>> backlog.random()
Backlog.Entry(title='Buy groceries', priority=200, note='eggs, bread, milk')
>>> list(backlog.search('bill'))
[Backlog.Entry(title='Pay the water bill', priority=100, note='')]
项目详情
下载文件
为您的平台下载文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。
源分布
backlog-2.0.4.tar.gz (22.6 kB 查看哈希值)
构建分布
backlog-2.0.4-py3-none-any.whl (13.9 kB 查看哈希值)