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
Development
Check code:
hatch run lint:all
Format code:
hatch run lint:fmt
Run tests:
hatch run pytest
Run tests with coverage:
hatch run cov
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
aioworkers_aiohttp-0.8.0a1.tar.gz
(12.1 kB
view hashes)
Built Distribution
Close
Hashes for aioworkers_aiohttp-0.8.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2989346e82c837a0dd896eef002ff41918d726b6d117ce1157e521a9c1794e8f |
|
MD5 | b4bee5e9e9473ed226e6de9c903f1c9a |
|
BLAKE2b-256 | e565c16b93cdab87161e1c231c9b83d6c71c86d8d4bcd0cadd20ab2b790668d3 |
Close
Hashes for aioworkers_aiohttp-0.8.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74dffee82237f454a04d1ab7d838f2dcea8736496dc0a81bbdf24b6393852b3c |
|
MD5 | b27af835a54828b61c90a4d932f46bc2 |
|
BLAKE2b-256 | 435c8431f268b72f5d66a0887bc981014ec58d125e1905302ce9760ab08b0710 |