{"id":13424657,"url":"https://nf1s.github.io/fastapi-camelcase/","last_synced_at":"2025-03-15T18:35:40.347Z","repository":{"id":45485283,"uuid":"243963879","full_name":"nf1s/fastapi-camelcase","owner":"nf1s","description":"Package for providing a class for camelizing request and response bodies for fastapi while keeping your python code snake cased.","archived":false,"fork":false,"pushed_at":"2023-12-09T11:56:45.000Z","size":1195,"stargazers_count":69,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-24T18:40:07.892Z","etag":null,"topics":["fastapi","fastapi-camelcase","python","python3","python36","rest-api"],"latest_commit_sha":null,"homepage":"https://ahmednafies.github.io/fastapi_camelcase/","language":"JavaScript","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/nf1s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-29T12:21:50.000Z","updated_at":"2024-11-13T04:01:33.000Z","dependencies_parsed_at":"2024-01-03T02:29:50.537Z","dependency_job_id":null,"html_url":"https://github.com/nf1s/fastapi-camelcase","commit_stats":{"total_commits":53,"total_committers":2,"mean_commits":26.5,"dds":0.05660377358490565,"last_synced_commit":"7e4cf03e52096fa41828802083cce6049ef5a44c"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Ffastapi-camelcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Ffastapi-camelcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Ffastapi-camelcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Ffastapi-camelcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nf1s","download_url":"https://codeload.github.com/nf1s/fastapi-camelcase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526946,"owners_count":20305114,"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","fastapi-camelcase","python","python3","python36","rest-api"],"created_at":"2024-07-31T00:00:57.453Z","updated_at":"2025-03-15T18:35:35.318Z","avatar_url":"https://github.com/nf1s.png","language":"JavaScript","funding_links":[],"categories":["Third-Party Extensions"],"sub_categories":["Databases"],"readme":"[![CircleCI](https://circleci.com/gh/nf1s/fastapi-camelcase.svg?style=shield)](https://circleci.com/gh/nf1s/fastapi-camelcase) [![codecov](https://codecov.io/gh/nf1s/fastapi-camelcase/branch/master/graph/badge.svg)](https://codecov.io/gh/nf1s/fastapi-camelcase) [![Downloads](https://pepy.tech/badge/fastapi-camelcase)](https://pepy.tech/project/fastapi-camelcase) ![GitHub Pipenv locked Python version](https://img.shields.io/github/pipenv/locked/python-version/nf1s/fastapi-camelcase) ![GitHub](https://img.shields.io/github/license/nf1s/fastapi-camelcase)\n\n# Fastapi Camelcase\n\nPackage for providing a class for camelizing request and response bodies for fastapi\nwhile keeping your python code snake cased.\n\nFull documentation can be found [here](https://nf1s.github.io/fastapi-camelcase/)\n\n## How to install\n\n```bash\npip install fastapi-camelcase\n```\n\n## Dependencies\n\n    pydantic\n    pyhumps\n\n## How to use\n\n```python\n# using CamelModel instead of Pydantic BaseModel\nfrom fastapi_camelcase import CamelModel\n\n\nclass User(CamelModel):\n    first_name: str\n    last_name: str\n    age: int\n```\n\n## How to use (full example)\n\n```python\nimport uvicorn\nfrom fastapi import FastAPI\nfrom fastapi_camelcase import CamelModel\n\n\nclass User(CamelModel):\n    first_name: str\n    last_name: str\n    age: int\n\n\napp = FastAPI()\n\n\n@app.get(\"/user/get\", response_model=User)\nasync def get_user():\n    return User(first_name=\"John\", last_name=\"Doe\", age=30)\n\n\n@app.post(\"/user/create\", response_model=User)\nasync def create_user(user: User):\n    return user\n\n\nif __name__ == \"__main__\":\n    uvicorn.run(app, host=\"0.0.0.0\", port=8000)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/nf1s.github.io%2Ffastapi-camelcase%2F","html_url":"https://awesome.ecosyste.ms/projects/nf1s.github.io%2Ffastapi-camelcase%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/nf1s.github.io%2Ffastapi-camelcase%2F/lists"}