Skip to content

getodk/pyxform-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

pyxform-http is a Flask-based web service that uses pyxform to convert a XLSForm to an ODK XForm. Thanks to Alex Patow for doing much of the actual work on this in xlsform-api.

Install requirements

  • Python 3
  • Java 8

Run locally

pip install --requirement requirements.txt
FLASK_APP=app/main.py:app FLASK_DEBUG=1 flask run --port=5001

Run in Docker

docker build --tag pyxform-http .
docker run --detach --publish 5001:80 pyxform-http

Test forms

bash test.sh

The test script builds, runs, stops, and removes a pyxform-http-tester container

Notes

  • We use port 5001 because 5000 is used by ControlCenter on macOS.