GithubHelp home page GithubHelp logo

isabella232 / grasshopper-retriever Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cfpb/grasshopper-retriever

0.0 0.0 0.0 896 KB

Fetches public address data for use by the grasshopper-loader

License: Creative Commons Zero v1.0 Universal

JavaScript 96.90% Shell 3.10%

grasshopper-retriever's Introduction

Grasshopper Retriever

Fetches public address data for use by the grasshopper-loader.

Dependencies

Installation

  • Clone the repo

Local installation

  • Install GDAL 1.11.2
  • Install node 0.12.x
  • npm install

Dockerized installation

  • docker build --rm --tag=<your-image:your-tag> .
OR
  • docker pull hmda/retriever:0.3

Usage

The retriever is a command-line application that can be used in the following ways:

Local Usage

Run ./retriever.js with the following options:

  • -f, --file Required The metadata file that contains data source informatation. See data.json for example schemas.
  • -b, --bucket An AWS S3 bucket where the data should be loaded after retrieval.
  • -d, --directory The directory relative to the current directory or an S3 bucket's root, where data should be deposited. If neither a bucket not a directory is provided, the retriever will check for file changes but will not load them anywhere. This is useful for monitoring endpoints via a scheduler. If a bucket is provided with no directory, data will be loaded to the bucket's root.
  • -p, --profile Default: default The aws credentials profile in ~/.aws/credentials to use. Environment variables will override this option.
  • -m, --match A string or regex that names from the metafile must match in order to be retrieved.
  • -q, --quiet Default: false Suppresses logging. Useful for automated error testing without polluting logs.

Dockerized Usage

  • Run ./docker-run.sh <image-name:tag-name> <rest.. of.. args.. from.. above>
  • The shell script is used to automatically set up a volume containing your ~/.aws/credentials file

Testing

Local testing

  • npm test

Dockerized testing

  • ./docker-test.sh <image-name:tag-name>

Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy

grasshopper-retriever's People

Contributors

wpears avatar virtix avatar scotchester avatar hkeeler avatar anselmbradford avatar contolini avatar marcesher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.