Skip to main content


Project description


This is a tiny GridFS (MongoDB) to web gateway based on the Pyramid web framework.


  • requires Python 2.6

  • create a virtualized environment using virtualenv

  • inside the virtualenv environment:

    bin/easy_install zopyx_gridfs
  • Create a server.ini configuration file containing:

    use = egg:zopyx_gridfs
    reload_templates = true
    debug_authorization = false
    debug_notfound = false
    debug_routematch = false
    debug_templates = true
    default_locale_name = en
    # MongoDB specific configurations
    mongo_host = localhost
    mongo_port = 27017
    database = test
    pipeline =
    use = egg:Paste#http
    host =
    port = 6543
    # Begin logging configuration
    keys = root
    keys = console
    keys = generic
    level = INFO
    handlers = console
    class = StreamHandler
    args = (sys.stderr,)
    level = NOTSET
    formatter = generic
    format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
  • Start the GridFS server using (this will start a HTTP server on localhost:6543):

    bin/paster serve server.ini


You can access file stored inside GridFS through HTTP:


where collection refers to collection used by GridFS and filename is the _id used to store the file inside GridFS.

The server will return a 404 response if the requested file could not be found.


ZOPYX Limited
c/o Andreas Jung
Charlottenstr. 37/1
D-72070 Tuebingen, Germany


  • switching to traversal instead of using URL parameters


  • better header handling


  • Initial version

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zopyx_gridfs-0.2.1.tar.gz (14.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page