{"id":39864040,"url":"https://github.com/piotrgredowski/table2sql","last_synced_at":"2026-01-18T14:04:58.819Z","repository":{"id":38185280,"uuid":"393708172","full_name":"piotrgredowski/table2sql","owner":"piotrgredowski","description":"Python CLI tool which allows you to convert file (CSV or Excel)  with table to SQL insert statements.","archived":false,"fork":false,"pushed_at":"2022-06-29T17:15:37.000Z","size":595,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T23:22:39.689Z","etag":null,"topics":["csv","excel","insert","sql","table","xlsx"],"latest_commit_sha":null,"homepage":"","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/piotrgredowski.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}},"created_at":"2021-08-07T14:39:00.000Z","updated_at":"2023-06-08T07:33:15.000Z","dependencies_parsed_at":"2022-09-26T17:40:48.339Z","dependency_job_id":null,"html_url":"https://github.com/piotrgredowski/table2sql","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/piotrgredowski/table2sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Ftable2sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Ftable2sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Ftable2sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Ftable2sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piotrgredowski","download_url":"https://codeload.github.com/piotrgredowski/table2sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piotrgredowski%2Ftable2sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["csv","excel","insert","sql","table","xlsx"],"created_at":"2026-01-18T14:04:58.128Z","updated_at":"2026-01-18T14:04:58.812Z","avatar_url":"https://github.com/piotrgredowski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# table2sql\n\n\n[![CI](https://github.com/piotrgredowski/table2sql/actions/workflows/ci.yml/badge.svg)](https://github.com/piotrgredowski/table2sql/actions/workflows/ci.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=piotrgredowski_table2sql\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=piotrgredowski_table2sql)\n[![codecov](https://codecov.io/gh/piotrgredowski/table2sql/branch/main/graph/badge.svg?token=fNkIDyWLq7)](https://codecov.io/gh/piotrgredowski/table2sql)\n[![CodeQL](https://github.com/piotrgredowski/table2sql/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/piotrgredowski/table2sql/actions/workflows/codeql-analysis.yml)\n\n[![PyPI version](https://badge.fury.io/py/table2sql.svg)](https://badge.fury.io/py/table2sql)\n\nPython CLI tool which allows you to convert file with table (CSV and Excel) to SQL insert statements.\n\n[Docs](https://gredowski.com/table2sql/)\n\n## Basic usage\n\n`some.csv`\n\n```csv\na,b,c,d\nint,str,float,sql\n1,2,3,(SELECT id FROM another.table WHERE name = 'Paul')\n5,6,7,(SELECT id FROM another.table WHERE name = 'Paul')\n```\n\nCommand:\n\n```bash\ntable2sql some.csv --output-table some.table --has-types-row\n```\n\nResult:\n\n```sql\nINSERT INTO some.table (a, b, c, d)\nVALUES (1, '2', 3.0, (SELECT id FROM another.table WHERE name = 'Paul')), (5, '6', 7.0, (SELECT id FROM another.table WHERE name = 'Paul'));\n```\n\n## Install\n\n```bash\npip install table2sql\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrgredowski%2Ftable2sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiotrgredowski%2Ftable2sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiotrgredowski%2Ftable2sql/lists"}