python3-cyberfusion-rpc-client
This library provides a developer-friendly interface to do RPC requests (using Pika).
The library can be used on the requesting side of RabbitMQ consumer.
Install
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-rpc-client
Configure
No configuration is supported.
Usage
Example
from cyberfusion.RPCClient import RPCClient, ContentType
from cyberfusion.RPCClient.containers import RabbitMQCredentials
credentials = RabbitMQCredentials(
ssl_enabled=True,
port=5672,
host='localhost',
username='guest',
password='guest',
virtual_host_name='/',
)
queue_name = 'example.com'
exchange_name = 'dx_order_fruit'
client = RPCClient(credentials, queue_name=queue_name, exchange_name=exchange_name)
response = client.request(body={'amount': 10000, 'type': 'banana'}, content_type=ContentType.JSON)
print(response)
Release files for python3-cyberfusion-rpc-client 1.2.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 | |
|---|---|---|---|
| python3_cyberfusion_rpc_client-1.2.1.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python3_cyberfusion_rpc_client-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:9.8 kB
Release files / python3_cyberfusion_rpc_client-1.2.1.tar.gz
| Download URL | python3_cyberfusion_rpc_client-1.2.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fbbfa4a1c61847c43d490fe8dc71e6b1d6651b4e86b235481e1fe39281ad50d
|
|
BLAKE2b-256 checksum How to use checksums |
e121e3e2382e903f087ce18994dc39f9b26ebf899726c4efbc6791d58c9ddab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / python3_cyberfusion_rpc_client-1.2.1-py3-none-any.whl
| Download URL | python3_cyberfusion_rpc_client-1.2.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
076eca65b0cc7906bc27969129ce3a307ab1ef68a995d70fdbf2f384f30e9e04
|
|
BLAKE2b-256 checksum How to use checksums |
80c222c9ecb2e7191372a7a02ded1da32f1dd4a0e8405024733210e9ff0469ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|