{"id":30214951,"url":"https://github.com/patrickboateng/func-validator","last_synced_at":"2025-08-14T01:38:35.867Z","repository":{"id":309115301,"uuid":"1034701907","full_name":"patrickboateng/func-validator","owner":"patrickboateng","description":"MATLAB-style function argument validation for Python - clean, simple, and reliable.","archived":false,"fork":false,"pushed_at":"2025-08-10T00:16:27.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T00:19:32.117Z","etag":null,"topics":["argument-validation","function","validation"],"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/patrickboateng.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-08T20:44:33.000Z","updated_at":"2025-08-10T00:16:31.000Z","dependencies_parsed_at":"2025-08-10T00:29:52.932Z","dependency_job_id":null,"html_url":"https://github.com/patrickboateng/func-validator","commit_stats":null,"previous_names":["patrickboateng/func-validator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/patrickboateng/func-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickboateng%2Ffunc-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickboateng%2Ffunc-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickboateng%2Ffunc-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickboateng%2Ffunc-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrickboateng","download_url":"https://codeload.github.com/patrickboateng/func-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrickboateng%2Ffunc-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270347582,"owners_count":24568582,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["argument-validation","function","validation"],"created_at":"2025-08-14T01:38:32.620Z","updated_at":"2025-08-14T01:38:35.856Z","avatar_url":"https://github.com/patrickboateng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# func-validator\n\n\u003cdiv\u003e\n\n[![PyPI Latest Release](https://img.shields.io/pypi/v/func-validator?style=flat\u0026logo=pypi)](https://pypi.org/project/func-validator/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/func-validator.svg?logo=python\u0026style=flat)](https://pypi.python.org/pypi/func-validator/)\n[![license](https://img.shields.io/pypi/l/func-validator?style=flat\u0026logo=opensourceinitiative)](https://opensource.org/license/mit/)\n\n\u003c/div\u003e\n\nMATLAB-style function argument validation for Python.\n\n## Installation\n\n```sh\n\n$ pip install func-validator\n\n```\n\n## Usage\n\n```py\n\nfrom typing import Annotated\nfrom func_validator import validate, MustBePositive, MustBeNegative\n\n\n@validate\ndef func(a: Annotated[int, MustBePositive],\n         b: Annotated[float, MustBeNegative]):\n    pass\n\n\nfunc(10, -10)  # ✅\nfunc(-10, 10)  # ❌ \nfunc(0, -10)  # ❌ Wrong 0 is not positive\n\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickboateng%2Ffunc-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickboateng%2Ffunc-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickboateng%2Ffunc-validator/lists"}