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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
amnesia-0.2.0.zip
(6.0 kB
view details)
amnesia-0.2.0.tar.gz
(3.5 kB
view details)
File details
Details for the file amnesia-0.2.0.zip
.
File metadata
- Download URL: amnesia-0.2.0.zip
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443c77ef0910e9df624d420cc1163835f0006451aa08c4fea49f91311527b951 |
|
MD5 | e51f9201efa7994efde1e7f04c52a49c |
|
BLAKE2b-256 | 623105013710b24daeaf43fdc160c991cb653f99acb830b77487462d025faf0e |
File details
Details for the file amnesia-0.2.0.tar.gz
.
File metadata
- Download URL: amnesia-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 872488421bf785100dc154da56caa142e0dafed04ed6c237f884f750e1f6d8ea |
|
MD5 | a53c565fda34d46075059f667b58c305 |
|
BLAKE2b-256 | e96f73ff85aa799bc94343687a9e5d011a973b7ec902d400dd6d73cdb2c126f8 |