Skip to main content

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


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)

Uploaded Source

amnesia-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

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

Hashes for amnesia-0.2.0.zip
Algorithm Hash digest
SHA256 443c77ef0910e9df624d420cc1163835f0006451aa08c4fea49f91311527b951
MD5 e51f9201efa7994efde1e7f04c52a49c
BLAKE2b-256 623105013710b24daeaf43fdc160c991cb653f99acb830b77487462d025faf0e

See more details on using hashes here.

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

Hashes for amnesia-0.2.0.tar.gz
Algorithm Hash digest
SHA256 872488421bf785100dc154da56caa142e0dafed04ed6c237f884f750e1f6d8ea
MD5 a53c565fda34d46075059f667b58c305
BLAKE2b-256 e96f73ff85aa799bc94343687a9e5d011a973b7ec902d400dd6d73cdb2c126f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page