Skip to content

A little CLI to keep me informed of the availability of vegan donuts near me.

Notifications You must be signed in to change notification settings

PropeReferio/vdonut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A little CLI to keep me informed of the availability of vegan donuts near me.

Gif of Application at Work

Dependencies:

requests - run pip install requests

Usage:

You can run this script from the directory that contains it by running vdonut. If you add that directory to the $PATH, you'll be able to run it from anywhere.

Start by running vdonut config to set your default location and diet. To override defaults, you could run vdonut --location franklin --diet paleo. Once you have defaults the way you want them, you can simply run vdonut.

Sending emails:

This program uses two environment variables to send the console output as an email: VDONUT_EMAIL_SENDER VDONUT_EMAIL_SENDER_PASSWORD I won't be providing those details, of course. You could set up an email address with gmail and turn Allow less secure apps to ON in the settings, if you want. Read more about that here: https://realpython.com/python-send-email/#option-1-setting-up-a-gmail-account-for-development

Config Demo:

Gif of Config at Work

vdonut --help
usage: vdonut [-h] [-f FILE] [-d DIET] [-l LOCATION] {config} ...

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Filename to write output to.
  -d DIET, --diet DIET  Dietary preferences. Use 'omni' if you have no
                        preference. 'vegan' and 'paleo' are also valid
                        options.
  -l LOCATION, --location LOCATION
                        The store location to get inventory from. Valid
                        Choices: franklin, east_nashville, west_nashville,
                        hillsboro, ponce_city_market, westside_provisions
  -e EMAIL, --email EMAIL
                        Email address to send results to.

config:
  Running 'vdonut config' will set default arguments for location and diet.

  {config}

About

A little CLI to keep me informed of the availability of vegan donuts near me.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages