./www/py-aiohttp, Async http client/server framework

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.5.4, Package name: py37-aiohttp-3.5.4, Maintainer: pkgsrc-users

HTTP client/server for asyncio (PEP 3156).

Features:
* Supports both Client and HTTP Server.
* Supports both Server WebSockets and Client WebSockets out-of-the-box.
* Web-server has Middlewares, Signals and pluggable routing.


Required to run:
[devel/py-setuptools] [converters/py-chardet] [devel/py-cython] [devel/py-attrs] [databases/py-multidict] [www/py-yarl] [devel/py-async-timeout] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: f64f337e6a5f6956c3d2b28d992fcdde316bca14
RMD160: dbbd6a9edc93631784ac714a55aaf52675b8f121
Filesize: 1071.921 KB

Version history: (Expand)


CVS history: (Expand)


   2019-01-15 23:12:20 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.5.4

3.5.4:
Bugfixes
- Fix stream .read() / .readany() / .iter_any() which used to return a
  partial content only in case of compressed content
   2019-01-11 11:11:42 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.5.3

3.5.3:

Bugfixes
- Fix type stubs for aiohttp.web.run_app(access_log=True) and fix edge case of \ 
access_log=True and the event loop being in debug mode.
- Fix aiohttp.ClientTimeout type annotations to accept None for fields
- Send custom per-request cookies even if session jar is empty
- Restore Linux binary wheels publishing on PyPI
   2019-01-08 20:05:56 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.5.2

3.5.2:

Features
- FileResponse from web_fileresponse.py uses a ThreadPoolExecutor to work with \ 
files asynchronously.
  I/O based payloads from payload.py uses a ThreadPoolExecutor to work with I/O \ 
objects asynchronously.
- Internal Server Errors in plain text if the browser does not support HTML.

Bugfixes
- Preserve MultipartWriter parts headers on write.

  Refactor the way how Payload.headers are handled. Payload instances now always
  have headers and Content-Type defined.

  Fix Payload Content-Disposition header reset after initial creation.
- Log suppressed exceptions in GunicornWebWorker.
- Remove wildcard imports.
- Use the same task for app initialization and web server handling in gunicorn \ 
workers.
  It allows to use Python3.7 context vars smoothly.
- Fix handling of chunked+gzipped response when first chunk does not give \ 
uncompressed data
- Replace collections.MutableMapping with collections.abc.MutableMapping to \ 
avoid a deprecation warning.
- Payload.size type annotation changed from Optional[float] to Optional[int].
- Ignore done tasks when cancels pending activities on web.run_app finalization.
   2018-12-31 12:19:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.5.1

3.5.1
- Fix a regression about ClientSession._requote_redirect_url modification in debug
  mode.
   2018-12-22 23:45:47 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-aiohttp: updated to 3.5.0

3.5.0 (2018-12-22)

Features

The library type annotations are checked in strict mode now.
Add support for setting cookies for individual request
Application.add_domain implementation
The default app in the request returned by test_utils.make_mocked_request can \ 
now have objects assigned to it and retrieved using the [] operator.
Make request.url accessible when transport is closed.
Add zlib_executor_size argument to Response constructor to allow compression to \ 
run in a background executor to avoid blocking the main thread and potentially \ 
triggering health check failures.
Enable users to set ClientTimeout in aiohttp.request
Don’t raise a warning if NETRC environment variable is not set and ~/.netrc \ 
file doesn’t exist.
Add default logging handler to web.run_app
If the Application.debug flag is set and the default logger aiohttp.access is \ 
used, access logs will now be output using a stderr StreamHandler if no handlers \ 
are attached. Furthermore, if the default logger has no log level set, the log \ 
level will be set to DEBUG.
Add method argument to session.ws_connect().
Sometimes server API requires a different HTTP method for WebSocket connection \ 
establishment.
For example, Docker exec needs POST.
Create a task per request handling.

Bugfixes

Enable passing access_log_class via handler_args
Return empty bytes with end-of-chunk marker in empty stream reader.
Accept CIMultiDictProxy instances for headers argument in web.Response constructor.
Don’t uppercase HTTP method in parser
Make method match regexp RFC-7230 compliant
Add app.pre_frozen state to properly handle startup signals in sub-applications.
Enhanced parsing and validation of helpers.BasicAuth.decode.
Change imports from collections module in preparation for 3.8.
Ensure Host header is added first to ClientRequest to better replicate browser
Fix forward compatibility with Python 3.8: importing ABCs directly from the \ 
collections module will not be supported anymore.
Keep the query string by normalize_path_middleware.
Fix missing parameter raise_for_status for aiohttp.request()
Bracket IPv6 addresses in the HOST header
Fix default message for server ping and pong frames.
Fix tests/test_connector.py typo and tests/autobahn/server.py duplicate loop def.
Fix false-negative indicator end_of_HTTP_chunk in StreamReader.readchunk function
Release HTTP response before raising status exception
Fix task cancellation when sendfile() syscall is used by static file handling.
Fix stack trace for asyncio.TimeoutError which was not logged, when it is caught \ 
in the handler.

Improved Documentation

Improve documentation of Application.make_handler parameters.
Fix BaseRequest.raw_headers doc.
Fix typo in TypeError exception reason in web.Application._handle
Make server access log format placeholder %b documentation reflect behavior and \ 
docstring.
Deprecations and Removals
Deprecate modification of session.requote_redirect_url
Deprecate stream.unread_data()
Deprecated use of boolean in resp.enable_compression()
Encourage creation of aiohttp public objects inside a coroutine
Drop dead Connection.detach() and Connection.writer. Both methods were broken \ 
for more than 2 years.
Deprecate app.loop, request.loop, client.loop and connector.loop properties.
Deprecate explicit debug argument. Use asyncio debug mode instead.
Deprecate body parameter in HTTPException (and derived classes) constructor.
Deprecate bare connector close, use async with connector: and await \ 
connector.close() instead.
Deprecate obsolete read_timeout and conn_timeout in ClientSession constructor.
   2018-09-06 15:53:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.4.4

3.4.4:
Fix installation from sources when compiling toolkit is not available

3.4.3:
Add app.pre_frozen state to properly handle startup signals in sub-applications.
   2018-09-03 09:32:36 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.4.2

3.4.2:
Fix iter_chunks type annotation
   2018-08-29 09:01:06 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-aiohttp: updated to 3.4.1

3.4.1:
- Fix empty header parsing regression.
- Fix BaseRequest.raw_headers doc.
- Fix documentation building on ReadTheDocs