{"id":15527269,"url":"https://github.com/vladisa88/fastapi-ormar-utilities","last_synced_at":"2026-03-12T15:03:03.314Z","repository":{"id":53460537,"uuid":"343385054","full_name":"vladisa88/fastapi-ormar-utilities","owner":"vladisa88","description":"Small package for making views in FastAPI cleaner","archived":false,"fork":false,"pushed_at":"2021-03-30T08:25:12.000Z","size":12,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T23:32:11.003Z","etag":null,"topics":["fastapi","orm","ormar","python","rest"],"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/vladisa88.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}},"created_at":"2021-03-01T11:01:56.000Z","updated_at":"2022-11-08T06:25:25.000Z","dependencies_parsed_at":"2022-09-02T15:31:55.122Z","dependency_job_id":null,"html_url":"https://github.com/vladisa88/fastapi-ormar-utilities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladisa88%2Ffastapi-ormar-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladisa88%2Ffastapi-ormar-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladisa88%2Ffastapi-ormar-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladisa88%2Ffastapi-ormar-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladisa88","download_url":"https://codeload.github.com/vladisa88/fastapi-ormar-utilities/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250432443,"owners_count":21429671,"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":["fastapi","orm","ormar","python","rest"],"created_at":"2024-10-02T11:05:20.015Z","updated_at":"2026-03-12T15:03:03.219Z","avatar_url":"https://github.com/vladisa88.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FASTAPI-ORMAR-UTILITIES\n![](https://www.code-inspector.com/project/19657/score/svg)\n## Small package for better interaction with Ormar ORM.\n\n### This package makes your views cleaner\n\n### Features:\n* Fully async\n* Compatible with FastAPI\n* In my opinion Ormar is the best ORM for FastAPI\n* Support `select_related()` method\n* Handle `Not found` exceptions\n\n### Install with pip\n```\npip install fastapi-ormar-utilities[all]\n```\n\n### Example usage:\n```python\n\nfrom fastapi import APIRouter, Depends\nfrom fastapi_ormar_utilities import Base\n\nfrom .models import Item # import Ormar model\nfrom .schemas import ItemCreate # import Pydantic model\n\nrouter = APIRouter()\n\nclass ItemService(Base):\n    model = Item\n\n@router.get('/')\nasync def get_items(\n    service: ItemService = Depends()\n):\n    return await service.fetch_all()\n\n@router.get('/')\nasync def get_items_with_related(\n    service: ItemService = Depends()\n):\n    # if you want to add related field to the query\n    return await service.fetch_all(related_field='some_field')\n\n@router.post('/')\nasync def create_item(\n    item_data: ItemCreate,\n    service: ItemService = Depends()\n):\n    return await service.create(item_data)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladisa88%2Ffastapi-ormar-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladisa88%2Ffastapi-ormar-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladisa88%2Ffastapi-ormar-utilities/lists"}