Skip to content

Commit a8eaab9

Browse files
committed
Adding doc for proxy support.
1 parent 0ffc5b1 commit a8eaab9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Barthelemy Dagenais <bart@cs.mcgill.ca>
2323
Surajram Kumarave <root@surajram.com>
2424
broderboy <timothy.broder@gmail.com>
2525
Patryk Zawadzki <patrys@pld-linux.org>
26-
hub-cap <mbasnight@gmail.com>
26+
Michael Basnight <mbasnight@gmail.com>

doc/api/client.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,13 @@ in::
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)

0 commit comments

Comments
 (0)