{"id":16201689,"url":"https://github.com/pedrokiefer/aiostomp","last_synced_at":"2025-03-16T10:32:54.358Z","repository":{"id":57409155,"uuid":"117700675","full_name":"pedrokiefer/aiostomp","owner":"pedrokiefer","description":"AsyncIO Stomp Client","archived":false,"fork":false,"pushed_at":"2022-11-25T17:00:18.000Z","size":118,"stargazers_count":22,"open_issues_count":5,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T08:01:24.338Z","etag":null,"topics":["asyncio","client","python","python36","stomp"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedrokiefer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-16T15:20:24.000Z","updated_at":"2024-06-22T16:59:03.000Z","dependencies_parsed_at":"2023-01-22T01:54:26.925Z","dependency_job_id":null,"html_url":"https://github.com/pedrokiefer/aiostomp","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Faiostomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Faiostomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Faiostomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrokiefer%2Faiostomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrokiefer","download_url":"https://codeload.github.com/pedrokiefer/aiostomp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814907,"owners_count":20352037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","client","python","python36","stomp"],"created_at":"2024-10-10T09:39:34.977Z","updated_at":"2025-03-16T10:32:53.977Z","avatar_url":"https://github.com/pedrokiefer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/pedrokiefer/aiostomp.png?branch=master)](https://travis-ci.com/pedrokiefer/aiostomp)\n[![Coverage Status](https://coveralls.io/repos/github/pedrokiefer/aiostomp/badge.svg?branch=master)](https://coveralls.io/github/pedrokiefer/aiostomp?branch=master)\n[![PyPI version](https://badge.fury.io/py/aiostomp.svg)](https://badge.fury.io/py/aiostomp)\n\n# Aiostomp\n\nSimple asyncio stomp 1.1 client for python 3.6.\n\nHeavely inspired on [torstomp](https://github.com/wpjunior/torstomp).\n\n## Install\n\nwith pip:\n\n```bash\npip install aiostomp\n```\n\n## Usage\n\n```python\nimport sys\nimport logging\nimport asyncio\n\nfrom aiostomp import AioStomp\n\nlogging.basicConfig(\n    format=\"%(asctime)s - %(filename)s:%(lineno)d - \"\n    \"%(levelname)s - %(message)s\",\n    level='DEBUG')\n\n\nasync def run():\n    client = AioStomp('localhost', 61613, error_handler=report_error)\n    client.subscribe('/queue/channel', handler=on_message)\n\n    await client.connect()\n\n    client.send('/queue/channel', body=u'Thanks', headers={})\n\n\nasync def on_message(frame, message):\n    print('on_message:', message)\n    return True\n\n\nasync def report_error(error):\n    print('report_error:', error)\n\n\ndef main(args):\n    loop = asyncio.get_event_loop()\n    loop.run_until_complete(run())\n    loop.run_forever()\n\n\nif __name__ == '__main__':\n    main(sys.argv)\n\n```\n\n## Development\n\nWith empty virtualenv for this project, run this command:\n\n```bash\nmake setup\n```\n\nand run all tests =)\n\n```bash\nmake test\n```\n\n## Contributing\n\nFork, patch, test, and send a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrokiefer%2Faiostomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrokiefer%2Faiostomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrokiefer%2Faiostomp/lists"}