Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a565489fd2
Fetching contributors…

Cannot retrieve contributors at this time

executable file 37 lines (29 sloc) 0.843 kB
# !/usr/bin/env python
#
# Copyright 2008 Gabriel Handford
#
"""Shrub: Amazon S3 Proxy (http://shrub.appspot.com)"""
__author__ = "Gabriel Handford"
__email__ = "gabrielh@gmail.com"
__copyright__= "Copyright (c) 2008, Gabriel Handford"
__license__ = "MIT"
__url__ = "http://shrub.appspot.com"
import sys
import os
import logging
sys.path = [ os.path.join(os.path.dirname(__file__), "lib") ] + sys.path
import re
import datetime
import wsgiref.handlers
from google.appengine.ext import webapp
from app.controllers.base import PrintEnvironmentHandler
from app.controllers.s3 import DefaultPage, S3Page
def main():
application = webapp.WSGIApplication([
('/', DefaultPage),
('/shrub-env', PrintEnvironmentHandler),
('/.*', S3Page),
], debug=True)
wsgiref.handlers.CGIHandler().run(application)
if __name__ == '__main__':
main()
Jump to Line
Something went wrong with that request. Please try again.