Transports for JARPCdantic
Project description
JARPCdantic clients
JARPCdantic client's factories with predefined transports for libraries: cabbagok, aiohttp, requests.
Installation
# with cabbagok dependency
pip install jarpcdatic_clients[cabbagok]
# with aiohttp
pip install jarpcdatic_clients[aiohttp]
# with requests
pip install jarpcdatic_clients[requests]
# with all dependencies
pip install jarpcdatic_clients[all]
Usage
- Choose desired transport and install required packages (this library's installation doesn't include transport-dependent packages);
- Use factory to create JARPCdantic client or use transport separately:
from jarpcdantic_clients import create_cabbage_client
amqp_rpc = ...
client = create_cabbage_client(amqp_rpc=amqp_rpc, exchange='exchange_name', default_ttl=30.0)
result = client(method='method_name', params=dict(param1=1))
result = client.method_name(param1=1)
from jarpc import JarpcClient
from jarpcdantic_clients import RequestsTransport
transport = RequestsTransport(url='http://example.com/jarpc')
client = JarpcClient(transport=transport)
result = client(method='method_name', params=dict(param1=1))
result = client.method_name(param1=1)
transport.close_session()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jarpcdantic_clients-1.0.0.tar.gz
(10.4 kB
view details)
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 jarpcdantic_clients-1.0.0.tar.gz.
File metadata
- Download URL: jarpcdantic_clients-1.0.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75d383bcf151e0aed57abb38e5977ce468ed0de5ce23c945963a4bf6aa88136b
|
|
| MD5 |
16089fd54c416f5c0e30337945e51fb4
|
|
| BLAKE2b-256 |
c5da8fa1f742440668840bbdd8e7c0635e45cd67a9df76b1b1f45b17b88aa99b
|
File details
Details for the file jarpcdantic_clients-1.0.0-py3-none-any.whl.
File metadata
- Download URL: jarpcdantic_clients-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
887997a2a1d069d15ad9c7688433f06aea2c567eec22daed00c2f031a232ba78
|
|
| MD5 |
2f56edbf46a50a4ae98a1cc47b685b9b
|
|
| BLAKE2b-256 |
cab35df20deb27c99a47441508a518d8d44c8008cfea25082b82f1f64423a1ca
|