Collection of helpers for building asyncio daemons.
Project description
Collection of helpers for building asyncio daemons.
Installation
Pillars is available on PyPI.
$ pip3 install pillars
Quickstart
import pillars
import aiohttp
app = pillars.Application(name="example")
http = pillars.transports.http.Application()
app.listen(
app=http,
name="http",
runner=aiohttp.web.AppRunner(http),
sites=(functools.partial(aiohttp.web.TCPSite, host="127.0.01", port=8080),),
)
http.router.add_route("GET", "/", hello_world)
async def hello_world(request):
return pillars.Response(status=200, data={"data": "Hello world"})
For more examples see the examples folder.
Changelog
0.1.1
Initial release
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
pillars-0.2.1.tar.gz
(12.9 kB
view hashes)
Built Distribution
pillars-0.2.1-py3-none-any.whl
(55.5 kB
view hashes)