FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-github3/pygithub3/github.py at master · housepage/python-github3 · GitHub
housepage
/
python-github3
Public
forked from
copitux/python-github3
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-github3
/
pygithub3
/
github.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
49 lines (40 loc) · 1.18 KB
Breadcrumbs
python-github3
/
pygithub3
/
github.py
Copy path
File metadata and controls
49 lines (40 loc) · 1.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#TODO: Move the imports out. setup related
class
Github
(
object
):
"""
You can preconfigure all services globally with a ``config`` dict. See
:attr:`~pygithub3.services.base.Service`
Example::
gh = Github(user='kennethreitz', token='ABC...', repo='requests')
"""
def
__init__
(
self
,
**
config
):
from
pygithub3
.
services
.
users
import
User
from
pygithub3
.
services
.
repos
import
Repo
from
pygithub3
.
services
.
gists
import
Gist
self
.
_users
=
User
(
**
config
)
self
.
_repos
=
Repo
(
**
config
)
self
.
_gists
=
Gist
(
**
config
)
@
property
def
remaining_requests
(
self
):
""" Limit of Github API v3 """
from
pygithub3
.
core
.
client
import
Client
return
Client
.
remaining_requests
@
property
def
users
(
self
):
"""
:ref:`Users service <Users service>`
"""
return
self
.
_users
@
property
def
repos
(
self
):
"""
:ref:`Repos service <Repos service>`
"""
return
self
.
_repos
@
property
def
gists
(
self
):
"""
:ref:`Gists service <Gists service>`
"""
return
self
.
_gists
Back
|
FazBrowse Home
|
New Git URL