Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Amnesia eases web development by reloading WSGI apps and imported modules before each request.

Project description

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()
>>>

Project details


Release history Release notifications

This version
History Node

0.2.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
amnesia-0.2.0.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None May 17, 2010
amnesia-0.2.0.zip (6.0 kB) Copy SHA256 hash SHA256 Source None May 17, 2010

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page