Aiostomp
Simple asyncio stomp 1.1 client for python 3.6.
Heavely inspired on torstomp.
Install
with pip:
pip install aiostomp
Usage
import sys
import logging
import asyncio
from aiostomp import AioStomp
logging.basicConfig(
format="%(asctime)s - %(filename)s:%(lineno)d - "
"%(levelname)s - %(message)s",
level='DEBUG')
async def run():
client = AioStomp('localhost', 61613, error_handler=report_error)
client.subscribe('/queue/channel', handler=on_message)
await client.connect()
client.send('/queue/channel', body=u'Thanks', headers={})
async def on_message(frame, message):
print('on_message:', message)
return True
async def report_error(error):
print('report_error:', error)
def main(args):
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
loop.run_forever()
if __name__ == '__main__':
main(sys.argv)
Development
With empty virtualenv for this project, run this command:
make setup
and run all tests =)
make test
Contributing
Fork, patch, test, and send a pull request.
Metadata
Release files for aiostomp 1.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiostomp-1.7.3.tar.gz | 10.6 kB | Without provenance | Details for aiostomp-1.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiostomp-1.7.3-py3-none-any.whl | Python 3 | none | any | Details for aiostomp-1.7.3-py3-none-any.whl |
Total release size: 21.7 kB
Release files / aiostomp-1.7.3.tar.gz
| Download URL | aiostomp-1.7.3.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a367da55fb2ab97f419674e7fa7f3592e53ac7b435a720a6f6a4585faad360b
|
|
BLAKE2b-256 checksum How to use checksums |
315bda3ec24fe3d40b24fdbf064d7d74c2152c0a4bfbbeac4e013535f3aa4558
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / aiostomp-1.7.3-py3-none-any.whl
| Download URL | aiostomp-1.7.3-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24bb34cc707b5f979bfa028cc8c77ed1f36bd405394cfdd8c182afc27d24aec5
|
|
BLAKE2b-256 checksum How to use checksums |
fa74ea5f40bc923965c01b4bf47eda009f7eed0aac02d862c4c84fd0cf2d0fae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for aiostomp 1.7.3
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.