{"id":26522393,"url":"https://github.com/jabercrombia/csv-to-sql","last_synced_at":"2026-05-06T21:38:48.378Z","repository":{"id":283545748,"uuid":"952105496","full_name":"jabercrombia/csv-to-sql","owner":"jabercrombia","description":"A simple Python script that converts CSV files into SQL CREATE TABLE and INSERT statements. Drop your CSV files into the csv/ directory, run the script, and get structured SQL output in the sql/ directory","archived":false,"fork":false,"pushed_at":"2025-03-20T19:16:23.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T20:47:30.179Z","etag":null,"topics":["csv","pandas","python","sql"],"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/jabercrombia.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-20T18:35:05.000Z","updated_at":"2025-03-20T19:17:38.000Z","dependencies_parsed_at":"2025-03-20T20:47:32.764Z","dependency_job_id":"4e032605-a060-489e-915b-9dd6853038a8","html_url":"https://github.com/jabercrombia/csv-to-sql","commit_stats":null,"previous_names":["jabercrombia/csv-to-sql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fcsv-to-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fcsv-to-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fcsv-to-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabercrombia%2Fcsv-to-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabercrombia","download_url":"https://codeload.github.com/jabercrombia/csv-to-sql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244805104,"owners_count":20513220,"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","pandas","python","sql"],"created_at":"2025-03-21T13:26:52.588Z","updated_at":"2026-05-06T21:38:48.322Z","avatar_url":"https://github.com/jabercrombia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV to SQL Converter\n\nThis script converts CSV files from the `csv/` directory into SQL `CREATE TABLE` and `INSERT` statements, saving the output in the `sql/` directory.\n\n## Directory Structure\n```\nproject_root/\n│-- csv/        # Place CSV files here\n│-- sql/        # Generated SQL files are saved here\n│-- script.py   # Python script to convert CSV to SQL\n```\n\n## Input Requirements\n- CSV files should be placed in the `csv/` directory.\n- The first row must contain column names.\n- Ensure correct formatting (e.g., no empty headers).\n\n## Usage\n1. **Install Dependencies** (if not installed):\n   ```sh\n   pip install pandas\n   ```\n2. **Run the Script**:\n   ```sh\n   python script.py\n   ```\n3. **Output**:\n   - The generated SQL file is saved in the `sql/` directory.\n   - It is named after the CSV file (e.g., `csv/data.csv` → `sql/data.sql`).\n\n\n## Next Steps\n- Improve SQL type inference (e.g., `INTEGER` for `id`, `year`).\n- Add error handling for incorrect CSV formats.\n- Optimize bulk inserts for efficiency.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabercrombia%2Fcsv-to-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabercrombia%2Fcsv-to-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabercrombia%2Fcsv-to-sql/lists"}