{"id":29200305,"url":"https://github.com/zmoog/eventhubs","last_synced_at":"2026-02-25T21:03:42.258Z","repository":{"id":142208167,"uuid":"605259314","full_name":"zmoog/eventhubs","owner":"zmoog","description":"Simple Python-based CLI tool to receive and publish messages on Azure Event Hub.","archived":false,"fork":false,"pushed_at":"2025-10-30T13:53:48.000Z","size":29,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T15:39:23.569Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmoog.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-22T19:35:40.000Z","updated_at":"2025-02-17T16:24:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"b549f67e-d967-4ac0-ba23-3a5fad74713c","html_url":"https://github.com/zmoog/eventhubs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/zmoog/eventhubs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Feventhubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Feventhubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Feventhubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Feventhubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmoog","download_url":"https://codeload.github.com/zmoog/eventhubs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmoog%2Feventhubs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29839955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T20:42:33.054Z","status":"ssl_error","status_checked_at":"2026-02-25T20:42:21.322Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-07-02T10:35:38.857Z","updated_at":"2026-02-25T21:03:42.232Z","avatar_url":"https://github.com/zmoog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eventhubs\n\n[![PyPI](https://img.shields.io/pypi/v/eventhubs.svg)](https://pypi.org/project/eventhubs/)\n[![Changelog](https://img.shields.io/github/v/release/zmoog/eventhubs?include_prereleases\u0026label=changelog)](https://github.com/zmoog/eventhubs/releases)\n[![Tests](https://github.com/zmoog/eventhubs/workflows/Test/badge.svg)](https://github.com/zmoog/eventhubs/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/zmoog/eventhubs/blob/master/LICENSE)\n\nCLI tool to send and receive event data from Azure Event Hubs\n\n## Installation\n\nInstall this tool using `pip`:\n\n    pip install eventhubs\n\n## Usage\n\n### Receiving\n\nFor receiving data to an event hub, run:\n\n    eh eventdata receive\n\n### Sending\n\nFor sending a single event to an event hub, run:\n\n    eh eventdata send-event --text '{\"message\": \"Hello Spank\"}'\n\nYou can also send multiple events in a batch by using the `send-batch` command with `--text` multiple times:\n\n    eh eventdata send-batch --text '{\"message\": \"Hello Spank\"}' --text '{\"message\": \"Hello Spank (yes, again)\"}'\n\nFor sending the lines in a text files as event, run:\n\n    eh eventdata send-batch --lines-from-text-file multiline.txt\n\nFor sending the lines from `stdin` as event, run:\n\n    cat multiline.txt | eh eventdata send-batch  \n\n### Configuration\n\nYou can set up the connection string and event hub name using the command line options:\n\n    eh eventdata receive --connection-string \"Endpoint=..\" --name \"application-insights\"\n\nor the environment variables (or a mix of both):\n\n    export EVENTHUB_CONNECTION_STRING=\"Endpoint=sb://...=\"\n    export EVENTHUB_NAME=\"application-insights\"\n\n    eh eventdata receive\n\n    eh eventdata receive --name \"another-name\"\n\nDefaults to printing the message payload only, so it is easier to combine output with other tools, like `jq`:\n\n    $ eh eventdata receive | jq '.records[].tenantId' \n    \"1de2b364-21e1-4866-bb46-7804f17c417d\"\n    \"1de2b364-21e1-4866-bb46-7804f17c417d\"\n    \"1de2b364-21e1-4866-bb46-7804f17c417d\"\n\nBut you can still turn on verbose and get more information about what's going on:\n\n    $ eh --verbose eventdata receive\n    Receiving events from mbranca\n    Received event from partition 0: {\"records\": [{....\n\nFor help, run:\n\n    eventhubs --help\n\nYou can also use:\n\n    python -m eventhubs --help\n\n## Development\n\nTo contribute to this tool, first checkout the code. Then create a new virtual environment:\n\n    cd eventhubs\n    python -m venv venv\n    source venv/bin/activate\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoog%2Feventhubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmoog%2Feventhubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmoog%2Feventhubs/lists"}