{"id":19818730,"url":"https://github.com/sloppycoder/biznext-event-tool","last_synced_at":"2026-06-06T22:31:57.262Z","repository":{"id":64702927,"uuid":"576816395","full_name":"sloppycoder/biznext-event-tool","owner":"sloppycoder","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-30T05:22:51.000Z","size":3985,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-01-11T08:14:01.346Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sloppycoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-12-11T04:12:59.000Z","updated_at":"2023-06-29T15:14:42.000Z","dependencies_parsed_at":"2025-01-11T08:13:23.535Z","dependency_job_id":"9cdaf870-924c-46a8-ad42-011f2b08b3e4","html_url":"https://github.com/sloppycoder/biznext-event-tool","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbiznext-event-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbiznext-event-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbiznext-event-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloppycoder%2Fbiznext-event-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloppycoder","download_url":"https://codeload.github.com/sloppycoder/biznext-event-tool/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241174850,"owners_count":19922398,"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":[],"created_at":"2024-11-12T10:16:44.232Z","updated_at":"2025-02-28T15:29:04.935Z","avatar_url":"https://github.com/sloppycoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BizNext Event Tool\n\nTools to publish and view messages in Kafka topics used by BizNext application. Included are a script and simple Web UI that:\n\n1. Use JSON as input to protobuf and publish to a topic\n2. Consume messages from a topic, convert the protobuf messages to JSON\n\n### run kafka script locally\n\n```\n# run kafka script\nexport BOOTSTRAP_SERVERS=\u003cyour kafka brokers\u003e\n\n# read json from a file and convert it to protobuf\n# and publish to a topic\n\npython kafka.py instruction.command static/instruction.command.json\n\n# liston on the default topic and convert each message received into JSON.\n# by default it will exit after running for 30s. if -f is specified at the\n# it will run forever, like tail -f\n\npython kafka.py consume instruction.command\n\n```\n\n### run web app locally\n\n```\nexport BOOTSTRAP_SERVERS=\u003cyour kafka brokers\u003e\npython app.py\n\n# open your browser to http://localhost:5000\n```\n\n## Notes for developer\n\nThis project is set up Python project with dev tooling pre-configured\n\n* black\n* flake8\n* isort\n* mypy\n* VS Code support\n\nTo start development, clone the repo and\n\n```\n# poetry package manager is required\n\n# start venv\npoetry shell\n\n# install dependencies\npoetry install\n\n# unit tests\npytest -s -v\n\n# unit test with coverage report\nytest --cov=. -s -v\n\n# compile proto files to python\nprotoc -I ./protobuf/core_helper --python_out=./models/core_helper ./protobuf/core_helper/*.proto\n\n# to build container image\ndocker build -t ghcr.io/\u003cuser\u003e/biznext-event-tool:0.1.7 .\n\n# to build on M1 Mac\ndocker buildx build --platform linux/amd64 -t ghcr.io/\u003cuser\u003e/biznext-event-tool:0.1.7 .\n\n# push the image to registry\ndocker push  ghcr.io/\u003cuser\u003e/biznext-event-tool:0.1.7\n\n# export poetry dependencies to requirements.txt\n# required when building container images\npoetry export --without-hashes --format=requirements.txt \u003e requirements.txt\n\n# export poetry dev dependencies to requirements-dev.txt\n# required when running linting and unit tests on CI servers\npoetry export --dev  --without-hashes --format=requirements.txt \u003e requirements-dev.txt\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloppycoder%2Fbiznext-event-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloppycoder%2Fbiznext-event-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloppycoder%2Fbiznext-event-tool/lists"}