./www/py-sanic, Microframework based on uvloop, httptools, and learnings of flask

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


Branch: CURRENT, Version: 20.9.1, Package name: py37-sanic-20.9.1, Maintainer: pkgsrc-users

Sanic is a Flask-like Python 3.5+ web server that's written to go fast. It's
based on the work done by the amazing folks at magicstack.

On top of being Flask-like, Sanic supports async request handlers. This means
you can use the new shiny async/await syntax from Python 3.5, making your code
non-blocking and speedy.


Required to run:
[devel/py-setuptools] [devel/py-uvloop] [www/py-websockets] [textproc/py-ujson] [www/py-httptools] [devel/py-aiofiles] [databases/py-multidict] [lang/python37] [www/py-httpx]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 5ef6504b4ceebedbe6fd86b82eb498765420476d
RMD160: 9e300d42d4d7806e331d5ab43ae17b0ab9e0fbcb
Filesize: 144.122 KB

Version history: (Expand)


CVS history: (Expand)


   2020-10-28 00:07:42 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-sanic: updated to 20.9.1

Version 20.9.1

Bugfixes
Fix static route registration on blueprints
Removes duplicate headers in ASGI streaming body
   2020-10-01 08:53:12 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-sanic: updated to 20.9.0

Version 20.9.0

Features
* Pass subprotocols in websockets (both sanic server and ASGI)
* Automatically set test_mode flag on app instance
* Add new unified method for updating app values
* Adds WEBSOCKET_PING_TIMEOUT and WEBSOCKET_PING_INTERVAL configuration values
* httpx version dependency updated, it is slated for removal as a dependency in \ 
v20.12
* Added auto, text, and json fallback error handlers (in v21.3, the default will \ 
change form html to auto)

Bugfixes
* Resolves exception from unread bytes in stream

Deprecations and Removals
* config.from_envar, config.from_pyfile, and config.from_object are deprecated \ 
and set to be removed in v21.3

Developer infrastructure
* Update isort calls to be compatible with new API
* Remove version section from setup.cfg
* Adding --strict-markers for pytest

Improved Documentation
* Add explicit ASGI compliance to the README
   2020-06-29 16:29:44 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
Add ALTERNATIVES
   2020-06-29 16:29:20 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-sanic: updated to 20.6.3

Version 20.6.3

Bugfixes
* Revert change to multiprocessing mode

Version 20.6.2

Features
* Socket binding implemented properly for IPv6 and UNIX sockets

Version 20.6.1

Features
* Add version parameter to websocket routes
* Add sanic as an entry point command
* Add handler names for websockets for url_for usage

Bugfixes
* Bug fix for host parameter issue with lists
* Fix static _handler pickling error
* Fix reloader on OSX py38 and Windows
* Reverse named_response_middlware execution order, to match normal response \ 
middleware execution order
* Fix pickle error when attempting to pickle an application which contains \ 
websocket routes

Deprecations and Removals
* Deprecate body_bytes to merge into body

Developer infrastructure
* Fix naming of CI test env on Python nightlies
* Adjust websockets version to setup.py
* Wrap run()'s "protocol" type annotation in Optional[]

Improved Documentation
* Update docs to clarify response middleware execution order
* Fixing rst format issue that was hiding documentation
   2020-05-15 10:32:35 by Adam Ciarcinski | Files touched by this commit (5) | Package updated
Log message:
py-sanic: updated to 20.3.0

20.3.0:
Unknown changes
   2020-05-11 07:34:08 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
py-sanic: fix for newer httpx
   2020-01-08 22:03:21 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-sanic: updated to 19.12.2

Version 19.12.0

Bugfixes

Fix blueprint middleware application

Currently, any blueprint middleware registered, irrespective of which blueprint \ 
was used to do so, was being applied to all of the routes created by the @app \ 
and @blueprint alike.

As part of this change, the blueprint based middleware application is enforced \ 
based on where they are registered.

If you register a middleware via @blueprint.middleware then it will apply only \ 
to the routes defined by the blueprint.
If you register a middleware via @blueprint_group.middleware then it will apply \ 
to all blueprint based routes that are part of the group.
If you define a middleware via @app.middleware then it will be applied on all \ 
available routes
Fix url_for behavior with missing SERVER_NAME

If the SERVER_NAME was missing in the app.config entity, the url_for on the \ 
request and app were failing due to an AttributeError. This fix makes the \ 
availability of SERVER_NAME on our app.config an optional behavior.

Improved Documentation

Move docs from RST to MD

Moved all docs from markdown to restructured text like the rest of the docs to \ 
unify the scheme and make it easier in the future to update documentation.

Fix documentation for get and getlist of the request.args

Add additional example for showing the usage of getlist and fix the \ 
documentation string for request.args behavior

Version 19.6.3

Enable Towncrier Support
As part of this feature, towncrier is being introduced as a mechanism to \ 
partially automate the process of generating and managing change logs as part of \ 
each of pull requests.

Improved Documentation
Documentation infrastructure changes
Enable having a single common CHANGELOG file for both GitHub page and documentation
Fix Sphinix deprecation warnings
Fix documentation warnings due to invalid rst indentation
Enable common contribution guidelines file across GitHub and documentation via \ 
CONTRIBUTING.rst

Version 19.6.2

Features
* Remove aiohttp dependencey and create new SanicTestClient based upon requests-async
* Added ASGI support (Beta)
* Add Configure support from object string

Bugfixes
* Add missing handle for Expect header.
* Allow to disable Transfer-Encoding: chunked.
* Fix graceful shutdown.
* Strict Slashes behavior fix

Deprecations and Removals
* Drop dependency on distutil
* Drop support for Python 3.5
* Deprecate route removal.

Warning
Sanic will not support Python 3.5 from version 19.6 and forward. However, \ 
version 18.12LTS will have its support period extended thru December 2020, and \ 
therefore passing Python's official support version 3.5, which is set to expire \ 
in September 2020.
   2019-04-26 15:14:25 by Maya Rashish | Files touched by this commit (473)
Log message:
Omit mentions of python 34 and 35, after those were removed.

- Includes some whitespace changes, to be handled in a separate commit.