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_cabbagok_client
amqp_rpc = ...
client = create_cabbagok_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.1.0.tar.gz
(10.5 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.1.0.tar.gz.
File metadata
- Download URL: jarpcdantic_clients-1.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b86e63553179a3459f1f84899404cdcc7d59afcd8da12245d8468a97968ecd60
|
|
| MD5 |
9f5eb67aa1481a9bc0e07fa252a2d290
|
|
| BLAKE2b-256 |
e2f67dbc2b8b5f86d8f8246fdaf5aacceaacf324716db0f0e951985d93746ee0
|
File details
Details for the file jarpcdantic_clients-1.1.0-py3-none-any.whl.
File metadata
- Download URL: jarpcdantic_clients-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00ecf324e316fa60541a06a364e522941a669d0babf84f5aa5301234b610382
|
|
| MD5 |
2ad7ad04e0ae94089d1cf268f5635d76
|
|
| BLAKE2b-256 |
d0d4778cf7298bc9b128c58c7eaa53c519bf9ee61eeb65cbde1cb293f9f002a2
|