{"id":19553956,"url":"https://github.com/tuan3w/python-rest-template","last_synced_at":"2026-04-18T19:31:55.283Z","repository":{"id":39885724,"uuid":"492089683","full_name":"tuan3w/python-rest-template","owner":"tuan3w","description":"A clean, scalable, i18n ready FastAPI template","archived":false,"fork":false,"pushed_at":"2023-10-05T23:32:13.000Z","size":225,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T02:29:26.548Z","etag":null,"topics":["boilerplate","dependency-injection","domain-driven-design","fastapi","i18n","python","rest-api","sqlalchemy","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/tuan3w.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"tuan3w","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-05-14T02:10:35.000Z","updated_at":"2023-12-14T00:39:57.000Z","dependencies_parsed_at":"2024-11-11T04:27:58.148Z","dependency_job_id":"c222ec0e-eb8c-4cdf-adcc-f3cb29f8e760","html_url":"https://github.com/tuan3w/python-rest-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tuan3w/python-rest-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuan3w%2Fpython-rest-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuan3w%2Fpython-rest-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuan3w%2Fpython-rest-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuan3w%2Fpython-rest-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuan3w","download_url":"https://codeload.github.com/tuan3w/python-rest-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuan3w%2Fpython-rest-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"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":["boilerplate","dependency-injection","domain-driven-design","fastapi","i18n","python","rest-api","sqlalchemy","template"],"created_at":"2024-11-11T04:25:32.141Z","updated_at":"2026-04-18T19:31:55.250Z","avatar_url":"https://github.com/tuan3w.png","language":"Python","readme":"# python-rest-template\n\nA clean Python template for your next REST projects.\n\n## Features\n\n- [x] Scalable folder structure\n- [x] Consistent style, be productive with useful pre-commit hooks\n- [x] i18n support\n\n## Sample App\n\nThis repo contains a demo for a chat app. You can create threads, messages.\nHere are all APIs in the repo:\n![chat-app](./sample-api.png)\n## Setup\nYou need to install [Pipenv](https://pipenv.pypa.io/en/latest/) in your machine.\n\n```bash\npipenv shell\npipenv install\npipenv install --dev\npre-commit install # install pre-commit hooks\n```\n\n## Run app\n\n```bash\ncp config.yaml.example config.yaml\n# update your app config in config.yaml\npipenv run app\n```\n\nNow, you can check API docs located at http://localhost:8000/docs .\n\n## Test apps\n\n```bash\npipenv run test\n```\n\nTo show code coverage, just run:\n\n```bash\npipenv run test-cov\n```\n\nIn order to show code coverage in VsCode, you will need to install [Coverage Gutters extension](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters).\n\n## Database migration\n\n```bash\ncp alembic.ini.example alembic.ini\n# update alembic.ini config file\nalembic upgrade head\n```\n\n## Error code localization with i18n\n\n```bash\n./extract_messages.sh\n# update your translation in `base.po` files\n./update_translation.sh\n```\n\n## License\n\n[MIT](LICENSE)\n","funding_links":["https://github.com/sponsors/tuan3w"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuan3w%2Fpython-rest-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuan3w%2Fpython-rest-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuan3w%2Fpython-rest-template/lists"}