Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/OpenBounds/Processing

Script for processing data from OpenBounds projects
https://github.com/OpenBounds/Processing

Last synced: 3 months ago
JSON representation

Script for processing data from OpenBounds projects

Awesome Lists containing this project

README

        

## 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.
```