Mercurial > repos > bcclaywell > argo_navis
comparison venv/lib/python2.7/site-packages/github/__init__.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d67268158946 |
---|---|
1 # -*- coding: utf-8 -*- | |
2 | |
3 # ########################## Copyrights and license ############################ | |
4 # # | |
5 # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # | |
6 # Copyright 2012 Zearin <zearin@gonk.net> # | |
7 # Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> # | |
8 # # | |
9 # This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ # | |
10 # # | |
11 # PyGithub is free software: you can redistribute it and/or modify it under # | |
12 # the terms of the GNU Lesser General Public License as published by the Free # | |
13 # Software Foundation, either version 3 of the License, or (at your option) # | |
14 # any later version. # | |
15 # # | |
16 # PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY # | |
17 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # | |
18 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more # | |
19 # details. # | |
20 # # | |
21 # You should have received a copy of the GNU Lesser General Public License # | |
22 # along with PyGithub. If not, see <http://www.gnu.org/licenses/>. # | |
23 # # | |
24 # ############################################################################## | |
25 | |
26 """ | |
27 The primary class you will instanciate is :class:`github.MainClass.Github`. | |
28 From its ``get_``, ``create_`` methods, you will obtain instances of all Github objects | |
29 like :class:`github.NamedUser.NamedUser` or :class:`github.Repository.Repository`. | |
30 | |
31 All classes inherit from :class:`github.GithubObject.GithubObject`. | |
32 """ | |
33 | |
34 import logging | |
35 | |
36 from MainClass import Github | |
37 from GithubException import GithubException, BadCredentialsException, UnknownObjectException, BadUserAgentException, RateLimitExceededException, BadAttributeException | |
38 from InputFileContent import InputFileContent | |
39 from InputGitAuthor import InputGitAuthor | |
40 from InputGitTreeElement import InputGitTreeElement | |
41 | |
42 | |
43 def enable_console_debug_logging(): # pragma no cover (Function useful only outside test environment) | |
44 """ | |
45 This function sets up a very simple logging configuration (log everything on standard output) that is useful for troubleshooting. | |
46 """ | |
47 | |
48 logger = logging.getLogger("github") | |
49 logger.setLevel(logging.DEBUG) | |
50 logger.addHandler(logging.StreamHandler()) |