requests - run pip install requests
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
.
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
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}