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.tar.gz
(12.1 kB
view details)
Built Distribution
File details
Details for the file aioworkers_aiohttp-0.8.tar.gz
.
File metadata
- Download URL: aioworkers_aiohttp-0.8.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 542c11c16f2b2372cbb6f2956fe8c15f04c5a1e0afeedb868e4283ee72ac89d5 |
|
MD5 | c061165f4826aae7eae55157a2f4262d |
|
BLAKE2b-256 | 9574cc3dfd9ef4f23da5991fa9406f0741b5105b1759a7375abd7003d3223b00 |
File details
Details for the file aioworkers_aiohttp-0.8-py3-none-any.whl
.
File metadata
- Download URL: aioworkers_aiohttp-0.8-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c3fa42dd44d5d49898149afd2d8f26d4f12a105a2bf2799536831934d9f4780 |
|
MD5 | 1482acd85fa92651141ad0079b7ffe03 |
|
BLAKE2b-256 | d6f62d96a1c707dccff5a768654c43d50e06cafb216060847864f1d845f52434 |