File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ Barthelemy Dagenais <bart@cs.mcgill.ca>
2323Surajram Kumarave <root@surajram.com>
2424broderboy <timothy.broder@gmail.com>
2525Patryk Zawadzki <patrys@pld-linux.org>
26- hub-cap <mbasnight@gmail.com>
26+ Michael Basnight <mbasnight@gmail.com>
Original file line number Diff line number Diff line change 4141 >>> from github2.client import Github
4242 >>> github = Github(username="ask", api_token=".......",
4343 ... requests_per_second=1)
44+
45+ If you wish to use the library with a HTTP proxy, you will require a Python
46+ SOCKS module installed. :pypi: `SocksiPy-branch ` is the module we test with, but
47+ various forks are available. Pass in the ``proxy_host `` and optionally
48+ ``proxy_port `` settings to enable it. The default for ``proxy_port ``, if not
49+ given, is 8080::
50+
51+ >>> from github2.client import Github
52+ >>> github = Github(username="ask", api_token=".......",
53+ ... proxy_host="my.proxy.com", proxy_port=9000)
You can’t perform that action at this time.
0 commit comments