Skip to main content

yhttp-rabbitmq

PyPI Build Coverage Status

RabbitMQ extension for yhttp.

Install

pip install yhttp-pony

Usage

from yhttp import Application
from yhttp.ext.rabbitmq import install as rabbitmq_install


app = Application()
rabbitmq_install(app)
app.settings.merge('''
rabbitmq:
  host: localhost
  port: 5672
  virtualhost: /
  user: guest
  password: guest
  channel_max: 10
  connection_attempts: 3
  
  ssl:
    ca_certfile:  <ca_cert>
    certfile: <client_cert>
    keyfile: <client_key>
    commonname: <CN>
 
  pool:
    maxsize: 10
    maxoverflow: 10
    timeout: 10
    recycle: 3600
    stale: 45
''')
app.ready()


@app.route()
def get(req):
    with app.rabbitmq.acquire() as cxn:
        cxn.channel.basic_publish(
            body='banana',
            exchange='',
            routing_key='fruits',
            properties=pika.BasicProperties(
                content_type='text/plain',
                content_encoding='utf-8',
                delivery_mode=2,
            )
        )

app.ready()

Metadata

Release files for yhttp-rabbitmq 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yhttp-rabbitmq 1.0.0
File Size Uploaded Provenance
yhttp-rabbitmq-1.0.0.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for yhttp-rabbitmq 1.0.0
File Interpreter ABI Platform
yhttp_rabbitmq-1.0.0-py3.8.egg Legacy Egg format - - Details

Total release size: 17.4 kB

Release files / yhttp-rabbitmq-1.0.0.tar.gz

Download URL yhttp-rabbitmq-1.0.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fe7afb4453eac3b6214948b75047b61e7dff6987385157cd7340d8a74f5f9c8d
BLAKE2b-256 checksum
How to use checksums
d481c9711c4954b0e393f92e6182a5ff9233ca2ef823dd36d5819dc5ddc744b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / yhttp_rabbitmq-1.0.0-py3.8.egg

Download URL yhttp_rabbitmq-1.0.0-py3.8.egg
Size 11.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
a6fe177ce48ee4e08b61986b7f0cd09aa509c43900486b4d8531cfd0daf83b4a
BLAKE2b-256 checksum
How to use checksums
4fe7692fd4d6742bd9ea9f388b0f9cae2ef5be74bc0d99f846faefb2f1fb110d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for yhttp-rabbitmq 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page