Public | Automated Build

Last pushed: 2 months ago
Short Description
Budget Key Data API service
Full Description

oki-py


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

Docker Pull Command
Owner
budgetkey
Source Repository