Sunday, June 12, 2011

NWSGI 2.1 Now Available

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.

6 comments:

  1. Somewhere in between, I think. It already implements (in 2.0) most of
    the 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).

    ReplyDelete
  2. 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.

    With 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.

    ReplyDelete
  3. NWSGI doesn't do anything special with the input stream; it just wraps
    HttpRequest.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.

    ReplyDelete
  4. How I can use IronPython with Django? Is it possible for today?

    ReplyDelete
  5. Is NWSGI 2.1 per PEP333 or PEP3333?

    ReplyDelete
  6. You tend to reside in a balance as well as a harmonious life
    which 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.

    ReplyDelete