{"id":26511091,"url":"https://github.com/aiven-labs/python-fake-data-producer-for-apache-kafka","last_synced_at":"2025-07-05T18:34:13.534Z","repository":{"id":38023036,"uuid":"332772756","full_name":"Aiven-Labs/python-fake-data-producer-for-apache-kafka","owner":"Aiven-Labs","description":"The Python fake data producer for Apache Kafka®  is a complete demo app allowing you to quickly produce JSON fake streaming datasets and push it to an Apache Kafka topic.","archived":false,"fork":false,"pushed_at":"2024-04-27T05:38:38.000Z","size":214,"stargazers_count":85,"open_issues_count":3,"forks_count":38,"subscribers_count":62,"default_branch":"main","last_synced_at":"2025-06-23T00:38:20.966Z","etag":null,"topics":["aiven","aiven-cloud","apache-kafka","apache-kafka-producer","fake-data-generator","fake-datasets","fake-streaming","kafka","kafka-producer","pyton"],"latest_commit_sha":null,"homepage":"http://aiven.io","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/Aiven-Labs.png","metadata":{"files":{"readme":"README-gitpod.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2021-01-25T14:25:11.000Z","updated_at":"2025-06-18T13:41:56.000Z","dependencies_parsed_at":"2025-06-23T00:38:29.399Z","dependency_job_id":"dc267f47-5a6e-4614-bdcd-1d296f9f1281","html_url":"https://github.com/Aiven-Labs/python-fake-data-producer-for-apache-kafka","commit_stats":null,"previous_names":["aiven-labs/python-fake-data-producer-for-apache-kafka","aiven/python-fake-data-producer-for-apache-kafka"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Aiven-Labs/python-fake-data-producer-for-apache-kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Labs%2Fpython-fake-data-producer-for-apache-kafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Labs%2Fpython-fake-data-producer-for-apache-kafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Labs%2Fpython-fake-data-producer-for-apache-kafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Labs%2Fpython-fake-data-producer-for-apache-kafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aiven-Labs","download_url":"https://codeload.github.com/Aiven-Labs/python-fake-data-producer-for-apache-kafka/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aiven-Labs%2Fpython-fake-data-producer-for-apache-kafka/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263785077,"owners_count":23511039,"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":["aiven","aiven-cloud","apache-kafka","apache-kafka-producer","fake-data-generator","fake-datasets","fake-streaming","kafka","kafka-producer","pyton"],"created_at":"2025-03-21T02:19:41.591Z","updated_at":"2025-07-05T18:34:13.507Z","avatar_url":"https://github.com/Aiven-Labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quickstart with Gitpod\n\nThis workspace comes with some pre-installed stuff for you : \n\n* Python requirements have already been installed\n* avn CLI has already been installed\n* jq has benn installed\n\nFirst make sure to have an Aiven account, otherwise you are just a few clicks away of creating one [here](https://console.aiven.io/signup?utm_source=github\u0026utm_medium=organic\u0026utm_campaign=blog_art\u0026utm_content=post)\n\nThen make sure to get an personal access token, check this [video](https://www.youtube.com/watch?v=64G2QIMYOL4) to learn how to get one. \n\nOpen a terminal, you'll need to copy-paste or re-type all the bash commands below.\n\nNow you can login : \n\n```bash\navn user login --token\n\n```\n\nCreate a `certs` folder : \n\n```bash\nmkdir certs\n```\n\nSet your variables :\n```bash\nKAFKA_INSTANCE_NAME=my-kafka-demo\nCLOUD_REGION=aws-eu-south-1\nAIVEN_PLAN_NAME=startup-2\nDESTINATION_FOLDER_NAME=certs\n```\n\nIf you haven't yet, create a Aiven for Apache Kafka service : \n\n```bash\navn service create $KAFKA_INSTANCE_NAME     \\\n    -t kafka                                \\\n    --cloud $CLOUD_REGION                   \\\n    -p $AIVEN_PLAN_NAME                     \\\n    -c kafka.auto_create_topics_enable=true \\\n    -c kafka_rest=true                    \n\n```\n\nRetrieve your host and port from the console and set them : \nAnd retrieve the Apache Kafka Service URI with\n\n```bash\n\nKAFKA_HOST=$(avn service get $KAFKA_INSTANCE_NAME --json | jq -r '.service_uri_params.host')\nKAFKA_PORT=$(avn service get $KAFKA_INSTANCE_NAME --json | jq -r '.service_uri_params.port')\n\n```\n\nYou can wait for the newly created Apache Kafka instance to be ready with : \n\n```bash\navn service wait $KAFKA_INSTANCE_NAME\n```\n\nNow get your certificates : \n\n```bash\navn service user-creds-download $KAFKA_INSTANCE_NAME \\\n  -d $DESTINATION_FOLDER_NAME \\\n  --username avnadmin\n```\n\nAnd finally run the demo : \n\n```bash\n\npython main.py \\\n  --security-protocol ssl \\\n  --cert-folder $DESTINATION_FOLDER_NAME\\\n  --host $KAFKA_HOST \\\n  --port $KAFKA_PORT \\\n  --topic-name pizza-orders \\\n  --nr-messages 0 \\\n  --max-waiting-time 2 \\\n  --subject pizza\n\n```\n\nYou should see a continuous flow of data being pushed to Apache Kafka, to the topic defined by the `--topic-name` parameter. You can either use the Aiven console, or tools like [kcat](https://docs.aiven.io/docs/products/kafka/howto/kcat) to browse the data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven-labs%2Fpython-fake-data-producer-for-apache-kafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiven-labs%2Fpython-fake-data-producer-for-apache-kafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven-labs%2Fpython-fake-data-producer-for-apache-kafka/lists"}