aioxmlrpc-0.6.4
توضیحات
Source code of Sequoia API TLDPublic
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aioxmlrpc-0.6.4 |
| نام | aioxmlrpc |
| نسخه کتابخانه | 0.6.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guillaume Gauvrit |
| ایمیل نویسنده | guillaume@gauvr.it |
| آدرس صفحه اصلی | https://github.com/mardiros/aioxmlrpc |
| آدرس اینترنتی | https://pypi.org/project/aioxmlrpc/ |
| مجوز | BSD-3-Clause License |
=========
aioxmlrpc
=========
.. image:: https://github.com/mardiros/aioxmlrpc/actions/workflows/main.yml/badge.svg
:target: https://github.com/mardiros/aioxmlrpc/actions/workflows/main.yml
.. image:: https://codecov.io/gh/mardiros/aioxmlrpc/branch/master/graph/badge.svg?token=BR3KttC9uJ
:target: https://codecov.io/gh/mardiros/aioxmlrpc
Getting Started
===============
Asyncio version of the standard lib ``xmlrpc``
Currently only ``aioxmlrpc.client``, which works like ``xmlrpc.client`` but
with coroutine is implemented.
Fill free to fork me if you want to implement the server part.
``aioxmlrpc`` is based on ``httpx`` for the transport, and just patch
the necessary from the python standard library to get it working.
Installation
------------
::
pip install aioxmlrpc
Example of usage
----------------
This example show how to print the current version of the Gandi XML-RPC api.
::
import asyncio
from aioxmlrpc.client import ServerProxy
@asyncio.coroutine
def print_gandi_api_version():
api = ServerProxy('https://rpc.gandi.net/xmlrpc/')
result = yield from api.version.info()
print(result)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(print_gandi_api_version())
loop.stop()
Run the example
::
poetry run examples/gandi_api_version.py
نیازمندی
| مقدار | نام |
|---|---|
| >=0.23.0,<0.24.0 | httpx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl aioxmlrpc-0.6.4:
pip install aioxmlrpc-0.6.4.whl
نصب پکیج tar.gz aioxmlrpc-0.6.4:
pip install aioxmlrpc-0.6.4.tar.gz