{"id":15009928,"url":"https://github.com/baroquehq/baroque","last_synced_at":"2025-04-09T17:52:53.682Z","repository":{"id":57413991,"uuid":"86701233","full_name":"baroquehq/baroque","owner":"baroquehq","description":"Baroque is an event brokering framework with a honey-sweet interface","archived":false,"fork":false,"pushed_at":"2023-06-24T11:58:17.000Z","size":92,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:51:33.580Z","etag":null,"topics":["baroque","broker","event-driven","eventbus","events","eventstore","framework","honey-sweet-interface","humans","python-3"],"latest_commit_sha":null,"homepage":"http://baroque.readthedocs.io","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/baroquehq.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-30T12:42:03.000Z","updated_at":"2023-06-24T11:58:23.000Z","dependencies_parsed_at":"2024-12-03T18:41:51.813Z","dependency_job_id":null,"html_url":"https://github.com/baroquehq/baroque","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"9ecb234a7eb00aef43579840e6745d12f0a9f1f1"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baroquehq%2Fbaroque","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baroquehq%2Fbaroque/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baroquehq%2Fbaroque/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baroquehq%2Fbaroque/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baroquehq","download_url":"https://codeload.github.com/baroquehq/baroque/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083410,"owners_count":21045092,"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":["baroque","broker","event-driven","eventbus","events","eventstore","framework","honey-sweet-interface","humans","python-3"],"created_at":"2024-09-24T19:29:10.173Z","updated_at":"2025-04-09T17:52:53.660Z","avatar_url":"https://github.com/baroquehq.png","language":"Python","readme":"# Baroque\n\n![Baroque](https://raw.githubusercontent.com/baroquehq/baroque/master/baroque.png)\n\n## Events made easy\nBaroque is an event brokering framework with a honey-sweet interface.\n\nIt features an out-of-the-box efficient implementation of the publish-subscriber \npattern enabled by high-level abstractions, allowing quick development of \nevent-driven applications.\n\nThe main focus of Baroque is provide a human-friendly interface to event\nbrokering operations, in terms of API and configuration.\n\n\n### Features in a nutshell\n  - Create **events** as lightweight JSON containers of custom metadata, each \n    with a named type and suitable of JSON schema validation\n  - **publish** events of any type and **subscribe** execution of stateless \n    callback functions (aka: **reactors**) upon events firing\n  - reactors can be conditionally executed (you say when the magic happens). You\n    can either provide your custom reactors or leverage Baroque's built-in ones\n  - validate\n  - create event distribution **topics** from specified pools of event types \n    and easily publish events on them, triggering execution of subscribers'\n    reactors\n  - optionally track events in-memory or save them to persistent datastores \n\nBaroque is...\n  - designed for humans (nerds and non-nerds!)\n  - plug and play into your own code\n  - easily configurable: go with reasonable defaults or edit a simple \n    YML config file\n  - extensible through a set of extension code hooks\n  - heavily tested\n\n\n##  Installation\n\nBaroque runs on Python 3.5+\n\nInstall the latest stable version with `pip`:\n\n```shell\n$ pip install baroque\n```\n\nAs Baroque is currently under heavy development, its API may change without\nnotice: fetch the latest modifications on the development branch with:\n\n```shell\n$ pip install git+https://github.com/baroquehq/baroque.git@dev\n```\n\n## Getting started\n```python\nfrom baroque import Baroque, Reactor, EventFactory\n\n# Pub-sub is easy with Baroque!\n\n# 1. Instantiate the event broker:\nbrq = Baroque()\n\n# 2. Create reactors, which basically are functions. This one - in example -\n# prints the input event's content to the console as JSON\nreactor = Reactor(lambda event: print(event.json()))\n\n# 3. Now tell the broker that we want to run our reactor upon events of any type:\nbrq.on_any_event_run(reactor)\n\n\n# 4. Good! Now let's publish an event on the broker:\nevent = EventFactory.new(payload=dict(key1='value1', key2='value2'), owner='me')\nbrq.publish(event)\n\n# ... and our terminal should display something like this:\n'''\n{\n    \"timestamp\": \"2017-03-28T23:20:57Z\",\n\t\"owner\": \"me\",\n\t\"links\": [],\n\t\"tags\": [],\n\t\"payload\": {\n\t   \"key2\": \"value2\",\n\t   \"key1\": \"value1\"},\n\t\"status\": \"unpublished\",\n    ...\n}\n'''\n```\n\n\n## Documentation\n  - A [guided tour through Baroque features](http://baroque.readthedocs.io/en/latest/usage.html)\n  - A few [usage scenarios](http://baroque.readthedocs.io/en/latest/examples.html)\n  - Baroque's [software API documentation](http://baroque.readthedocs.io/en/latest/baroque.html)\n\n## License\nMIT license\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaroquehq%2Fbaroque","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaroquehq%2Fbaroque","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaroquehq%2Fbaroque/lists"}