{"id":25237997,"url":"https://github.com/vspaz/pyclient","last_synced_at":"2026-02-18T01:03:07.242Z","repository":{"id":152011598,"uuid":"412203729","full_name":"vspaz/pyclient","owner":"vspaz","description":"configurable HTTP python client that supports retries, timeouts, tls, basic auth, logging etc.","archived":false,"fork":false,"pushed_at":"2025-01-17T22:23:43.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T23:25:51.898Z","etag":null,"topics":["basic-authentication","http","http-client","logging","python3","requests","retries","timeouts","tls","tls-certificate"],"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/vspaz.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}},"created_at":"2021-09-30T19:41:44.000Z","updated_at":"2025-01-17T22:23:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3fed94f-b8c4-4786-ba31-aa0816dc0c2e","html_url":"https://github.com/vspaz/pyclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspaz%2Fpyclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspaz%2Fpyclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspaz%2Fpyclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspaz%2Fpyclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vspaz","download_url":"https://codeload.github.com/vspaz/pyclient/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238324678,"owners_count":19453140,"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":["basic-authentication","http","http-client","logging","python3","requests","retries","timeouts","tls","tls-certificate"],"created_at":"2025-02-11T16:03:04.778Z","updated_at":"2025-10-09T05:33:18.205Z","avatar_url":"https://github.com/vspaz.png","language":"Python","readme":"# pyclient\n\nconfigurable HTTP python client that supports\n\n- tls,\n- basic auth,\n- retries on specific errors,\n- timeouts,\n- logging\n- uses ultra-fast 'ujson' library for serialization'\n- etc.\n\n### Install pyclient\n\n```shell\ngit clone clone git@github.com:vspaz/pyclient.git\ncd pyclient\n\npip3 install .\n````\n\n### Run tests\n\n```shell\npip3 install -r requirements/dev.txt\nmake test\n```\n\n### Use\n\n```python\nfrom pyclient.http import PyClient\n\nif __name__ == '__main__':\n    http_client = PyClient.get_http_client(host='https://httpbin.org')\n    http_client.set_retries(count=3, backoff=1.5, on_errors=[500, 502, 504, 429])\n    http_client.set_timeouts(connect=5, read=5)\n    http_client.set_user_agent(ua='myClient')\n    http_client.set_basic_auth(user='user', password='password')\n    # http_client.set_tls(\n    #     client_key_path='path/to/key',\n    #     client_certificate_path='path/to/client/certificate',\n    #     ca_path='path/to/ca',\n    # )\n    print(http_client.do_get(path='/get').json())\n\n    # or simply\n    http_client = PyClient.get_http_client()\n    print(http_client.do_get(path='https://httpbin.org/get').json())\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvspaz%2Fpyclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvspaz%2Fpyclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvspaz%2Fpyclient/lists"}