amnesia 0.2.0
Amnesia eases web development by reloading WSGI apps and imported modules before each request.
Amnesia reloads modules on-the-fly as an aid for development of WSGI compliant applications. Amnesia is meant to be used like a standalone executable, running on the shell like amnesia mymodule my_wsgi_app or as a WSGI Middleware as follows:
>>> from wsgiref.simple_server import make_server
>>> from amnesia import Amnesia
>>>
>>> my_reloading_app = Amnesia("mymodule", "wsgi_app")
>>>
>>> if __name__ == "__main__":
>>> httpd = make_server("", 8080, my_reloading_app)
>>> print("Running on localhost:8080...")
>>> print("Modify your app and refresh your browser's page.")
>>> httpd.serve_forever()
>>>
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| amnesia-0.2.0.tar.gz (md5) | Source | 2010-05-17 | 3KB | 507 | |
| amnesia-0.2.0.zip (md5) | Source | 2010-05-17 | 5KB | 410 | |
- Author: Rafael Carlos Valverde
- Home Page: http://rafaelcv.github.com/amnesia
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Programming Language :: Python :: 3
- Topic :: Internet :: WWW/HTTP :: WSGI
- Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
- Package Index Owner: rafacv
- DOAP record: amnesia-0.2.0.xml
