Metadata-Version: 2.0
Name: wsgi-vmprof
Version: 0.0.1
Summary: UNKNOWN
Home-page: https://github.com/c-bata/wsgi-vmprof
Author: Masashi Shibata <contact@c-bata.link>
Author-email: contact@c-bata.link
License: MIT License
Keywords: web wsgi vmprof
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Environment :: Web Environment
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: vmprof

===========
wsgi-vmprof
===========

**wsgi-vmprof** WSGI Middleware for integrating vmprof.

* https://github.com/vmprof/vmprof-python
* https://github.com/vmprof/vmprof-server

How to use
==========

Installation
------------

.. code-block:: console

   $ pip install wsgi-vmprof

Basic Usage
-----------

.. code-block:: python

   import time

   import bottle
   from wsgi_vmprof import VmprofMiddleware

   app = bottle.default_app()


   @app.route('/')
   def index():
       time.sleep(1)
       return "Hello world!!"

   if __name__ == "__main__":
       # Add wsgi-vmprof as a WSGI middleware!
       app = VmprofMiddleware(app)
       bottle.run(app=app)

Requirements
============

- Python 3.3 or later
- vmprof

License
=======

This software is licensed under the MIT License.


