{"id":18756087,"url":"https://github.com/nirdosh17/python-api-using-duckdb","last_synced_at":"2026-04-30T11:37:36.236Z","repository":{"id":99745117,"uuid":"604654385","full_name":"nirdosh17/python-api-using-duckdb","owner":"nirdosh17","description":"Sample containerized Python API using DuckDB","archived":false,"fork":false,"pushed_at":"2023-02-21T14:30:27.000Z","size":23330,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T23:02:50.639Z","etag":null,"topics":["containerization","duckdb","duckdb-database","flask","flask-api","python","python3"],"latest_commit_sha":null,"homepage":"","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/nirdosh17.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":"2023-02-21T14:14:50.000Z","updated_at":"2024-09-20T00:14:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf827a93-d327-4ede-990d-62c0b6cf6642","html_url":"https://github.com/nirdosh17/python-api-using-duckdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nirdosh17/python-api-using-duckdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirdosh17%2Fpython-api-using-duckdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirdosh17%2Fpython-api-using-duckdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirdosh17%2Fpython-api-using-duckdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirdosh17%2Fpython-api-using-duckdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirdosh17","download_url":"https://codeload.github.com/nirdosh17/python-api-using-duckdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirdosh17%2Fpython-api-using-duckdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"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":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["containerization","duckdb","duckdb-database","flask","flask-api","python","python3"],"created_at":"2024-11-07T17:35:05.983Z","updated_at":"2026-04-30T11:37:31.227Z","avatar_url":"https://github.com/nirdosh17.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Containerized Python API using DuckDB\nSample Containerized Python API using [DuckDB](https://duckdb.org/)\n\n## Flask API\nThe service exposes `GET http://localhost:8080/stats` api which returns aggregated user count from DuckDB database `test.duckdb`.\n\n**API response:**\n```json\n[\n\t{\n\t\t\"date\": \"2021-02-20\",\n\t\t\"users_joined\": 2598\n\t},\n\t{\n\t\t\"date\": \"2021-02-21\",\n\t\t\"users_joined\": 2578\n\t}\n]\n```\n\n## Running without docker\n```bash\nmake run\n```\n\n## Running as a container\n```bash\n# builds docker image\nmake docker.build\n\n# runs docker image\nmake docker.run\n```\n\n## Test Data\nTest data is coming from database file `test.duckdb`. It contains a table called `users` which has following fields with ~1 million randomly generated rows:\n\n| id (int32)| joined_date (date) | name (varchar)|    email (varchar)      |\n|-----------|--------------------|---------------|-------------------------|\n|      1    |     2021-09-14     |  Jarret Kuhn  |  carsondooley@wolf.name |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirdosh17%2Fpython-api-using-duckdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirdosh17%2Fpython-api-using-duckdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirdosh17%2Fpython-api-using-duckdb/lists"}