BTHLabs JSONRPC - aiohttp integration
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bthlabs-jsonrpc-aiohttp-1.0.0.tar.gz.
File metadata
- Download URL: bthlabs-jsonrpc-aiohttp-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e311419d4ecb72c193b725875e64ad21350e66c4714ba7e1a8352958af4ac8d0
|
|
| MD5 |
5fce7f5240cbd0b9df27c86853d0664c
|
|
| BLAKE2b-256 |
a7d1e4326bb25dc3c496acca1bc01671e571457213cac9221c7cd21bf1b70bf2
|
File details
Details for the file bthlabs_jsonrpc_aiohttp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bthlabs_jsonrpc_aiohttp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d984a086020b0bb08bfbd881fb04b0e53ecccd7fe01063c6a12db44f5aed6a6
|
|
| MD5 |
07983209527dce871240bd9cf09b6711
|
|
| BLAKE2b-256 |
9a1c2585381b23bcba503088ad9f96c2cf3bdc312d9106fe7a4fab1cacdfd6e5
|