Skip to main content

Logbook-cli-banner

logbook-cli

Keep Your Daily Events Recorded on Your Logbook Using Command Line.

How Does It Work?

logbook-cli is created using python. It uses typer for the Command Line Interface and SQLAlchemy to interact with the database (sqlite). All the log entries are stored into the sqlite database.

Installation

You can install logbook-cli by using pip:

pip install logbook-cli

Configuration

logbook-cli stores the sqlite database in ~/.logbook/ directory by default.

You can use LOG_BOOK_DATABASE_URL environment variable to use a different location.

Example:

export LOG_BOOK_DATABASE_URL=sqlite:///logbook.sqlite3

How to use logbook-cli

Usage

$ logbook-cli [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • add: Add a log entry to the logbook.
  • delete: Delete a log entry using it's ID.
  • edit: Update a log entry using it's ID.
  • find: List all log entries that match the argument.
  • list: List all log entries in a table, limits upto...
  • view: View a single log entry using it's ID.

logbook-cli add

Add a log entry to the logbook.

Usage:

$ logbook-cli add [OPTIONS] DESCRIPTION

Arguments:

  • DESCRIPTION: Description of the log entry [required]

Options:

  • -d, --date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]: Date of the log entry [default: log entry date]
  • -t, --time [%H:%M:%S|%I:%M %p]: Time of the log entry [default: log entry time]
  • --help: Show this message and exit.

Example:

$ logbook-cli add -d "2021-05-10" -t "10:00 PM" "This is a Test Log Entry"

logbook-cli delete

Delete a log entry using it's ID.

Usage:

$ logbook-cli delete [OPTIONS] ID

Arguments:

  • ID: ID of the log entry [required]

Options:

  • --help: Show this message and exit.

Example:

$ logbook-cli delete 1

logbook-cli edit

Update a log entry using it's ID.

Usage:

$ logbook-cli edit [OPTIONS] ID

Arguments:

  • ID: ID of the log entry [required]

Options:

  • --description TEXT: New Description for the log entry [default: ]
  • -d, --date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]: New Date for the log entry
  • -t, --time [%H:%M:%S|%I:%M %p]: New Time for the log entry
  • --help: Show this message and exit.

Example:

$ logbook-cli edit 1 -d "2021-05-10" -t "10:00 PM" --description "This is a Edited Test Log Entry"

logbook-cli find

List all log entries that match the argument.

Usage:

$ logbook-cli find [OPTIONS] DESCRIPTION_CONTAINS

Arguments:

  • DESCRIPTION_CONTAINS: String that may match log entry description [required]

Options:

  • --help: Show this message and exit.

Example:

$ logbook-cli find "test"

logbook-cli list

List all log entries in a table, limits upto 40 log entries.

Usage:

$ logbook-cli list [OPTIONS]

Options:

  • --help: Show this message and exit.

Example:

$ logbook-cli list

logbook-cli view

View a single log entry using it's ID.

Usage:

$ logbook-cli view [OPTIONS] ID

Arguments:

  • ID: ID of the log entry [required]

Options:

  • --help: Show this message and exit.

Example:

$ logbook-cli view 1

Screenshot

logbook-cli-screenshot

Release files for logbook-cli 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logbook-cli 0.5.2
File Size Uploaded
logbook-cli-0.5.2.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logbook-cli 0.5.2
File Interpreter ABI Platform
logbook_cli-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / logbook-cli-0.5.2.tar.gz

Download URL logbook-cli-0.5.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4b2aa69316a31eb4045f8dac98ccf933bfbe0c01b42d840649e1df5d822c80fa
BLAKE2b-256 checksum
How to use checksums
9ff583b03ffdea3b7646769f589f9104a1eb5c8d5eae8518a8687c198390333c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.4 Linux/5.8.0-53-generic

Release files / logbook_cli-0.5.2-py3-none-any.whl

Download URL logbook_cli-0.5.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2611f8233be9df8aca189b2aac21d81748f01871ad1968aa22cea01e968fa431
BLAKE2b-256 checksum
How to use checksums
e96986fb2564f2f73b022a911cad79d6f38d1d952141244afaed43612f9678ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.4 Linux/5.8.0-53-generic

Release history Release notifications | RSS feed

This release

0.5.2 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page