{"id":31190542,"url":"https://github.com/thomasnynas12/python-sample-fastapi-application","last_synced_at":"2026-05-14T12:36:30.815Z","repository":{"id":309222229,"uuid":"1035486665","full_name":"thomasnynas12/python-sample-FastAPI-application","owner":"thomasnynas12","description":"Sample Python application using FastAPI , Uvicorn and SQLAlchemy","archived":false,"fork":false,"pushed_at":"2025-08-10T15:51:44.000Z","size":431,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-19T22:35:34.181Z","etag":null,"topics":["fastapi","python","restful-api","sqlalchemy","sqlalchemy-python","uvicorn"],"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/thomasnynas12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2025-08-10T14:01:42.000Z","updated_at":"2025-08-10T16:54:51.000Z","dependencies_parsed_at":"2025-08-10T17:41:55.233Z","dependency_job_id":null,"html_url":"https://github.com/thomasnynas12/python-sample-FastAPI-application","commit_stats":null,"previous_names":["thomasnynas12/python-sample-fastapi-application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomasnynas12/python-sample-FastAPI-application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnynas12%2Fpython-sample-FastAPI-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnynas12%2Fpython-sample-FastAPI-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnynas12%2Fpython-sample-FastAPI-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnynas12%2Fpython-sample-FastAPI-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasnynas12","download_url":"https://codeload.github.com/thomasnynas12/python-sample-FastAPI-application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnynas12%2Fpython-sample-FastAPI-application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33025374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","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":["fastapi","python","restful-api","sqlalchemy","sqlalchemy-python","uvicorn"],"created_at":"2025-09-19T21:40:55.271Z","updated_at":"2026-05-14T12:36:30.806Z","avatar_url":"https://github.com/thomasnynas12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sample Python REST API application using [FastAPI](https://fastapi.tiangolo.com/) ,[Uvicorn](https://www.uvicorn.org/#introduction) and [SQLAlchemy](https://www.sqlalchemy.org/)\n\n![alt text](FastAPI.png)\n\n### FastAPI\n\nFastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.\n\nThe key features are:\n\n**Fast**: Very high performance, on par with NodeJS and Go (thanks to [Starlette](https://www.starlette.io/) and [Pydantic](https://pydantic-docs.helpmanual.io/)). One of the fastest Python frameworks available.\n\n**Fast to code**: It allows for significant increases in development speed.\n\n**Easy**: Designed to be easy to use and learn. Less time reading docs.\n**Short**: Minimize code duplication. Multiple features from each parameter declaration. Fewer bugs.\n**Robust**: Get production-ready code. With automatic interactive documentation.\n**Standards-based**: It’s based on the open standards for APIs, [OpenAPI](https://github.com/OAI/OpenAPI-Specification) and [JSON Schema](https://json-schema.org/).\n\n### Uvicorn\n\nUvicorn is a lightning-fast ASGI server implementation, using [uvloop](https://github.com/MagicStack/uvloop) and [httptools](https://github.com/MagicStack/httptools).\n\nUntil recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.\n\nASGI should help enable an ecosystem of Python web frameworks that are highly competitive against Node and Go in terms of achieving high throughput in IO-bound contexts. It also provides support for HTTP/2 and WebSockets, which cannot be handled by WSGI.\n\nUvicorn currently supports HTTP/1.1 and WebSockets. Support for HTTP/2 is planned.\n\n### SQLAlchemy\n\nSQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL.\n\nIt provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language.\n\n### Pydantic\n\nData validation and settings management using python type annotations.\n\npydantic enforces type hints at runtime, and provides user-friendly errors when data is invalid.\n\n## Setting up the VirtualEnv and install dependencies\n\nGo inside the project folder and execute the below commands. We will use [Pipenv](https://pypi.org/project/pipenv/) to setup the VirtualEnv.\n\n```\npipenv shell\npipenv install\n\n```\n\nDependencies will be installed from the Pipfile. Python version 3.9.2 is used for this project.\n\n## Run the Application\n\n```\npython main.py\n\n```\n\nThis will start the application on port 9000\n\n## Test the application\n\nFastAPI also automatically generated fully interactive API documentation that we can use to interact with our API. \nWe can visit http://127.0.0.1:9000/docs in our browser to see the interactive API documentation provided by [Swagger UI](https://github.com/swagger-api/swagger-ui):\n\n![alt text](sample-FastAPI.png)\n\nThe server will start at \u003chttp://localhost:9000/docs\u003e.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasnynas12%2Fpython-sample-fastapi-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasnynas12%2Fpython-sample-fastapi-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasnynas12%2Fpython-sample-fastapi-application/lists"}