{"id":15142583,"url":"https://github.com/devbruce/fastapi-di-tpl","last_synced_at":"2025-04-16T02:21:22.978Z","repository":{"id":257561625,"uuid":"858641338","full_name":"devbruce/fastapi-di-tpl","owner":"devbruce","description":"FastAPI with Dependency Injector Template","archived":false,"fork":false,"pushed_at":"2025-03-29T07:15:16.000Z","size":330,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T14:57:53.841Z","etag":null,"topics":["dependency-injector","fastapi","template"],"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/devbruce.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-17T09:18:34.000Z","updated_at":"2025-03-29T07:12:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5c53910-a689-4ffc-9da1-15a75dbceeea","html_url":"https://github.com/devbruce/fastapi-di-tpl","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"05a42177c83f42f98fe26ef8bbcda6ca78979492"},"previous_names":["devbruce/fastapi-di-tpl"],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbruce%2Ffastapi-di-tpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbruce%2Ffastapi-di-tpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbruce%2Ffastapi-di-tpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbruce%2Ffastapi-di-tpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbruce","download_url":"https://codeload.github.com/devbruce/fastapi-di-tpl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249183800,"owners_count":21226261,"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":["dependency-injector","fastapi","template"],"created_at":"2024-09-26T09:42:54.533Z","updated_at":"2025-04-16T02:21:22.956Z","avatar_url":"https://github.com/devbruce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    FastAPI with Dependency Injector\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/devbruce/fastapi-di-tpl/actions/workflows/test.yml/badge.svg?branch=main\" alt=\"github-action\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/release/devbruce/fastapi-di-tpl.svg\" alt=\"release\" /\u003e\n    \u003cbr\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Python-3.13-blue?style=flat\u0026logo=python\" alt=\"python\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/FastAPI-0.115-brightgreen?style=flat\u0026logo=fastapi\" alt=\"fastapi\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Dependency Injector-4.45-skyblue?style=flat\" alt=\"dependency-injector\" /\u003e\n    \u003cbr\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json\" alt=\"poetry\" /\u003e\n\u003c/p\u003e\n\n\u003e [!NOTE]  \n\u003e This repository is a template of [FastAPI](https://fastapi.tiangolo.com/) with [Dependency Injector](https://python-dependency-injector.ets-labs.org/)\n\n## 📖 How to Set Local Environment\n\n### 🛠️ Prerequisites\n\n- [pyenv](https://github.com/pyenv/pyenv)\n- [Poetry](https://python-poetry.org/)\n- [direnv](https://direnv.net/)\n\n\u003cbr\u003e\n\n### ✔️ Set Environment Variables\n\nCopy  [`.envrc.example`](./.envrc.example) to `.envrc` for setting environment variables with [direnv](https://direnv.net/)\n\n```bash\ncp .envrc.example .envrc\n```\n\n```bash\ndirenv allow\n```\n\n\u003cbr\u003e\n\n### ✔️ Create Virtual Environment with [Poetry](https://python-poetry.org/)\n\n- Install python with [pyenv](https://github.com/pyenv/pyenv)\n\n```bash\npyenv install ${PYTHON_VERSION}\n```\n\n- Set poetry config\n\n```bash\npoetry config virtualenvs.in-project true\n```\n\n- Create virtualenv(`.venv`) with poetry\n\n```bash\npoetry env use $(pyenv root)/versions/${PYTHON_VERSION}/bin/python\n```\n\n- Install python dependencies with poetry([`poetry.lock`](./poetry.lock))\n\n```bash\npoetry install\n```\n\n- Activate virtualenv(`.venv`)\n\n\u003e Ref: [managing-environments#activating-the-environment](https://python-poetry.org/docs/managing-environments#activating-the-environment)\n\n```bash\neval $(poetry env activate)\n```\n\n- Activate virtualenv(`.venv`) with plugin([python-poetry/poetry-plugin-shell](https://github.com/python-poetry/poetry-plugin-shell))\n\n```bash\npoetry shell\n```\n\n\u003cbr\u003e\n\n### ✔️ Install pre-commit Hooks(`.git/hooks`)\n\n\u003e pre-commit: [Link](https://pre-commit.com/)\n\n```bash\npre-commit install -t pre-commit\n```\n\n```bash\npre-commit install -t pre-push\n```\n\n\u003cbr\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e🖱️ Run Manually\u003c/summary\u003e\n\n```bash\npre-commit run\n```\n\n\u003c/details\u003e\n\n\u003cbr\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e🖱️ How to Skip Hooks\u003c/summary\u003e\n\nAfter installing the hooks, you can use the `--no-verify` option to skip it.\n\n```bash\ngit commit --no-verify\n```\n\n```bash\ngit push --no-verify\n```\n\n\u003c/details\u003e\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003e [!TIP]  \n\u003e For details on the make commands, refer to the [`Makefile`](./Makefile)\n\n## 🚀 Run Server on Local\n\n```bash\nmake run\n```\n\n\u003cbr\u003e\n\n## 💯 Test\n\n```bash\nmake test\n```\n\n\u003cbr\u003e\n\n## ✅ Lint \u0026 Format\n\nCheck lint \u0026 format only\n\n```bash\nmake check\n```\n\nFormat\n\n```bash\nmake format\n```\n\n\u003cbr\u003e\u003cbr\u003e\n\n## 👤 Authors\n\n- Maintainer: @devbruce\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbruce%2Ffastapi-di-tpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbruce%2Ffastapi-di-tpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbruce%2Ffastapi-di-tpl/lists"}