{"id":34524132,"url":"https://github.com/official-stallion/client.py","last_synced_at":"2026-06-01T11:32:33.028Z","repository":{"id":56864025,"uuid":"525272688","full_name":"official-stallion/client.py","owner":"official-stallion","description":"Python client SDK for Stallion message broker.","archived":false,"fork":false,"pushed_at":"2023-02-19T12:50:11.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T16:44:33.057Z","etag":null,"topics":["python","python3","sdk-python","stallion"],"latest_commit_sha":null,"homepage":"","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/official-stallion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-16T07:22:30.000Z","updated_at":"2023-12-29T13:10:05.000Z","dependencies_parsed_at":"2023-01-26T06:01:30.131Z","dependency_job_id":null,"html_url":"https://github.com/official-stallion/client.py","commit_stats":null,"previous_names":["amirhnajafiz/stallion-python-sdk"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/official-stallion/client.py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/official-stallion%2Fclient.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/official-stallion%2Fclient.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/official-stallion%2Fclient.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/official-stallion%2Fclient.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/official-stallion","download_url":"https://codeload.github.com/official-stallion/client.py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/official-stallion%2Fclient.py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33773771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":["python","python3","sdk-python","stallion"],"created_at":"2025-12-24T05:01:18.972Z","updated_at":"2026-06-01T11:32:33.009Z","avatar_url":"https://github.com/official-stallion.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nStallion Python SDK\n\u003c/h1\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Python-3.21-blue?style=for-the-badge\u0026logo=python\" alt=\"go version\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/Version-1.2.1-2255DD?style=for-the-badge\u0026logo=github\" alt=\"version\" /\u003e\u003cbr /\u003e\n\u003cimg src=\"https://img.shields.io/badge/MacOS-black?style=for-the-badge\u0026logo=apple\" alt=\"version\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/Linux-white?style=for-the-badge\u0026logo=linux\" alt=\"version\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/Windows-blue?style=for-the-badge\u0026logo=windows\" alt=\"version\" /\u003e\u003cbr /\u003e\u003cbr /\u003e\nClient SDK for Stallion message broker\n\u003c/p\u003e\n\n## How to use?\nPython install:\n```shell\npip install stallion-python-sdk\n```\n\n### Client\nCreate a client:\n```python\n# importing Client module\nfrom stallion.client import Client\n\n# creating a client\n# with given stallion server url\nc = Client(url=\"st://localhost:9090\")\n```\n\n### Publish\n```python\n# publish an object on a topic\nc.Publish(\"book\", {'author': \"Amirhossein\", 'name': \"Stallion\"})\n```\n\n### Subscribe\n```python\n# creating a handler\n# any published object will be given to this handler as data\ndef handler(data):\n    print(f'{data['author']}: {data['name']})\n\n# subscribe over a topic with given handler\nc.Subscribe(\"book\", handler)\n```\n\n### Unsubscribe\n```python\n# unsubscribe from a topic\nc.Unsubscribe(\"book\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficial-stallion%2Fclient.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofficial-stallion%2Fclient.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficial-stallion%2Fclient.py/lists"}