Skip to main content

simple rpc amqp python library on pike

Project description

usage

simple rpc amqp python library on pike

consumer

s = ServiceCreator('amqps://user:password@host.cloudamqp.com/vhost',
                   "exchangepypy")


def cb(msg):
    print(msg)
    return msg


s.consume("py.test", "", cb)

rpc request

s = ServiceCreator('amqps://user:password@host.cloudamqp.com/vhost',
                   "exchangepypy")


res,err = s.rpc_request("py.test", "sdsdsdsd", 0)
print(res,err)

fire and forget

s = ServiceCreator('amqps://user:password@host.cloudamqp.com/vhost',
                   "exchangepypy")

s.fire_and_forget("py.test", "cvvccvvcv")

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

amqp_py_client-0.0.2.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

amqp_py_client-0.0.2-py3-none-any.whl (1.4 kB view details)

Uploaded Python 3

File details

Details for the file amqp_py_client-0.0.2.tar.gz.

File metadata

  • Download URL: amqp_py_client-0.0.2.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for amqp_py_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1f6e3c9f060490c4ade6a7d711d9a1769c20047abf5f3e13562589c9525e2eb4
MD5 25b61595edc4e90a569132a16c19f7b5
BLAKE2b-256 1e2ec54bebd1b283921fe034ba6b57314a275af25f5af3aec03d6e9ff72801fe

See more details on using hashes here.

File details

Details for the file amqp_py_client-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: amqp_py_client-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for amqp_py_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0ec5bda2c988b215835c7b0a7e5e8b6a4b64463046b80c6ebbdec56b73afffe
MD5 fcea3ae7365fdcd9a68d381653876352
BLAKE2b-256 feec61308f4905d0ea2935510f5aea0771c94408aa2fcc9bb1520ce091784019

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