mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
4.5 KiB
JSON
1 line
4.5 KiB
JSON
[{"user_id": 2458, "stars": [], "topic_id": 8422, "date_created": 1298489773.645335, "message": "I have some Python utility scripts that would benefit from having a simple web interface for text input. Not worth setting up Django, obviously. Is the easiest way to pass some input through to Python and then return the output using a lightweight framework such as Bottle or Flask?", "group_id": 292, "id": 190259}, {"user_id": 12201, "stars": [], "topic_id": 8422, "date_created": 1298490593.7346449, "message": "CGI might be fine but you'll likely be reinventing the validation, security, etc, you get for 'free' from frameworks. It's not obvious to me that it's not worth setting up something like Django; depends on your users.", "group_id": 292, "id": 190386}, {"user_id": 14356, "stars": [], "topic_id": 8422, "date_created": 1298492969.3076451, "message": "IMHO I would use web2py. Extract it anywhere, set up database adapters and you are ready. Create a model. If you just want to collect validated data (data entry) you are done. No coding required. If you change your model, the database will be adjusted automatically as will be the code, you are done.", "group_id": 292, "id": 190735}, {"user_id": 1152, "stars": [{"date_created": 1298496806.453512, "user_id": 4893}], "topic_id": 8422, "date_created": 1298494017.5635631, "message": "web.py, http://webpy.org/ or cherrypy come into mind in addition to flask and bottle.", "group_id": 292, "id": 190938}, {"user_id": 14444, "stars": [{"date_created": 1298915943.406146, "user_id": 3617}], "topic_id": 8422, "date_created": 1298493450.944694, "message": "and what about pylons?", "group_id": 292, "id": 190852}, {"user_id": 8391, "stars": [], "topic_id": 8422, "date_created": 1298507663.987119, "message": "check it out", "group_id": 292, "id": 194126}, {"user_id": 3748, "stars": [], "topic_id": 8422, "date_created": 1298506865.623909, "message": "that would be a good open source project, a web front end to a script using i.e. argparse.", "group_id": 292, "id": 193858}, {"user_id": 8391, "stars": [], "topic_id": 8422, "date_created": 1298507659.9566531, "message": "Esp w/ the wuerzburg debug page", "group_id": 292, "id": 194122}, {"user_id": 8391, "stars": [], "topic_id": 8422, "date_created": 1298507639.1320331, "message": "Flask.", "group_id": 292, "id": 194118}, {"user_id": 1782, "stars": [], "topic_id": 8422, "date_created": 1298535695.0021999, "message": "Flask for sure", "group_id": 292, "id": 196049}, {"user_id": 844, "stars": [], "topic_id": 8422, "date_created": 1298589124.0239589, "message": "Maybe you are looking for something like this Chrome Python add in? https://chrome.google.com/extensions/detail/gdiimmpmdoofmahingpgabiikimjgcia", "group_id": 292, "id": 203515}, {"user_id": 7018, "stars": [], "topic_id": 8422, "date_created": 1298603896.7241509, "message": "@dartdog Cool extension, but kind of slow and running an old python.", "group_id": 292, "id": 205383}, {"user_id": 5701, "stars": [], "topic_id": 8422, "date_created": 1298649200.0595341, "message": "Awww. Convore hates Python. :(", "group_id": 292, "id": 208869}, {"user_id": 5701, "stars": [], "topic_id": 8422, "date_created": 1298649180.2268479, "message": "from twisted.internet import reactor\nfrom twisted.web.server import NOT_DONE_YET, Site\nfrom twisted.web.resource import Resource\nfrom twisted.internet.utils import getProcessOutput\n\nclass Runner(Resource):\n isLeaf = True\n def render_GET(self, request):\n request.setHeader('content-type', 'text/plain')\n args = request.args['args']\n d = getProcessOutput(args[0], args[1:])\n def finished(output):\n request.write(output)\n request.finish()\n d.addCallback(finished)\n return NOT_DONE_YET\n\nreactor.listenTCP(8080, Site(Runner()))\nreactor.run()", "group_id": 292, "id": 208866}, {"user_id": 242, "stars": [{"date_created": 1298677385.1824059, "user_id": 1}, {"date_created": 1298956066.2789731, "user_id": 6671}, {"date_created": 1299119386.228971, "user_id": 4546}], "topic_id": 8422, "date_created": 1298664612.3981869, "message": "Convore hates pre-formatted stuff.", "group_id": 292, "id": 211020}, {"user_id": 13893, "stars": [], "topic_id": 8422, "date_created": 1298854073.198231, "message": "+1 for flask", "group_id": 292, "id": 223033}, {"user_id": 13263, "stars": [], "topic_id": 8422, "date_created": 1298887938.9105949, "message": "http://packages.python.org/weblayer is simple and then extensible as and when needed.", "group_id": 292, "id": 224727}] |