fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at feat/use-query-options 22 lines 536 B view raw
1# import httpx 2from gen.python import OpenCode 3 4# def log_request(request): 5# print(request.method, request.url, request.headers, request.content) 6 7# client = httpx.Client(event_hooks={"request": [log_request]}) 8 9def run(): 10 client = OpenCode() 11 client.tui.publish( 12 body={ 13 "properties": { 14 "message": "Hello from Hey API OpenAPI Python Playground!", 15 "variant": "success", 16 }, 17 "type": "tui.toast.show", 18 }, 19 directory="main", 20 ) 21 22run()