{"id":15050619,"url":"https://github.com/zblesk/csv-to-sqlite","last_synced_at":"2025-03-17T15:13:45.240Z","repository":{"id":62565759,"uuid":"52433014","full_name":"zblesk/csv-to-sqlite","owner":"zblesk","description":"A command-line tool that copies data from CSV files into a SQLite database.","archived":false,"fork":false,"pushed_at":"2024-02-28T10:47:37.000Z","size":60,"stargazers_count":73,"open_issues_count":4,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-15T01:37:44.033Z","etag":null,"topics":["command-line","converter","python3","sqlite","tools"],"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/zblesk.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-02-24T10:09:56.000Z","updated_at":"2025-02-01T18:54:34.000Z","dependencies_parsed_at":"2024-02-28T11:43:01.985Z","dependency_job_id":"7e06c91d-c715-48cb-9222-e1eb89be3a76","html_url":"https://github.com/zblesk/csv-to-sqlite","commit_stats":{"total_commits":43,"total_committers":8,"mean_commits":5.375,"dds":0.6976744186046512,"last_synced_commit":"1c6c45cac3981397fa32cb94d731492d24fad81d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zblesk%2Fcsv-to-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zblesk%2Fcsv-to-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zblesk%2Fcsv-to-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zblesk%2Fcsv-to-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zblesk","download_url":"https://codeload.github.com/zblesk/csv-to-sqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056424,"owners_count":20390719,"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":["command-line","converter","python3","sqlite","tools"],"created_at":"2024-09-24T21:28:04.233Z","updated_at":"2025-03-17T15:13:45.218Z","avatar_url":"https://github.com/zblesk.png","language":"Python","readme":"csv-to-sqlite\r\n=============\r\n\r\nThis is a simple, **datatype-guessing** script that takes CSV files as input and copies their contents into a SQLite database.  \r\n(Column names are taken from the headers (first row) in the csv file.)  \r\nIntended for **Python 3**. (I know it *did* run on Py2 as some people tried, but I haven't tested it.)\r\n\r\n## Links \r\n\r\n* [Source on GitHub](https://github.com/zblesk/csv-to-sqlite) \r\n* [PyPI page](https://pypi.org/project/csv-to-sqlite/) \r\n* [Introductory blog post with basic intro + a how-to](http://zblesk.net/blog/csv-to-sqlite/)\r\n* [Other related blog posts](https://zblesk.net/blog/tag/csv-to-sqlite/) \r\n\r\n## Overview\r\n\r\nInstalls via \r\n\r\n```\r\n pip install csv-to-sqlite\r\n```\r\n\r\nTo find out more, run\r\n\r\n```\r\n csv-to-sqlite --help\r\n```\r\n\r\nIf you've installed the package as a dependency for your own script, you can use it like this:\r\n\r\n```python\r\nimport csv_to_sqlite \r\n\r\n# all the usual options are supported\r\noptions = csv_to_sqlite.CsvOptions(typing_style=\"full\", encoding=\"windows-1250\") \r\ninput_files = [\"abilities.csv\", \"moves.csv\"] # pass in a list of CSV files\r\ncsv_to_sqlite.write_csv(input_files, \"output.sqlite\", options)\r\n```\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzblesk%2Fcsv-to-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzblesk%2Fcsv-to-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzblesk%2Fcsv-to-sqlite/lists"}