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.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jarpcdantic_clients-1.0.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.2

File hashes

Hashes for jarpcdantic_clients-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8536965e9b638ddce9aa383a8ceab2f803b4f1575cd46bb6197eeac5336cb962
MD5 51316fb736664de4d927f59e9815c0de
BLAKE2b-256 c015651e0e706276a3aca299d1b6d04656d88ee040635239b8ab2a31597e8dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jarpcdantic_clients-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 84e2115a82111761b9dec9fc05fdc26f03df760bf5b9d4090485b2a56814d0d9
MD5 12640edfa2a6523d20d4a3d6d7562182
BLAKE2b-256 734f1f238a1f1a98f5a4dfc4f25beeded3b5bdef5a47d7db3a33ec5d76d9c446

See more details on using hashes here.

Supported by

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