{"id":18919418,"url":"https://github.com/nf1s/pydantic-webargs","last_synced_at":"2025-04-15T12:29:36.992Z","repository":{"id":44866336,"uuid":"267266719","full_name":"nf1s/pydantic-webargs","owner":"nf1s","description":"A library for parsing and validating http requests for Flask web framework using pydantic library","archived":false,"fork":false,"pushed_at":"2022-12-08T12:41:21.000Z","size":889,"stargazers_count":16,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T07:04:09.358Z","etag":null,"topics":["decorator","flask","flask-extension","json","json-parser","parser","pydantic","web","webargs"],"latest_commit_sha":null,"homepage":"https://ahmednafies.github.io/pydantic-webargs/","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/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}},"created_at":"2020-05-27T08:41:43.000Z","updated_at":"2023-05-24T13:09:57.000Z","dependencies_parsed_at":"2023-01-25T04:30:31.528Z","dependency_job_id":null,"html_url":"https://github.com/nf1s/pydantic-webargs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Fpydantic-webargs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Fpydantic-webargs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Fpydantic-webargs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nf1s%2Fpydantic-webargs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nf1s","download_url":"https://codeload.github.com/nf1s/pydantic-webargs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249071660,"owners_count":21208033,"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":["decorator","flask","flask-extension","json","json-parser","parser","pydantic","web","webargs"],"created_at":"2024-11-08T10:37:40.495Z","updated_at":"2025-04-15T12:29:36.966Z","avatar_url":"https://github.com/nf1s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyndatic Webargs\n[![CircleCI](https://circleci.com/gh/nf1s/pydantic-webargs.svg?style=shield)](https://circleci.com/gh/nf1s/pydantic-webargs) [![codecov](https://codecov.io/gh/nf1s/pydantic-webargs/branch/master/graph/badge.svg)](https://codecov.io/gh/nf1s/pydantic-webargs) ![GitHub Pipenv locked Python version](https://img.shields.io/github/pipenv/locked/python-version/nf1s/pydantic-webargs) [![Downloads](https://pepy.tech/badge/pydantic-webargs)](https://pepy.tech/project/pydantic-webargs) ![license](https://img.shields.io/badge/license-MIT-green)\n\nA library for parsing and validating http requests for flask web-framework using pydantic library \n\nFull documentation [here](https://nf1s.github.io/pydantic-webargs/)\n\n## Requirements\n\n\tpython \u003e= 3.7\n\n## How to install\n\n```bash\npip install pydantic-webargs\n```\n\n## Dependencies\n\n\tflask\n\tpydantic\n\n## Example\n\n\n```python\nfrom flask import Flask\nfrom pydantic import BaseModel\nfrom pydantic_webargs import webargs\n\napp = Flask(__name__)\n\n\nclass QueryModel(BaseModel):\n    name: str\n\n\nclass BodyModel(BaseModel):\n    age: int\n\n\n@app.route(\"/get-request\", methods=[\"GET\"])\n@webargs(query=QueryModel)\ndef example_get_endpoint(**kwargs):\n    response = kwargs\n    return response\n\n\n@app.route(\"/post-request\", methods=[\"POST\"])\n@webargs(query=QueryModel, body=BodyModel)\ndef example_post_endpoint(**kwargs):\n    print(kwargs)\n    response = kwargs\n    return response\n\n\nif __name__ == \"__main__\":\n    app.run(host=\"0.0.0.0\", port=8000)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnf1s%2Fpydantic-webargs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnf1s%2Fpydantic-webargs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnf1s%2Fpydantic-webargs/lists"}