Skip to content

Script for processing data from OpenBounds projects

License

Notifications You must be signed in to change notification settings

nathancahill/Processing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Processing

Script for processing data from OpenBounds projects

Python Environment

Create a virtual environment and install the requirements:

$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

validate.py

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.py

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.

About

Script for processing data from OpenBounds projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%