{"id":21395175,"url":"https://github.com/gabrielhora/streamer","last_synced_at":"2026-04-21T05:33:20.841Z","repository":{"id":145600114,"uuid":"94502217","full_name":"gabrielhora/streamer","owner":"gabrielhora","description":"Stream PostgreSQL queries using NDJSON","archived":false,"fork":false,"pushed_at":"2017-06-16T03:42:02.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T14:30:23.559Z","etag":null,"topics":["flask","ndjson","postgresql","python","python3"],"latest_commit_sha":null,"homepage":null,"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/gabrielhora.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":"2017-06-16T03:39:28.000Z","updated_at":"2021-02-22T10:11:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7f3607e-2863-4d35-ba0f-16484f8f9200","html_url":"https://github.com/gabrielhora/streamer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabrielhora/streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielhora%2Fstreamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielhora%2Fstreamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielhora%2Fstreamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielhora%2Fstreamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielhora","download_url":"https://codeload.github.com/gabrielhora/streamer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielhora%2Fstreamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017243,"owners_count":26086015,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask","ndjson","postgresql","python","python3"],"created_at":"2024-11-22T14:18:30.357Z","updated_at":"2025-10-13T23:22:54.824Z","avatar_url":"https://github.com/gabrielhora.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamer\n\nSimple way to stream any single PostgreSQL query using [NDJSON](http://ndjson.org/).\n\n## How to use\n\nThere is a single endpoint `POST /` with two parameters, `query` and `params`.\n\nThese are some body examples: \n\n```json\n{\n  \"query\": \"SELECT * FROM table WHERE field = %s\",\n  \"params\": [\"value\"]\n}\n```\n\n```json\n{\n  \"query\": \"SELECT * FROM table WHERE int_field = %(param1)s AND str_field = %(param2)s\",\n  \"params\": {\n    \"param1\": 123, \n    \"param2\": \"value2\"\n  }\n}\n```\n\n## Running\n\nRun locally:\n\n```\n$ pip install virtualenv\n$ virtualenv venv\n$ . venv\\bin\\activate\n(venv) $ pip install -r requirements.txt\n(venv) $ python app/main.py\n```\n\nOr use docker:\n\n```\n$ docker build -t streamer .\n$ docker run --rm -p 80:80 streamer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielhora%2Fstreamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielhora%2Fstreamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielhora%2Fstreamer/lists"}