{"id":35093857,"url":"https://github.com/mhered/fastapi_tutorial","last_synced_at":"2026-05-21T11:02:47.072Z","repository":{"id":135439483,"uuid":"535436689","full_name":"mhered/fastapi_tutorial","owner":"mhered","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-11T23:50:20.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-29T07:21:09.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mhered.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-11T22:00:27.000Z","updated_at":"2022-09-11T22:05:52.000Z","dependencies_parsed_at":"2023-04-26T08:34:14.754Z","dependency_job_id":null,"html_url":"https://github.com/mhered/fastapi_tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhered/fastapi_tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhered%2Ffastapi_tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhered%2Ffastapi_tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhered%2Ffastapi_tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhered%2Ffastapi_tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhered","download_url":"https://codeload.github.com/mhered/fastapi_tutorial/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhered%2Ffastapi_tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33298268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: 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":[],"created_at":"2025-12-27T15:03:25.988Z","updated_at":"2026-05-21T11:02:47.067Z","avatar_url":"https://github.com/mhered.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntypora-copy-images-to: ../../../../../home/mhered/fastapi_tutorial/assets/images\n---\n\n# FastAPI tutorial\n\n## Installation\n\n```bash\n$ pip install fastapi[all]\n```\n\n## Hello World in 7 steps\n\nCreate `main.py`:\n\n```python\nfrom fastapi import FastAPI # 1) import FastAPI\n\nmy_app = FastAPI()  # 2) create a FastAPI instance in the variable my_app\n\n@my_app.get(\"/\")  # 3) define a path operation decorator for GET requests to the URL \"/\"\nasync def root():  # 4) write the path operation function\n    return {\"message\": \"Hello World!\"}  # 5) return the content\n```\n\nthen 6) run this basic JSON server using `uvicorn` with:\n\n```bash\n$ uvicorn main:my_app --reload\nINFO:     Will watch for changes in these directories: ['/home/mhered/fastapi_tutorial']\nINFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)\nINFO:     Started reloader process [73948] using watchgod\nINFO:     Started server process [73950]\nINFO:     Waiting for application startup.\nINFO:     Application startup complete.\nINFO:     127.0.0.1:41690 - \"GET / HTTP/1.1\" 200 OK\n\n```\n\nand 7) open your browser at http://127.0.0.1:8000: \n\n![](/home/mhered/fastapi_tutorial/assets/images/fastapi_helloworld.png)\n\nYou also get interactive documentation at http://127.0.0.1:8000/docs:\n\n![fastapi_helloworld_docs](/home/mhered/fastapi_tutorial/assets/images/fastapi_helloworld_docs.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhered%2Ffastapi_tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhered%2Ffastapi_tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhered%2Ffastapi_tutorial/lists"}