{"id":25000862,"url":"https://github.com/schaffung/csv-mqtt","last_synced_at":"2025-04-12T09:19:22.448Z","repository":{"id":62565742,"uuid":"215039741","full_name":"schaffung/CSV-MQTT","owner":"schaffung","description":"A CSV to MQTT connector. Reads data from csv file and pushes it to a MQTT Broker.","archived":false,"fork":false,"pushed_at":"2024-09-21T08:33:53.000Z","size":10,"stargazers_count":18,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T09:19:11.975Z","etag":null,"topics":["csv","iot","mqtt","mqtt-client"],"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/schaffung.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":"2019-10-14T12:34:53.000Z","updated_at":"2025-01-10T08:35:13.000Z","dependencies_parsed_at":"2025-02-04T19:51:28.762Z","dependency_job_id":"c98ee0f0-e396-4ad0-ae83-d73cae1b56ae","html_url":"https://github.com/schaffung/CSV-MQTT","commit_stats":null,"previous_names":["srijan-sivakumar/csv-mqtt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schaffung%2FCSV-MQTT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schaffung%2FCSV-MQTT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schaffung%2FCSV-MQTT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schaffung%2FCSV-MQTT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schaffung","download_url":"https://codeload.github.com/schaffung/CSV-MQTT/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543836,"owners_count":21121838,"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":["csv","iot","mqtt","mqtt-client"],"created_at":"2025-02-04T19:51:22.711Z","updated_at":"2025-04-12T09:19:22.406Z","avatar_url":"https://github.com/schaffung.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV-MQTT\nA CSV to MQTT connector. Reads data from csv file and pushes it to a MQTT Broker.\n\n\nMany a times, we want to read a particular .csv file and then form a MQTT payload to publish it to cloud. ( Probably when working in IoT).\n\nSo the project as always came in due to a necessity. The idea is simple. The process will read the .csv file wherein the very first row contains the columns headers. ( Please add column headers before using the code or be ready to see something strange.)\nThen the same column headers are treated as Keys and the corresponding row values as Values in a JSON object while forming a MQTT Payload.\n\nFor example, If the csv data is as follows,\n\n```csv\nName,Age,School\ndummy_name,dummy_value,dummy_school\n```\n\nThen the resulting MQTT Payload will be of the form,\n\n```json\n{\n  \"Name\" : \"dummy_name\",\n  \"Age\" : \"dummy_value\",\n  \"School\" : \"dummy_school\"\n}\n```\n\nOne can install the package using pip\n\n```\npip3 install csv-mqtt\n```\n\nOnce installed, they can use the package by using the import\n\n```\nfrom csv_mqtt.csv_mqtt import CsvMqtt\n```\n\nThe `CsvMqtt` can be used to create objects for creating a pipeline for csv-mqtt.\n\nFor examples, one can check the example directory in the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschaffung%2Fcsv-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschaffung%2Fcsv-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschaffung%2Fcsv-mqtt/lists"}