{"id":35240243,"url":"https://github.com/mrlonis/python-open-restaurant-fastapi","last_synced_at":"2026-04-02T02:17:34.660Z","repository":{"id":64422584,"uuid":"575231483","full_name":"mrlonis/python-open-restaurant-fastapi","owner":"mrlonis","description":"Demo API, written in Python FastAPI, with one route that takes a datetime string and returns a list of open restaurants, if any.","archived":false,"fork":false,"pushed_at":"2026-03-12T21:18:16.000Z","size":2016,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-13T03:44:03.536Z","etag":null,"topics":["fastapi","postgresql","python","sqlalchemy","sqlmodel"],"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/mrlonis.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-07T03:24:31.000Z","updated_at":"2026-03-12T21:18:20.000Z","dependencies_parsed_at":"2025-12-29T16:03:27.567Z","dependency_job_id":null,"html_url":"https://github.com/mrlonis/python-open-restaurant-fastapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrlonis/python-open-restaurant-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrlonis","download_url":"https://codeload.github.com/mrlonis/python-open-restaurant-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrlonis%2Fpython-open-restaurant-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["fastapi","postgresql","python","sqlalchemy","sqlmodel"],"created_at":"2025-12-30T04:58:48.061Z","updated_at":"2026-04-02T02:17:34.652Z","avatar_url":"https://github.com/mrlonis.png","language":"Python","readme":"# python-open-restaurant-fastapi\n\nDemo API using fastapi with one route that takes a datetime string and returns open restaurants, if any\n\n## Table of Contents\n\n- [python-open-restaurant-fastapi](#python-open-restaurant-fastapi)\n  - [Table of Contents](#table-of-contents)\n  - [Pre-requisites](#pre-requisites)\n    - [.env File](#env-file)\n    - [Docker](#docker)\n    - [Alembic Database Migrations](#alembic-database-migrations)\n  - [Linting](#linting)\n  - [Testing](#testing)\n  - [CSV Row Totals](#csv-row-totals)\n\n## Pre-requisites\n\n### .env File\n\nCreate a .env file in the root directory of your project based off of the `.env.sample` file.\n\n### Docker\n\nInstall Docker and run the following command to startup the database/api in Docker:\n\n```sh\ndocker compose up --build --pull postgresql --remove-orphans -V --wait\n```\n\n### Alembic Database Migrations\n\nOnce the database is up, we need to perform the database migration. To do this, run the following command:\n\n```sh\npoetry run alembic upgrade head\n```\n\n## Linting\n\nTo lint the project, run the following commands:\n\n```shell\npoetry run flake8 app tests\npoetry run pylint app tests\n```\n\n## Testing\n\nTo run the tests, be sure you have ran the [Docker Compose Command](#docker) and the [Alembic Database Migrations](#alembic-database-migrations), then run the following command:\n\n```sh\npoetry run pytest --cov --cov-report=html -n auto\n```\n\nThis will run the tests using xdist on multiple threads and generate a coverage report in the htmlcov directory.\n\n## CSV Row Totals\n\nI imported the provided CSV into Google Sheets to easily calculate the number of rows the csv import should make. You can view that via this link: [https://docs.google.com/spreadsheets/d/1t4kAuOgT4Oqoldq02rXDrrO2Mwgy80UkcfTBPhnlpK4/edit?usp=sharing](https://docs.google.com/spreadsheets/d/1t4kAuOgT4Oqoldq02rXDrrO2Mwgy80UkcfTBPhnlpK4/edit?usp=sharing)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlonis%2Fpython-open-restaurant-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrlonis%2Fpython-open-restaurant-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrlonis%2Fpython-open-restaurant-fastapi/lists"}