I’ve finally updated NWSGI to use IronPython 2.7: NWSGI 2.1. The only other change is that NWSGI.dll will be added to the GAC by default by the installer.
NWSGI 3 Update
The big feature of NWSGI 3 is decoupling it from IIS and ASP.NET, which involved creating an abstraction layer for web servers (which is funny, because that’s what WSGI is). Shortly after I started that, the OWIN project started, which has essentially the same goal. Since I hate duplicating effort, NWSGI 3 is on hold until OWIN stabilizes, which hopefully shouldn’t be too much longer.
Somewhere in between, I think. It already implements (in 2.0) most of
ReplyDeletethe same extensions as mod_wsgi, which form the basis of 3333, and
using the same unicode encoding scheme (converting to latin-1), but I
haven't checked for full 3333 compliance (to be honest, I completely
forgot about 3333 when I did this update).
The only important (backward-incompatible) change from 333 to 3333 is "reading from bottomless input stream is now possible." The input stream now has an end. You don't need to know how many bytes to read - which immediately solves encoding:chunked HTTP request handling, as these don't have content size or has it set to -1.
ReplyDeleteWith 333 you could read from input indefinitely and block on read indefinitely if you don't know the size of incoming stream.
Everything else is largely restatement / clarification of 333.
NWSGI doesn't do anything special with the input stream; it just wraps
ReplyDeleteHttpRequest.InputStream. I think it has the same behavior that PEP 3333 specifies, but I haven't tested it.
What's nice about PEP 3333 is that it just codifies what everyone was doing anyway.
How I can use IronPython with Django? Is it possible for today?
ReplyDeleteIs NWSGI 2.1 per PEP333 or PEP3333?
ReplyDeleteYou tend to reside in a balance as well as a harmonious life
ReplyDeletewhich can be free from undue pressure and arguments payday loans as of last fall, the federal government also began disqualifying prospective borrowers with unpaid debts that were sent to
collection agencies or charged off inside the last 5 years.