{"id":15014416,"url":"https://github.com/npodlozhniy/sql-magics","last_synced_at":"2026-03-18T02:34:47.086Z","repository":{"id":186508472,"uuid":"675272476","full_name":"NPodlozhniy/sql-magics","owner":"NPodlozhniy","description":"Useful magic tools to facilitate SQL writing and execution within Jupyter","archived":false,"fork":false,"pushed_at":"2023-08-06T12:34:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T00:17:28.672Z","etag":null,"topics":["ipython","ipython-magic","sqlparse"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/NPodlozhniy.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,"publiccode":null,"codemeta":null}},"created_at":"2023-08-06T11:23:07.000Z","updated_at":"2023-08-06T12:29:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"b744a177-2dd2-43ca-ba03-4572f2903a63","html_url":"https://github.com/NPodlozhniy/sql-magics","commit_stats":null,"previous_names":["npodlozhniy/sql-magics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPodlozhniy%2Fsql-magics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPodlozhniy%2Fsql-magics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPodlozhniy%2Fsql-magics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NPodlozhniy%2Fsql-magics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NPodlozhniy","download_url":"https://codeload.github.com/NPodlozhniy/sql-magics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243313409,"owners_count":20271178,"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":["ipython","ipython-magic","sqlparse"],"created_at":"2024-09-24T19:45:36.082Z","updated_at":"2025-12-28T05:39:14.710Z","avatar_url":"https://github.com/NPodlozhniy.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sql-magics\nUseful magic tools to facilitate SQL writing and execution within Jupyter\n\n## Quick Start\n\n - Use `%%format` to reformat the sql, in addition you can change the rules in the function [format_sql](https://github.com/NPodlozhniy/sql-magics/blob/e8ab1b270593f105ce457b8d47ce2de62c41f998/sql_magics.py#L73)\n - Use `%%format` or `%%pgsql` with the connection string to execute the queries in place\n - Use `%%format engine` to put the result of the query to dataframe if you using `sqlalchemy` engine\n\n## Details\n - Take a look at the demo notebook [testing.ipynb](https://github.com/NPodlozhniy/sql-magics/blob/master/testing.ipynb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpodlozhniy%2Fsql-magics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpodlozhniy%2Fsql-magics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpodlozhniy%2Fsql-magics/lists"}