This is the API for the Open Budget data. You can perform Database Queries and download data
Create a virtual environment (if necessary) and install the requirements
pyvenv venv
source venv/bin/activate
pip install -r requirements.txt
export PYTHONPATH=.:$PYTHONPATH
Instead of setting up the database locally, you can use a different database host
export DATABASE_URL=<db_url>
Check the current hosted database url
At the time of writing it was postgresql://readonly:readonly@data-next.obudget.org:5432/budgetkey
Start app through ./start_server.sh
./start_server.sh
Now you can browse to the app, for example:
http://localhost:8000/api/query?query=select * from raw_budget
python setup.py build
docker build .
Please read the contribution guideline:
Thanks!