OpenBudget/open-budget-data-api

Name: open-budget-data-api

Owner: ?????? ?? ??????

Description: Flask based data api for openspending

Created: 2016-09-26 17:05:03.0

Updated: 2018-05-24 11:25:40.0

Pushed: 2018-05-24 11:25:39.0

Homepage: null

Size: 86

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

oki-py

Travis Coveralls

{{ DESCRIPTION }}

Documentation

{{ DOCUMENTATION }}

Getting started
epare env if needed
nv venv
ce venv/bin/activate
install -r requirements.txt
rt PYTHONPATH=.:$PYTHONPATH

art app
on rest/main.py

Browse to http://localhost:8888/api

Browse to http://localhost:8888/graphql

Build package
on setup.py build
Build Docker
er build .
Graphql

Example of a graphql query:


dget(first: 10, year: 2016, where: "code like '002041%'", orderBy: "-net_allocated") {
edges {
  node {
    code, year, title, netAllocated
    supports {
      edges {
        node {
          subject, title, amountAllocated, 
          entity {
            name, companyAddress
          }
        }
      }
    }                  
  }
}


Contributing

Please read the contribution guideline:

How to Contribute

Thanks!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.