BTHLabs JSONRPC - aiohttp integration
Overview
BTHLabs JSONRPC is a set of Python libraries that provide extensible framework for adding JSONRPC interfaces to existing Python Web applications.
The aiohttp package provides aiohttp integration.
Installation
$ pip install bthlabs_jsonrpc_aiohttp
Example
# app.py
from aiohttp import web
from bthlabs_jsonrpc_core import register_method
from bthlabs_jsonrpc_aiohttp import JSONRPCView
@register_method('hello')
async def hello(request, who='World'):
return f'Hello, {who}!'
app = web.Application()
app.add_routes([
web.post('/rpc', JSONRPCView()),
])
License
bthlabs-jsonrpc-aiohttp is licensed under the MIT License.
Metadata
Release files for bthlabs-jsonrpc-aiohttp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bthlabs-jsonrpc-aiohttp-1.0.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bthlabs_jsonrpc_aiohttp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / bthlabs-jsonrpc-aiohttp-1.0.0.tar.gz
| Download URL | bthlabs-jsonrpc-aiohttp-1.0.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e311419d4ecb72c193b725875e64ad21350e66c4714ba7e1a8352958af4ac8d0
|
|
BLAKE2b-256 checksum How to use checksums |
a7d1e4326bb25dc3c496acca1bc01671e571457213cac9221c7cd21bf1b70bf2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Release files / bthlabs_jsonrpc_aiohttp-1.0.0-py3-none-any.whl
| Download URL | bthlabs_jsonrpc_aiohttp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d984a086020b0bb08bfbd881fb04b0e53ecccd7fe01063c6a12db44f5aed6a6
|
|
BLAKE2b-256 checksum How to use checksums |
9a1c2585381b23bcba503088ad9f96c2cf3bdc312d9106fe7a4fab1cacdfd6e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|