Start serving an asyncio.Server
Project description
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for gera2ld_pyserve-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9092def9d0634bd20484cd5884e37e1abfc01ce9f058812ca6e0decbf3d5af6 |
|
MD5 | b4eb9360152dbf16fce8190b99f61e69 |
|
BLAKE2b-256 | 1166fabc8ca3684c3149bdea5be5f18a45dc20637feed6126bc3abd2470b92d5 |