{"id":29973258,"url":"https://github.com/freedom35/python-sqlite-to-markdown","last_synced_at":"2026-04-29T22:33:34.149Z","repository":{"id":106643771,"uuid":"584934499","full_name":"freedom35/python-sqlite-to-markdown","owner":"freedom35","description":"Python app to export SQLite query results to markdown.","archived":false,"fork":false,"pushed_at":"2024-04-02T20:55:30.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-04T07:36:34.303Z","etag":null,"topics":["database","markdown","python","sqlite"],"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/freedom35.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}},"created_at":"2023-01-03T22:27:06.000Z","updated_at":"2023-09-24T16:26:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8fb96a9-4c3b-4948-a4c3-8e2c0dd9ae0c","html_url":"https://github.com/freedom35/python-sqlite-to-markdown","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/freedom35/python-sqlite-to-markdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freedom35%2Fpython-sqlite-to-markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freedom35%2Fpython-sqlite-to-markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freedom35%2Fpython-sqlite-to-markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freedom35%2Fpython-sqlite-to-markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freedom35","download_url":"https://codeload.github.com/freedom35/python-sqlite-to-markdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freedom35%2Fpython-sqlite-to-markdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32446682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: 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":["database","markdown","python","sqlite"],"created_at":"2025-08-04T06:22:30.155Z","updated_at":"2026-04-29T22:33:34.139Z","avatar_url":"https://github.com/freedom35.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQLite Results to Markdown\nThis repo contains a Python app to export the results of a SQLite query to a [markdown](https://www.markdownguide.org) file.\n\nThis software may be used/updated under the terms of the **MIT license**.  \n\n## Requirements\n* [Python 3](https://www.python.org/downloads/)\n\n## Usage\nThe app is expecting the following command line args:\n\n|Arg|Description|\n|---|---|\n|1\u003csup\u003est\u003c/sup\u003e|Path to SQLite database file|\n|2\u003csup\u003end\u003c/sup\u003e|Path to SQL file containing source query|\n|3\u003csup\u003erd\u003c/sup\u003e (Optional)|Directory where markdown file will be created|\n\nNote: The markdown file created will have the same filename as the input sql file, but with the extension changed to **md**.\n\nExample:\n```sh\n$ python3 exportmd.py sample.db query.sql\n```\n\nIn this case, a *query.md* file with the results will be created in the current directory - the same directory as the *query.sql* file.\n\nExample with optional export directory:\n```sh\n$ python3 exportmd.py sample.db query.sql export-data\n```\n\nIn this case, a *query.md* file with the results will be created in the *export-data* directory.\n\n## Markdown File\nThe contents of the markdown file will depend on the query file and the results it produces. The markdown file will contain the following:\n\n1. A heading based on query filename.\n2. If the query file contains any SQL comments at the top of the file, these will be exported to the markdown file.\n3. The query results will be converted to a markdown table, with the field names being used as the table headings.\n\nAn example of the output format is shown below:\n\n```\n# query-filename-without-ext\n\nOptional comment(s) from start of query file.\n\n|ID|Value|\n|:-:|---|\n|1|Value A|\n|2|Value B|\n\n```\n\nNote: Numeric fields will be center aligned, normal text will be left aligned.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedom35%2Fpython-sqlite-to-markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreedom35%2Fpython-sqlite-to-markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreedom35%2Fpython-sqlite-to-markdown/lists"}