Skip to main content

Py S2S

This is a simple publish and subscribe for a response over RabbitMQ. This is only half of two parts needed for "http over rabbit" intended for service to service communication.

notice

This is an asyncio library that uses aio-pika.

example

async def run():
    conn = RabbitConfig(
        host='localhost',
        port=5672,
        username='guest',
        password='guest',
        exchange='/',
        queue_name='my_queue'  # This is a prefix, it will append a random string to the end of this.
    )
    c = Service2Service(service_name='Test Service', config=conn)
    headers = {
        'authorization': 'Bearer XX',
        'content-type': 'application/json'
    }
    r = await c.request('accounts.load', dict(test=True, name='bob'), headers=headers)
    print(r)  # Returns a `S2S GenericResponse` dataclass

Metadata

Release files for py-s2s 22.2.28

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

Source distribution (sdist)

Source distribution for py-s2s 22.2.28
File Size Uploaded Provenance Actions
py-s2s-22.2.28.tar.gz 8.3 kB Without provenance Details for py-s2s-22.2.28.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-s2s 22.2.28
File Interpreter ABI Platform Actions
py_s2s-22.2.28-py3-none-any.whl Python 3 none any Details for py_s2s-22.2.28-py3-none-any.whl

Total release size: 17.2 kB

Release files / py-s2s-22.2.28.tar.gz

Download URL py-s2s-22.2.28.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
78fb61a5cc826b52b58f4259a9d95ee2cdcda2634a755001602fe4dba49e51ce
BLAKE2b-256 checksum
How to use checksums
50ff6dd3e5c6e2b9378b98dc9ec20527cf8109edba32c8128635d23072ca3c6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Darwin/21.2.0

Release files / py_s2s-22.2.28-py3-none-any.whl

Download URL py_s2s-22.2.28-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b4a46dc1d6cf8750a2886a2c3e66034fd0eb6c73cfab24361c8aeaadf96c850
BLAKE2b-256 checksum
How to use checksums
ade0272dcd020f3d0394cb832e47f71e736da532b10adb7d215204079e6cd704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Darwin/21.2.0

Security for py-s2s 22.2.28

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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