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 Distribution
gera2ld-pyserve-0.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for gera2ld_pyserve-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f2ce5181087a67b03cc0346895d0371f134dea84496e210c2501f17af8a906 |
|
MD5 | 2ff06f772f4cab64c593df1942d4b0ab |
|
BLAKE2b-256 | 2eda28fa07d5bb0142c4b779a9591d0ee73de3a3b0439527fbad660c57e56490 |