Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Service consuming data-converters
JavaScript Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
convert
testdata
.gitignore
.travis.yml
README.md
fabfile.py
local_settings.py
local_settings.py.dist
requirements.txt
runserver.py
settings.py
test_settings.py
website.py

README.md

Data Converters

Build
Status

Web services for converting data from one format to another. The converters accept data as a query parameter named url. There's already CORS support and JSOP (add callback parameter to the URL). Empty column names will be auto-generated with column_1, column_2, etc. Duplicate column names will have _n added as well. For instance, two columns with name date will be date_1, date_2.

User stories are on Google Docs, if you want to add more, please file an issue.

Please bugs for any issues you see.

CSV -> JSON

For CSV input files, add type=csv to the url.

Example - http://converter.dev.okfn.org/api/convert/json?url=http://resources.opendatalabs.org/u/nigelb/data-converters/csv/simple.csv

Example with type - http://converter.dev.okfn.org/api/convert/json?url=http://resources.opendatalabs.org/u/nigelb/data-converters/csv/simple.csv&type=csv

Example with JSONP - http://converter.dev.okfn.org/api/convert/json?url=http://resources.opendatalabs.org/u/nigelb/data-converters/csv/simple.csv&callback=callback

XLS(X) -> JSON

For XLS input files add type=xls to the URL, and for XLSX files, add type=xls&excel_type=xlsx.

Example - http://converter.dev.okfn.org/api/convert/json?url=http://resources.opendatalabs.org/u/nigelb/data-converters/xls/simple.xls

Example with type - http://converter.dev.okfn.org/api/convert/json?url=http://resources.opendatalabs.org/u/nigelb/data-converters/xls/simple.xls&type=xls

Example of xlsx file with type - http://converter.dev.okfn.org/api/convert/json?url=http://resources.opendatalabs.org/u/nigelb/data-converters/xls/simple.xlsx&type=xls&excel_type=xlsx

Something went wrong with that request. Please try again.