{"id":21986538,"url":"https://github.com/alvations/dopplershift","last_synced_at":"2026-04-29T20:06:13.910Z","repository":{"id":57423663,"uuid":"203518838","full_name":"alvations/dopplershift","owner":"alvations","description":"Pythonic SQL for mere mortals","archived":false,"fork":false,"pushed_at":"2019-09-03T19:22:13.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-05T20:14:35.147Z","etag":null,"topics":["python","redshift","sql"],"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/alvations.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}},"created_at":"2019-08-21T06:14:40.000Z","updated_at":"2022-08-02T08:03:12.000Z","dependencies_parsed_at":"2022-08-30T03:51:42.435Z","dependency_job_id":null,"html_url":"https://github.com/alvations/dopplershift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alvations/dopplershift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvations%2Fdopplershift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvations%2Fdopplershift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvations%2Fdopplershift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvations%2Fdopplershift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alvations","download_url":"https://codeload.github.com/alvations/dopplershift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alvations%2Fdopplershift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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":["python","redshift","sql"],"created_at":"2024-11-29T18:19:16.239Z","updated_at":"2026-04-29T20:06:13.880Z","avatar_url":"https://github.com/alvations.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dopplershift\n\nPythonic SQL for mere mortals.\n\n# Install\n\n```\npip install -U dopplershift\n```\n\n\n# Usage\n\n\n```python\nfrom dopplershift import Connection\n\nhost   = 'rayleigh.3onystnrm1rn.us-east-1.redshift.amazonaws.com'\ndbname = 'testing'\nport   = '1234'\nuser   = 'alvations'\npwd    = 'JjMKkdW8vJABswyT'\n\ncon = Connection(dbname, host, port, user, pwd)\n```\n\n### Show all schemas and tables in DB.\n\n```python\ncon.show_all_tables()\n```\n\n[out]:\n\n```\ntable_schema  | table_name                                          \n--------------+----------------\ntesting       | data\nstagging      | results\nproduction    | results\n```\n\n### Show columns in specific table.\n\n```python\ncon.show_column_names('testing.data')\n```\n\n[out]:\n\n```\nview_schema name | view_name name | col_name name       | col_type varchar            | col_num int\n---------------------------------------------------------------------------------------------------\ntesting          |      data      | id                  | integer                     | 1          \ntesting          |      data      | text                | character varying(1024)     | 2          \ntesting          |      data      | language            | character varying(3)        | 4          \ntesting          |      data      | timestamp           | timestamp without time zone | 5          \n```\n\n### Other Functions.\n\n```python\n# Get column names.\n\u003e\u003e\u003e con.get_column_names('testing.data')\n('id', 'text', 'language', 'timestamp')\n\n# Get top N rows from table.\n\u003e\u003e\u003e con.topn_rows('testing.data', n=3, column_names=\"id, text, language\")\n[(1, \"hello world\", \"en\"), (2, \"hallo welt\", \"de\"), (3, \"你好，世界。\", \"zh\")]\n\n# Execute queries and fetch results.\n\u003e\u003e\u003e con.execute_fetchall(\"SELECT TOP 2 * FROM testing.data\")\n[ (1, \"hello world\", \"en\", datetime.datetime(2019, 9, 2, 14, 5, 58)),\n  (2, \"hallo welt\", \"de\", datetime.datetime(2019, 9, 2, 14, 6, 15)) ]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvations%2Fdopplershift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvations%2Fdopplershift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvations%2Fdopplershift/lists"}