{"id":38524262,"url":"https://github.com/simpx/gale","last_synced_at":"2026-01-17T06:45:15.810Z","repository":{"id":4772131,"uuid":"5923505","full_name":"simpx/gale","owner":"simpx","description":"Sugar for Tornado Asynchrous HTTP Client","archived":false,"fork":false,"pushed_at":"2012-09-28T09:59:52.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-12T20:04:12.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simpx.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}},"created_at":"2012-09-23T15:50:13.000Z","updated_at":"2017-07-25T05:52:43.000Z","dependencies_parsed_at":"2022-08-18T18:21:58.830Z","dependency_job_id":null,"html_url":"https://github.com/simpx/gale","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simpx/gale","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fgale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fgale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fgale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fgale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpx","download_url":"https://codeload.github.com/simpx/gale/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpx%2Fgale/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-17T06:45:15.757Z","updated_at":"2026-01-17T06:45:15.805Z","avatar_url":"https://github.com/simpx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gale\n=========\nGale is just Tornado\n\nInstallation\n---------\n    $ pip install gale\n\nAsynchrous HTTP Request\n----------\n\n###Get\n    import gale\n    def handle(response):\n        print response.body\n        gale.stop()\n        \n    gale.get('http://httpbin.org/ip', callback=handle)\n    gale.start()\n###Post\n    gale.post('http://httpbin.org/post', data={'a':1}, callback=handle)\n    gale.start()\n###Proxy and Cookies\n    gale.get('http://httpbin.org/get',\n             params={'a':1, 'b':2},\n             proxy='user:pass@8.8.8.8:80',\n             cookies={'token': 'asdfgh'}, callback=handle)\n    gale.start()\n###Sleep\n    def do_after_3_seconds():\n        print 'hello'\n        gale.stop()\n    gale.sleep(3, callback=do_after_3_second)\n    gale.start()\n\nTask\n----------\n    def all_done():\n        print 'all requests complete!'\n        gale.stop()\n        \n    task = gale.Task()\n    task.add(gale.get, 'http://httpbin.org/ip', callback=handle)\n    task.add(gale.get, 'http://httpbin.org/get', callback=handle)\n    task.add(gale.post, 'http://httpbin.org/post', data={'a': 1},\n             callback=handle)\n    #or you can patch the gale.get function\n    #get = task.patch(gale.get)\n    #get('http://httpbin.org/ip', callback=handle)\n    #get('http://httpbin.org/get', callback=handle)\n    #get('http://httpbin.org/post', data={'a': 1},\n    #        callback=handle)\n             \n    task.run(all_done)\n    gale.start()","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpx%2Fgale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpx%2Fgale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpx%2Fgale/lists"}