Pillars
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.4.1
Add on_connection callback to websocket site
0.4.0
Add on_started signal
0.3.0
Dependencies update
0.2.4
Bugfix for json_encoder argument
0.2.3
Add custom json encoder for UUID
Add json_encoder argument to pillars.Response
0.2.2
Fix ARI engine shutdown
0.2.1
Properly close websocket connection
Remove pg uuid encoder
Log when pg jsonb encode fails
Use aiohttp exception for ARI transports
0.1.1
Initial release
Metadata
Release files for pillars 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pillars-0.4.1.tar.gz | 14.9 kB | Without provenance | Details for pillars-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pillars-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for pillars-0.4.1-py3-none-any.whl |
Total release size: 79.2 kB
Release files / pillars-0.4.1.tar.gz
| Download URL | pillars-0.4.1.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9154b60046bfa6fb054ae2d06f20b7e353842e1cb122d4ea3421a5d009ea57a
|
|
BLAKE2b-256 checksum How to use checksums |
eeb505200dd3dcd89129eb333eb4956b98268eddce2ec7a860c32ffb42769980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.11 CPython/3.7.1 Linux/4.15.0-1026-gcp
|
Release files / pillars-0.4.1-py3-none-any.whl
| Download URL | pillars-0.4.1-py3-none-any.whl |
|---|---|
| Size | 64.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be52a1a0e049f34eeb5fddfa742b6bb5b3e179bff4e711835528f6e14e761cba
|
|
BLAKE2b-256 checksum How to use checksums |
dbe7170c02070ceed49f5d484524aaa50c8d6f43e355e591bd9372f625fa8e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.11 CPython/3.7.1 Linux/4.15.0-1026-gcp
|
Security for pillars 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.