Skip to main content

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

  1. Choose desired transport and install required packages (this library's installation doesn't include transport-dependent packages);
  2. 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.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

jarpcdantic_clients-1.0.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file jarpcdantic_clients-1.0.2.tar.gz.

File metadata

  • Download URL: jarpcdantic_clients-1.0.2.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

Hashes for jarpcdantic_clients-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8beb12dbe84018d2e639661e68485e0e16a3f745973bf27c05f3c71b06c1b6db
MD5 901b8d887784d2f9892de3d06845ab7b
BLAKE2b-256 f3625830dc1df4a0f04cb36fc1839a31b19998519fcbe9134ba25a240261f4df

See more details on using hashes here.

File details

Details for the file jarpcdantic_clients-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jarpcdantic_clients-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 434172b20c1d030fe009b43cc19d8b4c18f0c997564d0d405fa8f861ee611437
MD5 fa9e16ca4e6ce44cdd7d4568f8413562
BLAKE2b-256 6b922d68c5df3aca11e98a30a96bbf66952ec80a42ed6b3fb63856e94c8d054d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page