{"id":19992697,"url":"https://github.com/mtpatter/daloy","last_synced_at":"2026-05-06T09:40:16.278Z","repository":{"id":80416563,"uuid":"111158095","full_name":"mtpatter/daloy","owner":"mtpatter","description":"Mock stream producer for time series data using Kafka.","archived":false,"fork":false,"pushed_at":"2021-11-15T20:47:01.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T22:29:14.088Z","etag":null,"topics":["docker","docker-compose","kafka","series","stream"],"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/mtpatter.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-11-17T22:50:25.000Z","updated_at":"2023-05-05T12:29:06.000Z","dependencies_parsed_at":"2023-06-07T15:30:21.883Z","dependency_job_id":null,"html_url":"https://github.com/mtpatter/daloy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtpatter/daloy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtpatter%2Fdaloy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtpatter%2Fdaloy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtpatter%2Fdaloy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtpatter%2Fdaloy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtpatter","download_url":"https://codeload.github.com/mtpatter/daloy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtpatter%2Fdaloy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32687814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"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":["docker","docker-compose","kafka","series","stream"],"created_at":"2024-11-13T04:52:16.695Z","updated_at":"2026-05-06T09:40:16.255Z","avatar_url":"https://github.com/mtpatter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"daloy\n============\n\n[![Docker Automated buil](https://img.shields.io/docker/automated/mtpatter/daloy.svg)](https://hub.docker.com/r/mtpatter/daloy/)\n\nMock stream producer for time series data using Kafka, converting a csv file into a real-time stream useful for testing streaming analytics.\nExample of the data format needed included in the data directory.\n\nThis uses [Confluent's Kafka client for Python](https://github.com/confluentinc/confluent-kafka-python), which wraps the librdkafka C library.\nThe librdkafka C library is installed into the Docker container built with the accompanying Dockerfile.\n\nRequires Docker and Docker Compose for the usage instructions below.\n\nUsage\n-------------------\n\nClone repo, cd into directory, and checkout appropriate branch.\n\n**Bring up Kafka broker and Zookeeper**\n\nFrom the daloy directory:\n\n```\n$ docker-compose up -d\n```\n\nThis will create a network named `daloy_default` with the default driver over which the other containers will connect.\n\n**Build docker container**\n\nFrom the daloy directory:\n\n```\n$ docker build -t \"daloy\" .\n```\n\nThis should now work:\n\n```\n$ docker run -it daloy python bin/sendStream.py -h\n```\n\n**Start producing a time series stream**\n\nSend time series from data/data.csv to topic “my-stream” with 10 seconds in time series equaling 1 second in real time:\n\n```\n$ docker run -it \\\n      --network=daloy_default \\\n      daloy python bin/sendStream.py data/data.csv my-stream 10\n```\n\n**Consume time series stream**\n\nTo start a consumer for printing all messages in real-time from the stream \"my-stream\":\n\n```\n$ docker run -it \\\n      --network=daloy_default \\\n      daloy python bin/printStream.py my-stream\n```\n\n**Mounting a data volume**\n\nDocker will see a local directory with data by mounting the current path to the container:\n\n```\n$ docker run -it \\\n      --network=daloy_default \\\n      -v $PWD:/home/daloy:rw \\\n      daloy python bin/sendStream.py localfile.csv my-stream 1\n```\n\n**Shut down and clean up**\n\nShutdown Kafka broker system:\n\n```\n$ docker-compose down\n```\n\nFind daloy container names with `docker ps` and shut down with `docker kill [id]`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtpatter%2Fdaloy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtpatter%2Fdaloy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtpatter%2Fdaloy/lists"}