{"id":16532727,"url":"https://github.com/wpjunior/torstomp","last_synced_at":"2025-10-21T06:50:31.683Z","repository":{"id":28285021,"uuid":"31797353","full_name":"wpjunior/torstomp","owner":"wpjunior","description":"Simple tornado stomp 1.1 client.","archived":false,"fork":false,"pushed_at":"2017-05-15T12:31:12.000Z","size":39,"stargazers_count":12,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-11T14:30:17.241Z","etag":null,"topics":[],"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/wpjunior.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":"2015-03-07T01:47:27.000Z","updated_at":"2022-10-31T14:25:37.000Z","dependencies_parsed_at":"2022-08-26T15:00:36.252Z","dependency_job_id":null,"html_url":"https://github.com/wpjunior/torstomp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wpjunior/torstomp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftorstomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftorstomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftorstomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftorstomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpjunior","download_url":"https://codeload.github.com/wpjunior/torstomp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpjunior%2Ftorstomp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280219365,"owners_count":26292796,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T18:13:17.996Z","updated_at":"2025-10-21T06:50:31.629Z","avatar_url":"https://github.com/wpjunior.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/wpjunior/torstomp.png?branch=master)](https://travis-ci.org/wpjunior/torstomp)\n[![Coverage Status](https://coveralls.io/repos/github/wpjunior/torstomp/badge.svg?branch=master)](https://coveralls.io/github/wpjunior/torstomp?branch=master)\n[![PyPI version](https://badge.fury.io/py/torstomp.svg)](https://badge.fury.io/py/torstomp)\n\n# Torstomp\nSimple tornado stomp 1.1 client.\n\n## Install \n\nwith pip:\n\n```bash\npip install torstomp\n```\n## Usage\n```python\n# -*- coding: utf-8 -*-\n\nfrom tornado import gen\nfrom tornado.ioloop import IOLoop\nfrom torstomp import TorStomp\n\n\n@gen.coroutine\ndef main():\n    client = TorStomp('localhost', 61613, connect_headers={\n        'heart-beat': '1000,1000'\n    }, on_error=report_error)\n    client.subscribe('/queue/channel', callback=on_message)\n\n    yield client.connect()\n\n    client.send('/queue/channel', body=u'Thanks', headers={})\n\n\ndef on_message(frame, message):\n    print('on_message:', message)\n\n    \ndef report_error(error):\n    print('report_error:', error)\n\n\nif __name__ == '__main__':\n    main()\n    IOLoop.current().start()\n```\n\n## Development\n\nWith empty virtualenv for this project, run this command:\n```bash\nmake setup\n```\n\nand run all tests =)\n```bash\nmake test\n```\n\n## Contributing\nFork, patch, test, and send a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpjunior%2Ftorstomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpjunior%2Ftorstomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpjunior%2Ftorstomp/lists"}