Ver. 1.1.3 - 2016-Feb-19¶
Make sure the asyncio.coroutine decorator is used by all pulsar coroutines
This allows to use pulsar to write python 3.5 compatible code with the
async/await syntax. 709f9ff
Documentation¶
Http¶
Ver. 1.1.2 - 2016-Feb-04¶
- Removed releaseapplication and created a new repository for it
- waitmethod in- greenioapp accepts an extra parameter for checking if in child greenlet
- Specialised MustBeInChildGreenleterror for functions which should be called on a child greenlet
- Critical bug fix in pubsubsubscribe method for Redis backend
- Added an asynchronous wsgi.file_wrapperto the WSGI environment
- Added file_responseutility to serve local files
- Introduced pulsar.ensure_futurein place ofpulsar.async
Ver. 1.1.1 - 2016-Jan-06¶
- Full support for python 3.5
- Pulsar 1.1.x is the last minor release (“major.minor.micro”) to support python 3.4
- From pulsar 1.2.x, support for python 3.4 will be dropped and the new async-await syntax will be used in the whole codebase
Core¶
- Added CI for python 3.5
- Added debugproperties to allAsyncObject. The property returns the event loop debug mode flag
Http¶
- Backward incompatible changes with API much closer to requests and far better support for streaming both uploads and downloads
- Added contentattribute toHttpResponse, in line with requests
- Ability to pass stream=Trueduring a request, same API as python requests
- Added the rawproperty to the Http Response, it can be used in conjunction withstreamto stream http data. Similar API to requests
- Renamed proxy_infotoproxies, same API as python requests
- You can now pass proxiesdictionary during a request
- Stream uploads by passing a generator as dataparameter
- Better websocket upgrade process
- Tidy up CONNECTrequest url (for tunneling)
- Added tests for proxyserver example using requests
Wsgi¶
- Both wsgiandhttpapps use the samepulsar.utils.httpurl.http_chunksfunction for transfer-encodingchunked
- render_errorescapes the Exception message to prevent XSS
Datastore¶
- Better pulsards_urlfunction, default value formcfg.data_store
- key_value_saveset to empty list by default (no persistence)
Examples¶
- Refactored proxy server example
- Updated django chat example so that warning are no longer issued
