Integrations aioworkers with aiohttp
Project description
The package to integration aioworkers with aiohttp
Features
Building of the routing from config like swagger
Start aiohttp project with multiprocessing mode
Example
http:
port: 8080
access_log:
format: %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"
app:
routes:
- mymodule.route_table
- mymodule.route
resources:
/html:
static: static/html
/css:
static:
path: static/css
api:
prefix: /api
pets:
/pet/{pet_id}:
get:
tags: [Pet]
handler: mymodule.mycoro
description: Info about pet
parameters:
- name: pet_id
in: path
type: integer
minimum: 0
responses:
200:
description: OK
400:
description: Validation error
404:
description: Not found
logging:
version: 1
formatters:
access:
format: %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aioworkers_aiohttp-0.7.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dab41ed101069d12620963a6b13da70926326b3cc876b88ba4a237c158cd3bef |
|
MD5 | 5786f697094f913317f566b9f56f7a05 |
|
BLAKE2b-256 | 80a57c85f14e5b586e7a3155497300577ed2ca28f3e2aa7ccf8417c42aa08cfb |