Closed ChristinaLast closed 1 year ago
[prithviraj@ip-172-31-81-98 openaq-engine]$ poetry shell
Spawning shell within /home/prithviraj/unicef/openaq-engine/.venv
. /home/prithviraj/unicef/openaq-engine/.venv/bin/activate
[prithviraj@ip-172-31-81-98 openaq-engine]$ . /home/prithviraj/unicef/openaq-engine/.venv/bin/activate
(openaq-engine-py3.8) [prithviraj@ip-172-31-81-98 openaq-engine]$ openaq-engine time-splitter --help
Traceback (most recent call last):
File "/home/prithviraj/unicef/openaq-engine/.venv/bin/openaq-engine", line 33, in <module>
sys.exit(load_entry_point('openaq-engine', 'console_scripts', 'openaq-engine')())
File "/home/prithviraj/unicef/openaq-engine/.venv/bin/openaq-engine", line 25, in importlib_load_entry_point
return next(matches).load()
StopIteration
(openaq-engine-py3.8) [prithviraj@ip-172-31-81-98 openaq-engine]$ poetry shell
Virtual environment already activated: /home/prithviraj/unicef/openaq-engine/.venv
(openaq-engine-py3.8) [prithviraj@ip-172-31-81-98 openaq-engine]$ poetry install
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: openaq-engine (0.1.0)
(openaq-engine-py3.8) [prithviraj@ip-172-31-81-98 openaq-engine]$ openaq-engine time-splitter --help
Traceback (most recent call last):
File "/home/prithviraj/unicef/openaq-engine/.venv/bin/openaq-engine", line 33, in <module>
sys.exit(load_entry_point('openaq-engine', 'console_scripts', 'openaq-engine')())
File "/home/prithviraj/unicef/openaq-engine/.venv/bin/openaq-engine", line 25, in importlib_load_entry_point
return next(matches).load()
StopIteration
(openaq-engine-py3.8) [prithviraj@ip-172-31-81-98 openaq-engine]$
Description
This PR achieves the following features:
[x] Build an
OptionGroup
of CLI arguments to be used to query data fromopenaq
's datastore. These are:Options: -d, --latest-date TEXT Date to load data until in format YYYY-MM-DD -p, --pollutant [co|no2|o3|pm1|pm10|pm25|so2] Load timesplits from data for the pollutant requested -s, --source [openaq-aws|openaq-api] Source to load the openaq data from -c, --country TEXT Load timesplits from specific countries Options for defining time-splitter: Allows definition of custom timesplits for provided countries and from the date provided --help Show this message and exit.
cd openaq_engine
pip install -e .
cd ..
openaq-engine time-splitter --help