Metadata-Version: 2.1
Name: daybook
Version: 1.0.2
Summary: daybook is a reading log cli app
Home-page: https://gitlab.com/pntman/daybook
Author: Miguel Amezola
Author-email: mail@imiguel.net
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: attrs (==21.4.0)
Requires-Dist: click (==8.0.3)
Requires-Dist: iniconfig (==1.1.1)
Requires-Dist: mypy-extensions (==0.4.3)
Requires-Dist: mysql-connector-python (==8.0.27)
Requires-Dist: mysqlclient (==2.1.0)
Requires-Dist: packaging (==21.3)
Requires-Dist: pathspec (==0.9.0)
Requires-Dist: platformdirs (==2.4.1)
Requires-Dist: pluggy (==1.0.0)
Requires-Dist: protobuf (==3.19.1)
Requires-Dist: py (==1.11.0)
Requires-Dist: pyparsing (==3.0.6)
Requires-Dist: pytest (==6.2.5)
Requires-Dist: pytest-env (==0.6.2)
Requires-Dist: python-dotenv (==0.19.2)
Requires-Dist: PyYAML (==6.0)
Requires-Dist: toml (==0.10.2)
Requires-Dist: tomli (==1.2.3)
Requires-Dist: typing-extensions (==4.0.1)
Requires-Dist: versioneer (==0.21)

# daybook: reading log for the cli


daybook is a reading log app made for the command-line interface (cli).

## Install

pip install daybook

## Usage

### Adding Reading Log Entries

daybook [-h] [-v] {add,del,books,entries,logs,update,config} ...


usage: daybook add [-h] [-r READER] [-k BOOK_KEY] [-t TITLE] [-a AUTHOR] [-d DATE] [--start START] --end END

optional arguments:
  -h, --help            show this help message and exit

reading log:
  -r READER, --reader READER

book:
  -k BOOK_KEY, --key BOOK_KEY
                        this can be used instead of title and author
  -t TITLE, --title TITLE
                        requires author
  -a AUTHOR, --author AUTHOR
                        requires title

date:
  -d DATE, --date DATE

pages:
  --start START
  --end END


### Deleting Reading Log Entries

usage: daybook del [-h] [-r READER] -e ENTRY_ID

optional arguments:
  -h, --help            show this help message and exit

reading log:
  -r READER, --reader READER

entry:
  -e ENTRY_ID, --entry ENTRY_ID


### Querying Books

usage: daybook books [-h] [-q QUERY]

optional arguments:
  -h, --help            show this help message and exit
  -q QUERY, --query QUERY
                        this query returns all books containing this value in their titles, authors, or subtitles


### Querying Reading Log Entries

usage: daybook entries [-h] [-r READER] [--from FROM_DATE] [--to TO_DATE]

optional arguments:
  -h, --help            show this help message and exit

reading log:
  -r READER, --reader READER

date range:
  --from FROM_DATE
  --to TO_DATE


### Listing Reading Logs

sage: daybook logs [-h]

optional arguments:
  -h, --help  show this help message and exit


### Updating Entries, Books, Reading Logs, etc.

usage: daybook update [-h] [-r READER] (-e ENTRY_ID | -b KEY | -l KEY)

optional arguments:
  -h, --help            show this help message and exit
  -r READER, --reader READER
  -e ENTRY_ID, --entry ENTRY_ID
  -b KEY, --book KEY
  -l KEY, --log KEY


### App Settings

usage: daybook config [-h] [--get-default-reading-log] [--set-default-reading-log DEFAULT_READING_LOG]

optional arguments:
  -h, --help            show this help message and exit

reading log:
  --get-default-reading-log
  --set-default-reading-log DEFAULT_READING_LOG


