/usr/lib/python2.7/dist-packages/oops_wsgi-0.0.10.egg-info is in python-oops-wsgi 0.0.10-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | Metadata-Version: 1.1
Name: oops_wsgi
Version: 0.0.10
Summary: OOPS wsgi middleware.
Home-page: https://launchpad.net/python-oops-wsgi
Author: Launchpad Developers
Author-email: launchpad-dev@lists.launchpad.net
License: UNKNOWN
Description: ************************************************************
        python-oops-wsgi: Error report integration into wsgi servers
        ************************************************************
        
            Copyright (c) 2011, Canonical Ltd
        
            This program is free software: you can redistribute it and/or modify
            it under the terms of the GNU Lesser General Public License as published by
            the Free Software Foundation, version 3 only.
        
            This program is distributed in the hope that it will be useful,
            but WITHOUT ANY WARRANTY; without even the implied warranty of
            MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
            GNU Lesser General Public License for more details.
        
            You should have received a copy of the GNU Lesser General Public License
            along with this program.  If not, see <http://www.gnu.org/licenses/>.
            GNU Lesser General Public License version 3 (see the file LICENSE).
        
        The oops_wsgi package provides integration glue between wsgi web servers and
        the oops error reporting system (http://pypi.python.org/pypi/oops).
        
        Dependencies
        ============
        
        * Python 2.6+
        
        * oops (http://pypi.python.org/pypi/oops)
        
        * paste
        
        Testing Dependencies
        ====================
        
        * subunit (http://pypi.python.org/pypi/python-subunit) (optional)
        
        * testtools (http://pypi.python.org/pypi/testtools)
        
        Usage
        =====
        
        oops_wsgi provides integration with an oops.Config, permitting errors in your
        web application to be gathered centrally, with tracebacks and other diagnostic
        information.
        
        Typically, something like this:
        
        * Setup your configuration::
        
          >>> from oops import Config
          >>> config = Config()
        
        Note that you will probably want at least one publisher, or your reports will
        be discarded.
        
        * Add in wsgi specific hooks to the config::
        
          >>> oops_wsgi.install_hooks(config)
        
        This is a convenience function - you are welcome to pick and choose the creation
        or filter hooks you want from oops_wsgi.hooks.
        
        * Create your wsgi app as normal, and then wrap it::
        
          >>> app = oops_wsgi.make_app(app, config)
        
        If any exception bubbles up through this middleware, an oops will be logged. If
        the body of the request had not started, then a custom page is shown that
        shows the OOPS id, and the exception is swallowed. Exceptions that indicate
        normal situations like end-of-file on a socket do not trigger OOPSes. If the
        OOPS is filtered, or no publishers are configured, then the exception will
        propogate up the stack - the oops middleware cannot do anything useful in these
        cases. (For instance, if you have a custom 404 middleware above the oops
        middleware in the wsgi stack, and filter 404 exceptions so they do not create
        reports, then if the oops middleware did anything other than propogate the
        exception, your custom 404 middleware would not work.
        
        If the body had started, then there is no way to communicate the OOPS id to the
        client and the exception will propogate up the wsgi app stack.
        
        You can customise the error page if you supply a helper that accepts (environ,
        report) and returns HTML to be sent to the client.
        
           >>> def myerror_html(environ, report):
           ...    return '<html><body><h1>OOPS! %s</h1></body></html>' % report['id']
           >>> app = oops_wsgi.make_app(app, config, error_render=myerror_html)
        
        Or you can supply a string template to be formatted with the report.
        
           >>> json_template='{"oopsid" : "%(id)s"}'
           >>> app = oops_wsgi.make_app(app, config, error_template=json_template)
        
        For more information see pydoc oops_wsgi.
        
        Installation
        ============
        
        Either run setup.py in an environment with all the dependencies available, or
        add the working directory to your PYTHONPATH.
        
        
        Development
        ===========
        
        Upstream development takes place at https://launchpad.net/python-oops-wsgi.
        To setup a working area for development, if the dependencies are not
        immediately available, you can use ./bootstrap.py to create bin/buildout, then
        bin/py to get a python interpreter with the dependencies available.
        
        To run the tests use the runner of your choice, the test suite is
        oops_wsgi.tests.test_suite.
        
        For instance::
        
          $ bin/py -m testtools.run oops_wsgi.tests.test_suite
        
        If you have testrepository you can run the tests with that::
        
          $ testr run
        
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
 |