backlog-2.0.4
توضیحات
A Glorified TODO list
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | backlog-2.0.4 |
| نام | backlog |
| نسخه کتابخانه | 2.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | David Tucker |
| ایمیل نویسنده | david@tucker.name |
| آدرس صفحه اصلی | https://pypi.org/project/backlog |
| آدرس اینترنتی | https://pypi.org/project/backlog/ |
| مجوز | LGPLv2+ |
=======
Backlog
=======
Track prioritized notes with this glorified TODO list.
Installation
============
Use `pip <https://pip.pypa.io/>`__ to install Backlog.
.. code:: sh
pip install backlog
Usage
=====
Backlog can be invoked from a command-line or imported in 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
---
.. code:: python
>>> from backlog import Backlog
>>> help(Backlog)
.. code:: python
>>> 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'),
... ],
... )
.. code:: python
>>> backlog.random()
Backlog.Entry(title='Buy groceries', priority=200, note='eggs, bread, milk')
.. code:: python
>>> list(backlog.search('bill'))
[Backlog.Entry(title='Pay the water bill', priority=100, note='')]
نیازمندی
| مقدار | نام |
|---|---|
| >=7.1 | click |
| >=46.1 | setuptools |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >= 3.7 | Python |
نحوه نصب
نصب پکیج whl backlog-2.0.4:
pip install backlog-2.0.4.whl
نصب پکیج tar.gz backlog-2.0.4:
pip install backlog-2.0.4.tar.gz