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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ee0c7ed1c9899847698911aafcbcc4a8c49a2e5921a89c8e6465e30298991f |
|
MD5 | ffb9c32cae9a9eeff8be6043361f65c7 |
|
BLAKE2b-256 | 3b98a8876584e8bb3f938f434a935083d486334de1b70d3a9ee912dd20a0943f |