{"id":21726728,"url":"https://github.com/escalate/influxdb-csv-importer","last_synced_at":"2025-04-12T23:30:34.785Z","repository":{"id":47318392,"uuid":"76932619","full_name":"escalate/influxdb-csv-importer","owner":"escalate","description":"Import CSV files into InfluxDB v1.x","archived":false,"fork":false,"pushed_at":"2025-03-16T13:57:41.000Z","size":158,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T17:41:36.744Z","etag":null,"topics":["commandline","csv-import","influxdb","python"],"latest_commit_sha":null,"homepage":"","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/escalate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"custom":"https://paypal.me/felixboerner"}},"created_at":"2016-12-20T07:10:57.000Z","updated_at":"2025-03-16T13:57:44.000Z","dependencies_parsed_at":"2024-01-02T08:22:59.198Z","dependency_job_id":"76b0139f-c311-4e9b-bc07-5bbb7fa57f1f","html_url":"https://github.com/escalate/influxdb-csv-importer","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalate%2Finfluxdb-csv-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalate%2Finfluxdb-csv-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalate%2Finfluxdb-csv-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalate%2Finfluxdb-csv-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/escalate","download_url":"https://codeload.github.com/escalate/influxdb-csv-importer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647249,"owners_count":21139081,"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":["commandline","csv-import","influxdb","python"],"created_at":"2024-11-26T03:39:32.330Z","updated_at":"2025-04-12T23:30:34.769Z","avatar_url":"https://github.com/escalate.png","language":"Python","funding_links":["https://paypal.me/felixboerner"],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/escalate/influxdb-csv-importer/actions/workflows/test.yml/badge.svg?branch=master\u0026event=push)](https://github.com/escalate/influxdb-csv-importer/actions/workflows/test.yml)\n\n# InfluxDB CSV Importer\n\nImport CSV files into InfluxDB v1.x\n\n## Installation\n\nTested with Python 3.13.x on Ubuntu 22.04\n\nIf you encounter issues with 3.13.x patch versions of Python, please open a Github issue.\n\n### Requirements\n\nInstall needed requirements via pip\n\n#### Production\n\n```\n$ pip install -r requirements.txt\n```\n\n#### Development\n\n```\n$ pip install -r dev-requirements.txt\n```\n\n### Run\n\nRun tool from commandline\n\n```\n$ ./csvimporter.py\n```\n\n## Usage\n\n```\n$ ./csvimporter.py --help\n\nUsage: csvimporter.py [OPTIONS] CSVFILE\n\n    Commandline interface for InfluxDB / CSV Importer\n\nOptions:\n    --delimiter TEXT                Delimiter of .csv file (Default: ,)\n    --server TEXT                   Server address (Default: localhost)\n    --port TEXT                     Server port (Default: 8086)\n    --ssl                           Use ssl for connection to InfluxDB\n    --user TEXT                     User for authentication\n    --password TEXT                 Pasword for authentication\n    --database TEXT                 Database name\n    --measurement TEXT              Measurement name\n    --tags-columns TEXT             Columns that should be tags\n                                    e.g. col1,col2,col3\n    --timestamp-column TEXT         Name of the column to use as timestamp;\n                                    if option is not set, the current timestamp\n                                    is used\n    --timestamp-format [epoch|datetime|raw]\n                                    Format of the timestamp column used\n                                    to parse all timestamp\n                                    (Default: epoch timestamp);\n                                    epoch = epoch / unix timestamp\n                                    datetime = normal date and/or time notation\n                                    raw = raw epoch timestamp, do not convert\n    --timestamp-timezone TEXT       Timezone of the timestamp column\n    --locale TEXT                   Locale for ctype, numeric and monetary\n                                    values e.g. de_DE.UTF-8\n    --date-filter TEXT              Select only rows with a specific date\n                                    in the timestamp column for import\n                                    e.g. 2020-01-01\n    --column-ignorelist TEXT        Ignore a list of columns for import\n                                    e.g. col1,col2,col3\n    --convert-int-to-float          Convert integer values to float\n    --print-columns                 Print all column names in pretty json format\n    --print-rows                    Print all rows in pretty json format\n    --write-data                    Write data into InfluxDB\n    --verbose                       Enable verbose logging output\n    --help                          Show this message and exit.\n```\n\n## Docker\n\nBuild Docker image\n\n```\n$ docker build \\\n    --tag=csvimporter \\\n    .\n```\n\nRun Docker container from built image to print help\n\n```\n$ docker run \\\n    csvimporter\n\nUsage: csvimporter.py [OPTIONS] CSVFILE\n\n    Commandline interface for CsvImporter\n\nOptions:\n...\n```\n\nRun Docker container from built image with additional arguments\n\n```\n$ docker run \\\n    csvimporter \\\n    file.csv \\\n    --print-columns \\\n    --verbose\n```\n\n## Dependencies\n\n- [click](https://pypi.python.org/pypi/click)\n- [influxdb](https://pypi.python.org/pypi/influxdb)\n- [python-dateutil](https://pypi.python.org/pypi/python-dateutil)\n- [pytz](https://pypi.python.org/pypi/pytz)\n\n## Other Projects\n\n- A commandline tool to convert a CSV file into InfluxDB-compatible JSON written in Ruby [spuder/csv2influxdb](https://github.com/spuder/csv2influxdb)\n- A commandline tool to import CSV files into InfluxDB written in Golang [jpillora/csv-to-influxdb](https://github.com/jpillora/csv-to-influxdb)\n- Another commandline tool to import CSV files into InfluxDB but written in NodeJS [corpglory/csv2influx](https://github.com/CorpGlory/csv2influx)\n\n## Contribute\n\nPlease note the separate [contributing guide](https://github.com/escalate/influxdb-csv-importer/blob/master/CONTRIBUTING.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescalate%2Finfluxdb-csv-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescalate%2Finfluxdb-csv-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescalate%2Finfluxdb-csv-importer/lists"}