Apache? Python? Why!?
Nginx maybe?
http { upstream database { postgres_server 127.0.0.1 dbname=test user=test password=test; } server { location / { postgres_pass database; postgres_query "SELECT * FROM cats"; rds_json on; } } }
https://github.com/FRiCKLE/ngx_postgres/
https://github.com/agentzh/rds-json-nginx-module
edit: reformated code block
Also, you could use LUA with nginx to increase the flexibility (if the lack of it was what you mean).
[0] http://openresty.org/
I think this is what Taobao uses/used: https://github.com/alibaba/tengine
Apache? Python? Why!?
Nginx maybe?
I'm actually using it... (and planning to use for much deeper things tho).https://github.com/FRiCKLE/ngx_postgres/
https://github.com/agentzh/rds-json-nginx-module
edit: reformated code block