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_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.2.0.tar.gz (12.6 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.2.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jarpcdantic_clients-1.2.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jarpcdantic_clients-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4c5333045ba9e65694be8a75a15fb32d407f693fa1f072e365faa2de4039cd9f
MD5 aeae080e280eff28442254efe982a284
BLAKE2b-256 1e51278761324f49f28a209eb4f0a6c07e48d6f3fb5fd0acf730e2323f756213

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jarpcdantic_clients-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jarpcdantic_clients-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a64552655e9ace3e2a83a0f54328ac5330ddaee97fc6668d05b6e13b2deecce3
MD5 555bc605e0ef5f97777576d928a4aaa6
BLAKE2b-256 e511a5eca780bedde1b4ff0f344fcb36bdd81189bb07957cf269e91b0d964709

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