
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
aiohttp-utils
.. image:: https://badgen.net/pypi/v/aiohttp-utils :target: https://pypi.org/project/aiohttp-utils/ :alt: Latest version
.. image:: https://badgen.net/travis/sloria/aiohttp-utils :target: https://travis-ci.org/sloria/aiohttp-utils :alt: Travis-CI
aiohttp-utils provides handy utilities for building aiohttp.web <https://aiohttp.readthedocs.io/>
_ applications.
Everything is optional. You can use as much (or as little) of this toolkit as you need.
.. code-block:: python
from aiohttp import web
from aiohttp_utils import Response, routing, negotiation
app = web.Application(router=routing.ResourceRouter())
# Method-based handlers
class HelloResource:
async def get(self, request):
name = request.GET.get('name', 'World')
return Response({
'message': 'Hello ' + name
})
app.router.add_resource_object('/', HelloResource())
# Content negotiation
negotiation.setup(
app, renderers={
'application/json': negotiation.render_json
}
)
::
$ pip install aiohttp-utils
Full documentation is available at https://aiohttp-utils.readthedocs.io/.
MIT licensed. See the bundled LICENSE <https://github.com/sloria/aiohttp-utils/blob/master/LICENSE>
_ file for more details.
FAQs
Handy utilities for aiohttp.web applications.
We found that aiohttp-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.