FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rustpython.github.io/update_contributors.py at master · DimitrisJim/rustpython.github.io · GitHub
DimitrisJim
rustpython.github.io
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rustpython.github.io
/
update_contributors.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 460 Bytes
Breadcrumbs
rustpython.github.io
/
update_contributors.py
Copy path
File metadata and controls
17 lines (12 loc) · 460 Bytes
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
import
json
from
urllib
.
request
import
urlopen
import
os
.
path
CONTRIBUTORS_URL
=
"http://api.github.com/repos/RustPython/RustPython/contributors"
CONTRIBUTORS_FILE
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"_data/contributors.json"
)
contributors
=
json
.
load
(
urlopen
(
CONTRIBUTORS_URL
))
del
contributors
[
10
:]
contributors
=
[{
"github_username"
:
c
[
"login"
]}
for
c
in
contributors
]
with
open
(
CONTRIBUTORS_FILE
,
"w"
)
as
f
:
json
.
dump
(
contributors
,
f
)
Back
|
FazBrowse Home
|
New Git URL