光荣的待办事项清单

backlog的Python项目详细描述


用这个光荣的待办事项列表跟踪优先注意事项。

安装

使用pip安装backlog。

pip install backlog

用法

backlog可以从命令行调用,也可以用python导入。

cli

$ 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

>>>frombacklogimportBacklog>>>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='')]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java爬虫获取外部网站搜索结果   java Bluestack未连接到eclipse   java如何从ConstraintViolationException Hibernamte获取数据库字段名   HttpResponse HttpResponse=httpClient引发java运行时错误。执行(httpPost);   Jama中矩阵的java点积和叉积   java有什么方法可以唯一地识别可扩展设备吗?   java我需要用*来写我的名字,但我不断遇到一个错误,我对编码很陌生   java变量是在内部类中访问的。需要被宣布为最终决定。但我不想宣布最终结果   java如何缩短base64图像字符串,Android?   JavaSpringMVC:计划方法不自动触发   图形学习Java 2D API的好资源是什么?   如何在java中对方法进行排队   java JavaFX多行   java Selenium无法在[链接]上找到基于CSS元素的密码字段元素http://www.cartasi.it/gtwpages/index.jsp   Java中的equals()和hashCode()契约   软删除情况下的java Hibernate二级缓存   java为什么这段代码要两次调用这些方法?