{"id":51615738,"url":"https://github.com/leyts/reqspec","last_synced_at":"2026-07-12T13:01:26.034Z","repository":{"id":367378821,"uuid":"1266478560","full_name":"leyts/reqspec","owner":"leyts","description":"A declarative HTTP client.","archived":false,"fork":false,"pushed_at":"2026-06-25T18:20:48.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T19:18:01.873Z","etag":null,"topics":["http","niquests","pydantic","python"],"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/leyts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T16:49:43.000Z","updated_at":"2026-06-25T18:23:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/leyts/reqspec","commit_stats":null,"previous_names":["leyts/reqspec"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/leyts/reqspec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leyts%2Freqspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leyts%2Freqspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leyts%2Freqspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leyts%2Freqspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leyts","download_url":"https://codeload.github.com/leyts/reqspec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leyts%2Freqspec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35392296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"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":["http","niquests","pydantic","python"],"created_at":"2026-07-12T13:01:25.229Z","updated_at":"2026-07-12T13:01:26.029Z","avatar_url":"https://github.com/leyts.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reqspec\n\n\u003e [!WARNING]\n\u003e This package is under development. The API is subject to breaking changes.\n\nA declarative HTTP client for Python, built on\n[Niquests](https://niquests.readthedocs.io/en/latest) and [Pydantic](https://docs.pydantic.dev/).\n\n## Usage\n\nDescribe an API as a class of typed method stubs. reqspec compiles each stub\ninto a real request at class creation; type hints drive both the request and\nthe response.\n\n```python\nfrom pydantic import BaseModel\n\nfrom reqspec import Client, get\n\n\nclass Repo(BaseModel):\n    full_name: str\n    stargazers_count: int\n\n\nclass GitHub(Client, base_url=\"https://api.github.com\"):\n    @get(\"/users/{user}/repos\")\n    def repos(self, user: str, per_page: int = 30) -\u003e list[Repo]: ...\n\n\ngh = GitHub()\nrepos = gh.repos(\"astral-sh\")  # list[Repo]\n```\n\nA parameter matching a `{placeholder}` becomes a path parameter; everything\nelse becomes a query parameter. The return annotation drives parsing.\n\n## Licence\n\n[MIT](LICENCE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleyts%2Freqspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleyts%2Freqspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleyts%2Freqspec/lists"}