{"id":35398435,"url":"https://github.com/gunyu1019/ahttp-client","last_synced_at":"2026-03-11T08:05:21.063Z","repository":{"id":208254035,"uuid":"718475305","full_name":"gunyu1019/ahttp-client","owner":"gunyu1019","description":"A framework provide concise and aintuitive asynchronous HTTP request using annotation types and @decorator.","archived":false,"fork":false,"pushed_at":"2025-08-02T13:22:02.000Z","size":215,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T11:41:18.417Z","etag":null,"topics":["aiohttp","aiohttp-client","http-client","python"],"latest_commit_sha":null,"homepage":"https://gunyu1019.github.io/ahttp-client/en/","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/gunyu1019.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":"2023-11-14T06:41:19.000Z","updated_at":"2025-06-04T10:52:38.000Z","dependencies_parsed_at":"2023-12-06T09:27:24.699Z","dependency_job_id":"56b8e63b-0ff6-4cff-9369-0a9a0d2ea32e","html_url":"https://github.com/gunyu1019/ahttp-client","commit_stats":null,"previous_names":["gunyu1019/aiohttp_client_decorator","gunyu1019/async-client-decorator","gunyu1019/async-client","gunyu1019/ahttp-client"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/gunyu1019/ahttp-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunyu1019%2Fahttp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunyu1019%2Fahttp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunyu1019%2Fahttp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunyu1019%2Fahttp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gunyu1019","download_url":"https://codeload.github.com/gunyu1019/ahttp-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunyu1019%2Fahttp-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28172202,"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":"2026-01-02T02:00:06.235Z","response_time":54,"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":["aiohttp","aiohttp-client","http-client","python"],"created_at":"2026-01-02T11:00:01.551Z","updated_at":"2026-01-02T11:00:04.346Z","avatar_url":"https://github.com/gunyu1019.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":" # ahttp-client\n \n![PyPI - Version](https://img.shields.io/pypi/v/ahttp-client?style=flat)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/ahttp-client?style=flat)\n![PyPI - License](https://img.shields.io/pypi/l/ahttp-client?style=flat)\n\nAn ahttp-client is Python package that provides concise and aintuitive asynchronous HTTP request using [annotated type](https://docs.python.org/ko/3.9/library/typing.html#typing.Annotated) and `@decorator`. \n\n**Key Feautre**\n- Defining a simple request method with decoration.\n- Managing HTTP Compoents using Annotated Types.\n- Providing Hooks before and after HTTP calls.\n\n## Getting Started\n\nImplement a `GithubService` class extended with `ahttp_client.Session`. \nThen, create a `list_repositories` method using a request decorator.\n\nAn `user` argument define HTTP-component (Path) through annotation types.\n\n```python\nclass GithubService(Session):\n    def __init__(self):\n        super().__init__(\"https://api.github.com\")\n\n    @request(\"GET\", \"/users/{user}/repos\")\n    def list_repositories(\n        user: Annotated[str, Path]\n    ) -\u003e dict[str, Any]:\n        return \n```\n\nUsing the asynchronous context manager(`async with`), create a GithubService instance.\n\n```python\nasync with GithubService() as service:\n    result = await service.list_repoisitories(user = \"gunyu1019\")\n    print(result)\n```\n\nClient Session in GithubServices are terminated when leave the asynchronous context manager.\n\n## Documentaion\n* English: https://gunyu1019.github.io/ahttp-client/en/\n* Korean: https://gunyu1019.github.io/ahttp-client/ko/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunyu1019%2Fahttp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgunyu1019%2Fahttp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunyu1019%2Fahttp-client/lists"}