AIOHTTP XMLRPC
XML-RPC server and client implementation based on aiohttp. Using lxml and aiohttp.Client.
Server example
from aiohttp import web
from aiohttp_xmlrpc import handler
from aiohttp_xmlrpc.handler import rename
class XMLRPCExample(handler.XMLRPCView):
@rename("nested.test")
def rpc_test(self):
return None
def rpc_args(self, *args):
return len(args)
def rpc_kwargs(self, **kwargs):
return len(kwargs)
def rpc_args_kwargs(self, *args, **kwargs):
return len(args) + len(kwargs)
@rename("nested.exception")
def rpc_exception(self):
raise Exception("YEEEEEE!!!")
app = web.Application()
app.router.add_route('*', '/', XMLRPCExample)
if __name__ == "__main__":
web.run_app(app)
Client example
import asyncio
from aiohttp_xmlrpc.client import ServerProxy
loop = asyncio.get_event_loop()
client = ServerProxy("http://127.0.0.1:8080/", loop=loop)
async def main():
# 'nested.test' method call
print(await client.nested.test())
# 'args' method call
print(await client.args(1, 2, 3))
client.close()
if __name__ == "__main__":
loop.run_until_complete(main())
Metadata
Release files for aiohttp-xmlrpc 1.5.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 | Provenance | |
|---|---|---|---|---|
| aiohttp-xmlrpc-1.5.0.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiohttp_xmlrpc-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / aiohttp-xmlrpc-1.5.0.tar.gz
| Download URL | aiohttp-xmlrpc-1.5.0.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85b7659e91161a7c82280eeb0a2e9f06e95f858df1a4f6f68c737b675664dbed
|
|
BLAKE2b-256 checksum How to use checksums |
b145753cc4f9f220ad25ae970ca76737b54906ffc25dddc3e152383fb9bbbcde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / aiohttp_xmlrpc-1.5.0-py3-none-any.whl
| Download URL | aiohttp_xmlrpc-1.5.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59989d4b33549cabb1aef86cc2e4278ba5662aa679ae49235f179e606f6771ef
|
|
BLAKE2b-256 checksum How to use checksums |
ba4c2289f60eaabfa51fdc5c6c5d8fa1ce0915d79b2f845a9276c6112e201aa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for aiohttp-xmlrpc 1.5.0
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.