{"id":27599676,"url":"https://github.com/tandohanthonynwiackah/fast_api_intro","last_synced_at":"2026-05-17T09:31:57.128Z","repository":{"id":264033196,"uuid":"869524381","full_name":"TandohAnthonyNwiAckah/fast_api_intro","owner":"TandohAnthonyNwiAckah","description":"FastAPI is a modern, fast (high-performance), web framework for building APIs with Python.","archived":false,"fork":false,"pushed_at":"2025-02-10T10:48:34.000Z","size":20183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T22:35:21.968Z","etag":null,"topics":["fastapi","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/TandohAnthonyNwiAckah.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,"zenodo":null}},"created_at":"2024-10-08T12:48:25.000Z","updated_at":"2025-02-10T10:48:38.000Z","dependencies_parsed_at":"2025-04-22T15:53:12.670Z","dependency_job_id":null,"html_url":"https://github.com/TandohAnthonyNwiAckah/fast_api_intro","commit_stats":null,"previous_names":["tandohanthonynwiackah/fast_api_intro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TandohAnthonyNwiAckah/fast_api_intro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TandohAnthonyNwiAckah%2Ffast_api_intro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TandohAnthonyNwiAckah%2Ffast_api_intro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TandohAnthonyNwiAckah%2Ffast_api_intro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TandohAnthonyNwiAckah%2Ffast_api_intro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TandohAnthonyNwiAckah","download_url":"https://codeload.github.com/TandohAnthonyNwiAckah/fast_api_intro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TandohAnthonyNwiAckah%2Ffast_api_intro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33133495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","python3"],"created_at":"2025-04-22T15:42:34.183Z","updated_at":"2026-05-17T09:31:57.109Z","avatar_url":"https://github.com/TandohAnthonyNwiAckah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Introduction\n\nFastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python\ntype hints. It is designed to be easy to use, allowing developers to build and deploy APIs quickly and efficiently.\n\n## Key Features\n\n- **Fast**: Very high performance, on par with Node.js and Go (thanks to Starlette and Pydantic).\n- **Easy**: Designed to be easy to use and learn.\n- **Built-in data validation**: Using Python type hints for input data validation and serialization.\n- **Asynchronous support**: Native support for asynchronous programming with Python's async/await syntax.\n- **Automatic interactive API documentation**: With Swagger UI and ReDoc.\n\n![FastAPI Swagger UI](screenshot/s1.png)\n\n## Installing a Virtual Environment Called `fastapi`\n\nTo start using FastAPI, it's a good practice to create a virtual environment. This ensures that your project\ndependencies are isolated from your system-wide Python installation.\n\n### Step 1: Create the Virtual Environment\n\nRun the following command to create a virtual environment named `fastapi`.\nYou can use any name for your virtual environment.\n\n```bash\npython -m venv fastapi\n```\n\n## Activate the Virtual Environment\n\nAfter creating the virtual environment, you need\nto activate it. Use the following command\ndepending on your operating system:\n\nFor macOS/Linux:\n\n```bash\nsource fastapi/bin/activate\n```\n\nFor Windows:\n\n```bash\nsource fastapi/bin/activate\n```\n\n\u003e Once activated, your command prompt should change to indicate that you are now working within the fastapi virtual\n\u003e environment.\n\n## Deactivate the Virtual Environment\n\nYou can deactivate the virtual environment by typing the command below.\n\n```bash\ndeactivate\n```\n\n## Installing FastApi\n\nOnce your virtual environment is activated, you can\ninstall FastAPI.\n\n```bash\npip install fastapi\n```\n\n## Installing Uvicorn\n\n```bash\npip install 'uvicorn[standard]'\n```\n\n## Running a FastAPI Application\n\nAfter installing the necessary dependencies, you can create a simple FastAPI application.\nSave the following code in a file named hello_world.py:\n\n```python\nfrom fastapi import FastAPI\n\napp = FastAPI()\n\n\n@app.get(\"/\")\nasync def read_root():\n    return {\"message\": \"Hello World !! Welcome to the FAST API\"}\n\n```\n\n## Running the FastAPI Application\n\n```bash\nuvicorn hello_world:app --reload\n```\n\n## Swagger UI Documentation\n\nFastAPI provides an interactive API documentation via Swagger UI.\nIt allows you to test the API endpoints directly from the browser.\n\n- Open your browser and navigate to:\n\n```bash\nhttp://127.0.0.1:8000/docs\n```\n\nYou will see a Swagger UI interface showing the available endpoints and methods. You can interact with the API by\nsending requests directly from this interface.\n\n## ReDoc Documentation\n\nIn addition to Swagger UI, FastAPI automatically generates documentation with ReDoc, which provides a more minimal and\nclean layout.\n\n- To access the ReDoc interface, navigate to:\n\n```bash\nhttp://127.0.0.1:8000/redoc\n```\n\nReDoc is another API documentation tool that displays all the available endpoints in a more structured manner.\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftandohanthonynwiackah%2Ffast_api_intro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftandohanthonynwiackah%2Ffast_api_intro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftandohanthonynwiackah%2Ffast_api_intro/lists"}