Sign inSign up

budgetkey/open-budget-data-api

By budgetkey

•Updated about 3 years ago

Budget Key Data API service

Image
0

3.0K

budgetkey/open-budget-data-api repository overview

⁠oki-py

Travis Coveralls

{{ DESCRIPTION }}

⁠Documentation

{{ DOCUMENTATION }}

⁠Getting started
# prepare env if needed
pyvenv venv
source venv/bin/activate
pip install -r requirements.txt
export PYTHONPATH=.:$PYTHONPATH

# start app
python rest/main.py

Browse to http://localhost:8888/api⁠

Browse to http://localhost:8888/graphql⁠

⁠Build package
python setup.py build
⁠Build Docker
docker build .
⁠Graphql

Example of a graphql query:

{
  budget(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!

Tag summary

Content type

Image

Digest

sha256:ab7531ade…

Size

108.3 MB

Last updated

about 3 years ago

docker pull budgetkey/open-budget-data-api