项目作者: joshpetit

项目描述 :
Save your favorite quotes from the commandline! I literally just did this to get used to sqlite lol.
高级语言: Python
项目地址: git://github.com/joshpetit/pyquoter.git
创建时间: 2020-11-05T11:09:52Z
项目社区:https://github.com/joshpetit/pyquoter

开源协议:

下载


pyquoter

A CLI tool to save your favorite quotes :).

Installation

  1. pip install pyquoter

Usage

All of the flags and options are visible with the --help flag

Creating quotes

  1. pyquoter -q "This is the quote!" -a "Author Name!" -d 11/20/2020 -t These are Tags
  2. pyquoter -q "This Another quote" -d 11/20/2020 -t cool inspirational # Author defaults to Unkown
  3. pyquoter -q "Just testing stuff" # All that is required is the quote

Searching quotes

To turn a quote insertion into a query just add the -f flag

  1. pyquoter -f -q "quote" # Outputs quotes that contain the word "quote"
  2. pyquoter -f -a "Abraham" # Outputs quotes with any author the word "Abraham" in their name
  3. pyquoter -f -i 1 # Outputs the quote with an ID of 1
  4. pyquoter -f -t inspirational # Outputs any quote tagged with the world inspirational
  5. pyquoter -f # Outputs all the quotes

Sample output:

  1. [3] Pyquoter is alright I guess
  2. - Josh 11/20/2020

Deleting quotes

If you have a quote that you think isn’t up to par, you can delete it by referencing its ID

  1. pyquoter --delete 1 # Deletes the quote with an ID of 1

Creating an Alias

Typing pyquoter may be a bit verbose so if you have a .bashrc add the line
alias pq=pyquoter