Script for processing data from OpenBounds projects
Create a virtual environment and install the requirements:
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
Validate a JSON file against a JSON schema:
$ python scripts/validate.py schemas/source.json sources/US/MT/antelope.json
Usage:
validate.py [OPTIONS] SCHEMA JSONFILE
SCHEMA: JSON schema to validate against. Required.
JSONFILE: JSON file to validate. Required.
Options:
--help Show this message and exit.
Upload a directory to S3. Requires environment variables AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
and AWS_BUCKET
to be set.
$ python scripts/upload.py generated/
Usage:
Usage: upload.py [OPTIONS] DIRECTORY
DIRECTORY: Directory to upload. Required.
Options:
--help Show this message and exit.