{"id":21290299,"url":"https://github.com/akiacode/gazi","last_synced_at":"2025-07-11T14:32:33.758Z","repository":{"id":57432918,"uuid":"390037481","full_name":"AkiaCode/gazi","owner":"AkiaCode","description":"A lightweight, class-based, easy-to-use ASGI framework","archived":false,"fork":false,"pushed_at":"2021-08-13T08:46:51.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T21:02:28.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/gazi","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/AkiaCode.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}},"created_at":"2021-07-27T15:37:54.000Z","updated_at":"2021-09-02T16:00:36.000Z","dependencies_parsed_at":"2022-08-27T21:10:54.301Z","dependency_job_id":null,"html_url":"https://github.com/AkiaCode/gazi","commit_stats":null,"previous_names":["akiacode/gaji"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AkiaCode/gazi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkiaCode%2Fgazi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkiaCode%2Fgazi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkiaCode%2Fgazi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkiaCode%2Fgazi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AkiaCode","download_url":"https://codeload.github.com/AkiaCode/gazi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkiaCode%2Fgazi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833280,"owners_count":23670617,"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":[],"created_at":"2024-11-21T12:50:30.164Z","updated_at":"2025-07-11T14:32:33.379Z","avatar_url":"https://github.com/AkiaCode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gazi\r\nA lightweight, class-based, easy-to-use ASGI framework\r\n\r\n### Docs\r\n\r\n* main.py\r\n```python\r\nfrom gazi import App\r\nfrom home import _ as Home\r\nfrom api import API\r\n\r\napp = App()\r\n\r\napp.handlers([Home, API])\r\n```\r\n\r\n* home.py\r\n```python\r\nfrom gazi.route import method\r\nfrom gazi.response import HtmlResponse, Response\r\n\r\n# Path: /*\r\nclass _:\r\n    def __init__(self) -\u003e None:\r\n        pass\r\n\r\n    # Path: /\r\n    @method.GET\r\n    def __render__(self) -\u003e Response:\r\n        return HtmlResponse(\"\u003ch1\u003eHello, world!\u003c/h1\u003e\")\r\n```\r\n\r\n* api.py\r\n```python\r\nfrom gazi.response import HtmlResponse, Response\r\nfrom gazi.request import Request\r\nfrom gazi.route import method\r\n\r\n# Path: /api/*\r\nclass API:\r\n    def __init__(self) -\u003e None:\r\n        pass\r\n\r\n    # Path: /api\r\n    @method.GET\r\n    def __render__(self) -\u003e Response:\r\n        return Response(\"API\")\r\n\r\n    # Path: /api/hello\r\n    @method.GET\r\n    def hello(self, request: Request) -\u003e Response:\r\n        return HtmlResponse(\r\n            f\"\u003ch1\u003eHello world, Username: {request.query('name')}\u003c/h1\u003e\", # data\r\n            {\"test1\": \"test\", \"asd\": \"a\"}, # headers\r\n        )\r\n\r\n    # Path: /api/bye?name=test\r\n    @method.POST\r\n    def bye(self, request: Request) -\u003e Response:\r\n        return HtmlResponse(f\"\u003ch1\u003eBye world, Username: {request.query('name')}\u003c/h1\u003e\")\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiacode%2Fgazi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakiacode%2Fgazi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakiacode%2Fgazi/lists"}