Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (14 sloc) 0.376 kb
#!/usr/bin/env python
import fileinput
import urllib
import urllib2
payload = (
('data', "\n".join(fileinput.input())),
('format', 'text'),
('keyword_case', 'upper'),
('reindent', True),
('n_indents', 2),
)
response = urllib2.urlopen('http://sqlformat.appspot.com/format/',
urllib.urlencode(payload))
print response.read()
Jump to Line
Something went wrong with that request. Please try again.