Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/OpenBounds/Processing
- Owner: OpenBounds
- License: mit
- Created: 2015-11-19T13:51:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T21:33:44.000Z (over 1 year ago)
- Last Synced: 2024-05-15T04:38:21.514Z (6 months ago)
- Language: Python
- Size: 46.2 MB
- Stars: 23
- Watchers: 6
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 JSONFILESCHEMA: 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] DIRECTORYDIRECTORY: Directory to upload. Required.
Options:
--help Show this message and exit.
```