A minimal repo for spiking out getting hold of some licencing performance data.
sudo pip install -r requirements.txt
- Get client secrets from your Google API Console by creating a new project, turning on Analytics API, going to "API access" and creating an OAuth client ID (name is irrelevant, application type is "Installed application") and click "Download JSON".
- Put the obtained
- Check you can fetch the sample data with
python licensing_location_data.py. This should output JSON.
- Put the sample data into mongo with
Would you like a crontab to collect data each month?
This assumes you are using the GDS dev environment and so have python and mongo installed.
- Check that you have virtualenv installed, if not
sudo apt-get install python-virtualenv.
- Navigate to the
performance-platformdirectory and run
./run_tests.sh. This will create a new virtualenv, install all dependencies and run the tests.
source venv/bin/activateto enable the virtualenv.