Skip to main content

Start serving an asyncio.Server

Project description

https://img.shields.io/pypi/v/gera2ld-pyserve.svg

Serve asyncio and aiohttp servers, and show information for development.

Installation

$ pip install gera2ld-pyserve

# or with extra `aio` if aiohttp applications are to be served
$ pip install gera2ld-pyserve[aio]

Usage

from gera2ld.pyserve import serve_asyncio

def handle(reader, writer):
    # add more code here...

serve_asyncio(handle, ':4000')
from gera2ld.pyserve import serve_aiohttp
from aiohttp import web

app = web.Application()
# add more code here...

serve_aiohttp(app, ':4000')

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

gera2ld-pyserve-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

gera2ld_pyserve-0.2.0-py3-none-any.whl (3.3 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