Skip to main content

Integrations aioworkers with aiohttp

Project description

The package to integration aioworkers with aiohttp

https://github.com/aioworkers/aioworkers-aiohttp/workflows/Tests/badge.svg https://codecov.io/gh/aioworkers/aioworkers-aiohttp/branch/master/graph/badge.svg https://img.shields.io/pypi/v/aioworkers-aiohttp.svg Documentation Status https://img.shields.io/pypi/pyversions/aioworkers-aiohttp.svg

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


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.7.3.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

aioworkers_aiohttp-0.7.3-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page