{"id":22741441,"url":"https://github.com/shaliamekh/clean-architecture-fastapi","last_synced_at":"2025-09-14T16:44:03.313Z","repository":{"id":229227142,"uuid":"773689433","full_name":"shaliamekh/clean-architecture-fastapi","owner":"shaliamekh","description":"Medium article \"Clean Architecture with Python\"","archived":false,"fork":false,"pushed_at":"2025-01-25T20:32:12.000Z","size":26,"stargazers_count":54,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T07:43:51.986Z","etag":null,"topics":["clean-architecture","fastapi","mongodb","python","tdd"],"latest_commit_sha":null,"homepage":"https://medium.com/@shaliamekh/clean-architecture-with-python-d62712fd8d4f","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/shaliamekh.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-03-18T08:14:30.000Z","updated_at":"2025-03-26T22:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d92c5852-2075-40b8-b047-f040e325f344","html_url":"https://github.com/shaliamekh/clean-architecture-fastapi","commit_stats":null,"previous_names":["shaliamekh/clean-architecture-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shaliamekh/clean-architecture-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaliamekh%2Fclean-architecture-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaliamekh%2Fclean-architecture-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaliamekh%2Fclean-architecture-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaliamekh%2Fclean-architecture-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaliamekh","download_url":"https://codeload.github.com/shaliamekh/clean-architecture-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaliamekh%2Fclean-architecture-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275135796,"owners_count":25411706,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":["clean-architecture","fastapi","mongodb","python","tdd"],"created_at":"2024-12-11T00:12:15.384Z","updated_at":"2025-09-14T16:44:03.286Z","avatar_url":"https://github.com/shaliamekh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clean Architecture on Python with FastAPI\n\n\u003ca href=\"https://github.com/shaliamekh/clean-architecture-fastapi/actions?query=workflow%3A+branch%3Amain++\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/shaliamekh/clean-architecture-fastapi/actions/workflows/python_ci.yaml/badge.svg?branch=main\u0026event=push\" alt=\"CI\"\u003e\n\u003c/a\u003e\n\nThis repository serves as an illustrative example of implementing Clean Architecture\nprinciples in a Python application using FastAPI. It accompanies the Medium article\n[“Clean Architecture with Python”](https://medium.com/@shaliamekh/clean-architecture-with-python-d62712fd8d4f).\n\n## Local setup\n\nCreate a virtual environment and install dependencies\n\n```shell\n  python3 -m venv venv \u0026\u0026 venv/bin/pip install -r src/requirements.txt\n```\nLaunch a mongodb instance using Docker\n```shell\n  docker run --rm -d -p 27017:27017 --name=mongo-auctions mongo:8.0.4\n```\n\nRun tests\n```shell\n  venv/bin/pytest src/tests\n```\n\nStart FastAPI application\n\n```shell\n  venv/bin/fastapi dev src/drivers/rest/main.py\n```\n\n## Clean up\n\nRemove the mongodb container\n```shell\n  docker rm -f mongo-auctions\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaliamekh%2Fclean-architecture-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaliamekh%2Fclean-architecture-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaliamekh%2Fclean-architecture-fastapi/lists"}