{"id":20375111,"url":"https://github.com/hebertcisco/deploy-python-fastapi-in-vercel","last_synced_at":"2025-10-23T18:39:43.844Z","repository":{"id":65495349,"uuid":"579529975","full_name":"hebertcisco/deploy-python-fastapi-in-vercel","owner":"hebertcisco","description":"This example shows how to use FastApi on Vercel with Serverless Functions using the Python Runtime","archived":false,"fork":false,"pushed_at":"2024-06-08T15:57:04.000Z","size":30,"stargazers_count":99,"open_issues_count":0,"forks_count":56,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-09T12:12:56.226Z","etag":null,"topics":["fastapi","fastapi-boilerplate","fastapi-template","fastapi-users","vercel","vercel-deployment","vercel-hosting","vercel-serverless","vercel-serverless-api","vercel-serverless-functions"],"latest_commit_sha":null,"homepage":"https://deploy-python-fastapi-in-vercel.vercel.app/docs","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/hebertcisco.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}},"created_at":"2022-12-18T01:38:23.000Z","updated_at":"2024-09-15T12:02:46.000Z","dependencies_parsed_at":"2023-12-28T18:45:41.845Z","dependency_job_id":"4125e3de-1426-423d-bd37-7fca2bca29fe","html_url":"https://github.com/hebertcisco/deploy-python-fastapi-in-vercel","commit_stats":null,"previous_names":[],"tags_count":3,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebertcisco%2Fdeploy-python-fastapi-in-vercel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebertcisco%2Fdeploy-python-fastapi-in-vercel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebertcisco%2Fdeploy-python-fastapi-in-vercel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebertcisco%2Fdeploy-python-fastapi-in-vercel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hebertcisco","download_url":"https://codeload.github.com/hebertcisco/deploy-python-fastapi-in-vercel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230479864,"owners_count":18232630,"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","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","fastapi-boilerplate","fastapi-template","fastapi-users","vercel","vercel-deployment","vercel-hosting","vercel-serverless","vercel-serverless-api","vercel-serverless-functions"],"created_at":"2024-11-15T01:28:50.705Z","updated_at":"2025-10-23T18:39:38.793Z","avatar_url":"https://github.com/hebertcisco.png","language":"Python","funding_links":["https://www.buymeacoffee.com/hebertcisco","https://img.buymeacoffee.com/button-api/?text=Buy"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"100px\" src=\"https://upload.wikimedia.org/wikipedia/commons/5/5e/Vercel_logo_black.svg\" align=\"center\" alt=\":package: deploy-python-fastapi-in-vercel\" /\u003e\n \u003ch2 align=\"center\"\u003e:package: deploy-python-fastapi-in-vercel\u003c/h2\u003e\n \u003cp align=\"center\"\u003eThis example shows how to use FastApi  on Vercel with Serverless Functions using the Python Runtime.\u003c/p\u003e\n\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/issues\"\u003e\n      \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/hebertcisco/deploy-python-fastapi-in-vercel?style=flat\u0026color=336791\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/pulls\"\u003e\n      \u003cimg alt=\"GitHub pull requests\" src=\"https://img.shields.io/github/issues-pr/hebertcisco/deploy-python-fastapi-in-vercel?style=flat\u0026color=336791\" /\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n  \u003ca href=\"https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/issues/new/choose\"\u003eReport Bug\u003c/a\u003e\n  \u003ca href=\"https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/issues/new/choose\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n  \u003ch3 align=\"center\"\u003eSystems on which it has been tested.\u003c/h3\u003e\n \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ubuntu.com/download\"\u003e\n      \u003cimg alt=\"Ubuntu\" src=\"https://img.shields.io/badge/Ubuntu-E95420?style=flat\u0026logo=ubuntu\u0026logoColor=white\" /\u003e\n    \u003c/a\u003e\n  \u003ca href=\"https://www.microsoft.com/pt-br/software-download/windows10\"\u003e\n      \u003cimg alt=\"Windows\" src=\"https://img.shields.io/badge/Windows-0078D6?style=flat\u0026logo=windows\u0026logoColor=white\" /\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003cp align=\"center\"\u003eDid you like the project? Please, considerate \u003ca href=\"https://www.buymeacoffee.com/hebertcisco\"\u003ea donation\u003c/a\u003e to help improve!\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003e\u003c/strong\u003e✨\u003c/p\u003e\n\n# Getting started\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhebertcisco%2Fdeploy-python-fastapi-in-vercel%2Ftree%2Fmain%2Fpython%2FFastApi\u0026demo-title=FastApi%20%2B%20Vercel\u0026demo-description=Use%20FastApi%202%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.\u0026demo-url=https%3A%2F%2FFastApi-python-template.vercel.app%2F\u0026demo-image=https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png)\n\n# FastApi + Vercel\n\nThis example shows how to use FastApi 0.88.0 on Vercel with Serverless Functions using the [Python Runtime](https://vercel.com/docs/concepts/functions/serverless-functions/runtimes/python).\n\n[![Python testing](https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/actions/workflows/python-app.yml)\n[![Docker Image CI](https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/actions/workflows/docker-image.yml/badge.svg)](https://github.com/hebertcisco/deploy-python-fastapi-in-vercel/actions/workflows/docker-image.yml)\n\n## Demo\n\n[deploy-python-fastapi-in-vercel.vercel.app](https://deploy-python-fastapi-in-vercel.vercel.app)\n\n## How it Works\n\nThis example uses the Web Server Gateway Interface (WSGI) with FastApi to enable handling requests on Vercel with Serverless Functions.\n\n## Running Locally\n\n### With Docker Compose\n\n```bash\ndocker-compose up\n```\n\n### With Docker\n\n```bash\n# Build the Docker image\ndocker build -t deploy-python-fastapi-in-vercel .\n\n# Run the Docker container\ndocker run -p 8000:8000 deploy-python-fastapi-in-vercel\n\n```\n\n### With uvicorn\n\n#### Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n```bash\nuvicorn main:app --host 0.0.0.0 --port 8000\n```\n\nYour FastApi application is now available at `http://localhost:8000`.\n\n## One-Click Deploy\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=vercel-examples):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhebertcisco%2Fdeploy-python-fastapi-in-vercel%2Ftree%2Fmain%2Fpython%2FFastApi\u0026demo-title=FastApi%20%2B%20Vercel\u0026demo-description=Use%20FastApi%202%20on%20Vercel%20with%20Serverless%20Functions%20using%20the%20Python%20Runtime.\u0026demo-url=https%3A%2F%2FFastApi-python-template.vercel.app%2F\u0026demo-image=https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\nOr buy me a coffee 🙌🏾\n\n\u003ca href=\"https://www.buymeacoffee.com/hebertcisco\"\u003e\n    \u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Buy me a coffee\u0026emoji=\u0026slug=hebertcisco\u0026button_colour=FFDD00\u0026font_colour=000000\u0026font_family=Inter\u0026outline_colour=000000\u0026coffee_colour=ffffff\" /\u003e\n\u003c/a\u003e\n\n## 📝 License\n\nCopyright © 2024 [Hebert F Barros](https://github.com/hebertcisco).\u003cbr /\u003e\nThis project is [MIT](LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebertcisco%2Fdeploy-python-fastapi-in-vercel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhebertcisco%2Fdeploy-python-fastapi-in-vercel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebertcisco%2Fdeploy-python-fastapi-in-vercel/lists"}