Skip to content

Commit 0805309

Browse files
authored
Auto-restar (python3statement#228)
* add sg * add script to recompute project stars * flush * add tensorflow url * recompute tf stars * add url for a couple of projects * add a reorder scritp * add some project url * recompute stars * reorder * optential less cruft * add a couple more urls * recompute a number of stars * reorder
1 parent c415ae4 commit 0805309

File tree

3 files changed

+173
-79
lines changed

3 files changed

+173
-79
lines changed

_sections/30-projects.md

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -10,115 +10,115 @@ style: center
1010

1111
These projects pledge to drop Python 2 support in or before 2020.
1212

13-
- [![](assets/tensorflow.png)TensorFlow](https://www.tensorflow.org/)
14-
- [![](assets/requests.png)Requests](https://github.com/kennethreitz/requests)
15-
- [![](assets/pandas.png)pandas](https://pandas.pydata.org/)
16-
- [![](assets/scikit-learn.png)scikit-learn](https://scikit-learn.org/)
17-
- [![](assets/tornado.png)Tornado](http://www.tornadoweb.org/)
18-
- [![](assets/xgboost.png)XGBoost](https://xgboost.ai/)
19-
- [![](assets/ipython.png)IPython](https://ipython.org)
20-
- [![](assets/mitmproxy.png)mitmproxy](https://mitmproxy.org/)
21-
- [![](assets/saltstack.png)SaltStack](https://github.com/saltstack/salt)
22-
- [![](assets/bokeh.png)Bokeh](https://github.com/bokeh/bokeh)
23-
- [![](assets/kivy.png)Kivy](https://kivy.org/)
24-
- [![](assets/matplotlib.png)Matplotlib](https://matplotlib.org/)
25-
- [![](assets/numpylogoicon.png)NumPy](https://www.numpy.org/)
26-
- [![](assets/pillow.png)Pillow](https://github.com/python-pillow/Pillow)
27-
- [![](assets/scipyshiny_small.png)SciPy](https://www.scipy.org/)
28-
- [![](assets/ccxt.png)ccxt](https://github.com/ccxt/ccxt)
29-
- [![](assets/zulip.png)Zulip](https://zulip.org)
30-
- [![](assets/sympy.png)SymPy](https://www.sympy.org/)
31-
- [![](assets/jupyter.png)Jupyter notebook](https://jupyter.org)
32-
- [![](assets/spyder.png)Spyder](https://www.spyder-ide.org)
33-
- [![](assets/scikit-image.png)Scikit Image](http://scikit-image.org/)
34-
- [![](assets/pymc3.png)PyMC3](https://github.com/pymc-devs/pymc3)
35-
- [![](https://cython.org/logo/cython-logo-C.svg)Cython](https://cython.org/)
36-
- [![](assets/tensorpack.png)Tensorpack](https://github.com/tensorpack/tensorpack)
37-
- [![](assets/pytest1.png)pytest](https://docs.pytest.org/en/latest)
38-
- [![](assets/hypothesis.png)Hypothesis](https://hypothesis.readthedocs.io/)
39-
- [![](assets/marshmallow.png)marshmallow](https://github.com/marshmallow-code/marshmallow)
40-
- [![](assets/xonsh.png)xonsh](http://xon.sh)
41-
- [![](assets/astropy.png)Astropy](https://www.astropy.org/)
42-
- [![](assets/geopy.png)geopy](https://geopy.readthedocs.io/)
43-
- [![](assets/biopython.png)Biopython](https://biopython.org/)
44-
- [![](assets/nikola.png)Nikola](https://getnikola.com)
45-
- [![](assets/fonttools.png)FontTools](https://github.com/fonttools/fonttools)
46-
- [![](assets/pythran.png)Pythran](https://github.com/serge-sans-paille/pythran)
47-
- [![](assets/art_logo.png)Adversarial Robustness Toolbox](https://github.com/IBM/adversarial-robustness-toolbox)
48-
- [![](assets/xarray.png)xarray](https://xarray.pydata.org/)
49-
- [![](assets/dateutil.png)dateutil](https://github.com/dateutil/dateutil)
50-
- [![](//cherrypy.org/images/cherrypy.png)CherryPy](https://cherrypy.org/)
51-
- [![](assets/tryton.png)Tryton](https://www.tryton.org/)
52-
- [![](assets/pystan.png)PyStan](https://github.com/stan-dev/pystan)
53-
- [![](assets/misp.png)MISP](https://github.com/MISP/MISP)
54-
- [![](assets/mne.png)MNE](https://www.martinos.org/mne/stable/index.html)
55-
- [![](assets/swcarpentry.png)Software Carpentry](https://software-carpentry.org)
56-
- [![](assets/adb_enhanced.png)ADB-Enhanced](https://github.com/ashishb/adb-enhanced)
57-
- [![](assets/cartopy.png)Cartopy](https://scitools.org.uk/cartopy/docs/latest/)
13+
- [![](assets/tensorflow.png)TensorFlow](https://www.tensorflow.org/) <!-- url:https://github.com/tensorflow/tensorflow sg:128577 -->
14+
- [![](assets/requests.png)Requests](https://github.com/kennethreitz/requests) <!-- url:https://github.com/kennethreitz/requests sg:38793 -->
15+
- [![](assets/scikit-learn.png)scikit-learn](https://scikit-learn.org/) <!-- url:https://github.com/scikit-learn/scikit-learn sg:35400 -->
16+
- [![](assets/pandas.png)pandas](https://pandas.pydata.org/) <!-- url:https://github.com/pandas-dev/pandas sg:19734 -->
17+
- [![](assets/tornado.png)Tornado](http://www.tornadoweb.org/) <!-- url:https://github.com/tornadoweb/tornado sg:17808 -->
18+
- [![](assets/xgboost.png)XGBoost](https://xgboost.ai/) <!-- url:https://github.com/dmlc/xgboost sg:16122 -->
19+
- [![](assets/mitmproxy.png)mitmproxy](https://mitmproxy.org/) <!-- url:https://github.com/mitmproxy/mitmproxy sg:15172 -->
20+
- [![](assets/ipython.png)IPython](https://ipython.org) <!-- url:https://github.com/ipython/ipython sg:13592 -->
21+
- [![](assets/ccxt.png)ccxt](https://github.com/ccxt/ccxt) <!-- url:https://github.com/ccxt/ccxt sg:10890 -->
22+
- [![](assets/numpylogoicon.png)NumPy](https://www.numpy.org/) <!-- url:https://github.com/numpy/numpy sg:10749 -->
23+
- [![](assets/saltstack.png)SaltStack](https://github.com/saltstack/salt) <!-- url:https://github.com/saltstack/salt sg:9950 -->
24+
- [![](assets/zulip.png)Zulip](https://zulip.org) <!-- url:https://github.com/zulip/zulip sg:9877 -->
25+
- [![](assets/bokeh.png)Bokeh](https://github.com/bokeh/bokeh) <!-- url:https://github.com/bokeh/bokeh sg:9492 -->
26+
- [![](assets/matplotlib.png)Matplotlib](https://matplotlib.org/) <!-- url:https://github.com/matplotlib/matplotlib sg:9334 -->
27+
- [![](assets/kivy.png)Kivy](https://kivy.org/) <!-- url:https://github.com/kivy/kivy sg:9318 -->
28+
- [![](assets/pillow.png)Pillow](https://github.com/python-pillow/Pillow) <!-- url:https://github.com/python-pillow/Pillow sg:6242 -->
29+
- [![](assets/sympy.png)SymPy](https://www.sympy.org/) <!-- url:https://github.com/sympy/sympy sg:5893 -->
30+
- [![](assets/scipyshiny_small.png)SciPy](https://www.scipy.org/) <!-- url:https://github.com/scipy/scipy sg:5862 -->
31+
- [![](assets/jupyter.png)Jupyter notebook](https://jupyter.org) <!-- url:https://github.com/jupyter/notebook sg:5849 -->
32+
- [![](assets/spyder.png)Spyder](https://www.spyder-ide.org) <!-- url:https://github.com/spyder-ide/spyder sg:4448 -->
33+
- [![](assets/pymc3.png)PyMC3](https://github.com/pymc-devs/pymc3) <!-- url:https://github.com/pymc-devs/pymc3 sg:4232 -->
34+
- [![](assets/pytest1.png)pytest](https://docs.pytest.org/en/latest) <!-- url:https://github.com/pytest-dev/pytest sg:4219 -->
35+
- [![](assets/tensorpack.png)Tensorpack](https://github.com/tensorpack/tensorpack) <!-- url:https://github.com/tensorpack/tensorpack sg:4218 -->
36+
- [![](https://cython.org/logo/cython-logo-C.svg)Cython](https://cython.org/) <!-- url:https://github.com/cython/cython sg:4115 -->
37+
- [![](assets/marshmallow.png)marshmallow](https://github.com/marshmallow-code/marshmallow) <!-- url:https://github.com/marshmallow-code/marshmallow sg:3629 -->
38+
- [![](assets/hypothesis.png)Hypothesis](https://hypothesis.readthedocs.io/) <!-- url:https://github.com/HypothesisWorks/hypothesis sg:3499 -->
39+
- [![](assets/xonsh.png)xonsh](http://xon.sh) <!-- url:https://github.com/xonsh/xonsh sg:3251 -->
40+
- [![](assets/scikit-image.png)Scikit Image](http://scikit-image.org/) <!-- url:https://github.com/scikit-image/scikit-image sg:3031 -->
41+
- [![](assets/geopy.png)geopy](https://geopy.readthedocs.io/) <!-- url:https://github.com/geopy/geopy sg:2458 -->
42+
- [![](assets/misp.png)MISP](https://github.com/MISP/MISP) <!-- url:https://github.com/MISP/MISP sg:2104 -->
43+
- [![](assets/astropy.png)Astropy](https://www.astropy.org/) <!-- url:https://github.com/astropy/astropy sg:2086 -->
44+
- [![](assets/biopython.png)Biopython](https://biopython.org/) <!-- url:https://github.com/biopython/biopython sg:1783 -->
45+
- [![](assets/fonttools.png)FontTools](https://github.com/fonttools/fonttools) <!-- url:https://github.com/fonttools/fonttools sg:1745 -->
46+
- [![](assets/nikola.png)Nikola](https://getnikola.com) <!-- url:https://github.com/getnikola/nikola sg:1709 -->
47+
- [![](assets/xarray.png)xarray](https://xarray.pydata.org/) <!-- url:https://github.com/pydata/xarray sg:1251 -->
48+
- [![](assets/pythran.png)Pythran](https://github.com/serge-sans-paille/pythran) <!-- url:https://github.com/serge-sans-paille/pythran sg:1080 -->
49+
- [![](//cherrypy.org/images/cherrypy.png)CherryPy](https://cherrypy.org/) <!-- url:https://github.com/cherrypy/cherrypy sg:982 -->
50+
- [![](assets/dateutil.png)dateutil](https://github.com/dateutil/dateutil) <!-- url:https://github.com/dateutil/dateutil sg:974 -->
51+
- [![](assets/tryton.png)Tryton](https://www.tryton.org/) <!-- no GitHub org, making up a stargazer count sg:950 -->
52+
- [![](assets/mne.png)MNE](https://www.martinos.org/mne/stable/index.html) <!-- url:https://github.com/mne-tools/mne-python sg:861 -->
53+
- [![](assets/art_logo.png)Adversarial Robustness Toolbox](https://github.com/IBM/adversarial-robustness-toolbox) <!-- url:https://github.com/IBM/adversarial-robustness-toolbox sg:758 -->
54+
- [![](assets/pystan.png)PyStan](https://github.com/stan-dev/pystan) <!-- url:https://github.com/stan-dev/pystan sg:671 -->
55+
- [![](assets/swcarpentry.png)Software Carpentry](https://software-carpentry.org) <!-- sg:600 -->
56+
- [![](assets/adb_enhanced.png)ADB-Enhanced](https://github.com/ashishb/adb-enhanced) <!-- url:https://github.com/ashishb/adb-enhanced sg:559 -->
57+
- [![](assets/cartopy.png)Cartopy](https://scitools.org.uk/cartopy/docs/latest/) <!-- url:https://github.com/SciTools/cartopy sg:536 -->
5858
- [![](assets/skbio.png)scikit-bio](http://scikit-bio.org)
59-
- [![](assets/fecon235.png)fecon235](https://github.com/rsvp/fecon235)
59+
- [![](assets/fecon235.png)fecon235](https://github.com/rsvp/fecon235) <!-- url:https://github.com/rsvp/fecon235 sg:501 -->
6060
- [![](assets/sunpy.png)SunPy](https://sunpy.org/)
61-
- [![](assets/axelrod.png)Axelrod](https://github.com/Axelrod-Python/Axelrod)
61+
- [![](assets/axelrod.png)Axelrod](https://github.com/Axelrod-Python/Axelrod) <!-- url:https://github.com/Axelrod-Python/Axelrod sg:395 -->
6262
- [![](assets/rpy2_logo_64x64.png)rpy2](https://rpy2.bitbucket.io)
6363
- [![](assets/fenics.png)FEniCS](https://fenicsproject.org/)
64-
- [![](assets/rdkit.png)RDKit](https://github.com/rdkit/rdkit)
65-
- [![](assets/toyplot-256x256.png)Toyplot](https://github.com/sandialabs/toyplot)
64+
- [![](assets/rdkit.png)RDKit](https://github.com/rdkit/rdkit) <!-- url:https://github.com/rdkit/rdkit sg:595 -->
65+
- [![](assets/toyplot-256x256.png)Toyplot](https://github.com/sandialabs/toyplot) <!-- url:https://github.com/sandialabs/toyplot sg:372 -->
6666
- [![](assets/metpy.png)MetPy](https://unidata.github.io/MetPy)
6767
- [![](assets/nengo.png)Nengo](https://www.nengo.ai/)
68-
- [![](assets/pylast.png)pyLast](https://github.com/pylast/pylast)
68+
- [![](assets/pylast.png)pyLast](https://github.com/pylast/pylast) <!-- url:https://github.com/pylast/pylast sg:314 -->
6969
- [![](assets/psi4square.png)Psi4](http://psicode.org/)
70-
- [![](assets/pyscipopt.png)PySCIPOpt](https://github.com/SCIP-Interfaces/PySCIPOpt)
71-
- [![](assets/openquake.png)OpenQuake engine](https://github.com/gem/oq-engine)
70+
- [![](assets/pyscipopt.png)PySCIPOpt](https://github.com/SCIP-Interfaces/PySCIPOpt) <!-- url:https://github.com/SCIP-Interfaces/PySCIPOpt sg:169 -->
71+
- [![](assets/openquake.png)OpenQuake engine](https://github.com/gem/oq-engine) <!-- url:https://github.com/gem/oq-engine sg:142 -->
7272
- [![](assets/yt.png)yt](https://yt-project.org/)
7373
- [![](assets/cmd2.png)cmd2](https://github.com/python-cmd2/cmd2)
74-
- [![](https://urduhack.readthedocs.io/en/stable/_static/urduhack.png)Urduhack](https://github.com/urduhack/urduhack)
75-
- [![](assets/osbrain.png)osBrain](https://github.com/opensistemas-hub/osbrain)
76-
- [![](assets/pymeasure.png)PyMeasure](https://github.com/ralph-group/pymeasure)
74+
- [![](https://urduhack.readthedocs.io/en/stable/_static/urduhack.png)Urduhack](https://github.com/urduhack/urduhack) <!-- url:https://github.com/urduhack/urduhack sg:121 -->
75+
- [![](assets/pymeasure.png)PyMeasure](https://github.com/ralph-group/pymeasure) <!-- url:https://github.com/ralph-group/pymeasure sg:121 -->
76+
- [![](assets/osbrain.png)osBrain](https://github.com/opensistemas-hub/osbrain) <!-- url:https://github.com/opensistemas-hub/osbrain sg:114 -->
7777
- [![](assets/tatsu.png)TatSu](https://tatsu.readthedocs.io/)
7878
- [![](assets/chaquopy.png)Chaquopy](https://chaquo.com/chaquopy/)
7979
- [![](assets/angr.png)angr](http://angr.io/)
8080
- [![](assets/biobuilds.png)BioBuilds](https://www.biobuilds.org/)
81-
- [![](assets/freud.png)freud](https://github.com/glotzerlab/freud)
81+
- [![](assets/freud.png)freud](https://github.com/glotzerlab/freud) <!-- url:https://github.com/glotzerlab/freud sg:19 -->
8282
- [![](assets/signac.png)signac](https://signac.io)
83-
- [![](assets/platon.png)PLATON](https://github.com/ideasrule/platon)
84-
- [![](assets/manticore.png)Manticore](https://github.com/trailofbits/manticore)
83+
- [![](assets/manticore.png)Manticore](https://github.com/trailofbits/manticore) <!-- url:https://github.com/trailofbits/manticore sg:1635 -->
84+
- [![](assets/platon.png)PLATON](https://github.com/ideasrule/platon) <!-- url:https://github.com/ideasrule/platon sg:5 -->
8585

8686
<!-- Adding a new project with a logo? They're roughly sorted by GitHub stars.
8787
Try to insert yours in order. We use judgment for projects not on GiHhub, and
8888
for some that aren't directly comparable. -->
8989

9090
&nbsp; <!--break separating project with image from without -->
9191

92-
- [NetworkX](https://github.com/networkx/networkx)
93-
- [folium](https://github.com/python-visualization/folium)
92+
- [NetworkX](https://github.com/networkx/networkx) <!-- url:https://github.com/networkx/networkx sg:5728 -->
93+
- [folium](https://github.com/python-visualization/folium) <!-- url:https://github.com/python-visualization/folium sg:3938 -->
9494
- [PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5)
95-
- [better-exceptions](https://github.com/qix-/better-exceptions)
96-
- [umap-learn](https://github.com/lmcinnes/umap)
97-
- [hdbscan](https://github.com/scikit-learn-contrib/hdbscan)
98-
- [python-chess](https://github.com/niklasf/python-chess)
99-
- [Altair](https://github.com/ellisonbg/altair)
95+
- [better-exceptions](https://github.com/qix-/better-exceptions) <!-- url:https://github.com/qix-/better-exceptions sg:3332 -->
96+
- [umap-learn](https://github.com/lmcinnes/umap) <!-- url:https://github.com/lmcinnes/umap sg:2854 -->
97+
- [hdbscan](https://github.com/scikit-learn-contrib/hdbscan) <!-- url:https://github.com/scikit-learn-contrib/hdbscan sg:1276 -->
98+
- [python-chess](https://github.com/niklasf/python-chess) <!-- url:https://github.com/niklasf/python-chess sg:778 -->
99+
- [Altair](https://github.com/ellisonbg/altair) <!-- url:https://github.com/ellisonbg/altair sg:236 -->
100100
- [music21](http://web.mit.edu/music21/)
101101
- [imageio](https://imageio.github.io)
102102
- [An Introduction to Applied Bioinformatics](http://readiab.org)
103-
- [pvlib-python](https://github.com/pvlib/pvlib-python)
103+
- [pvlib-python](https://github.com/pvlib/pvlib-python) <!-- url:https://github.com/pvlib/pvlib-python sg:255 -->
104104
- [QIIME](http://qiime.org)
105105
- [Py-ART](https://arm-doe.github.io/pyart/)
106-
- [SPADE](https://github.com/javipalanca/spade)
106+
- [SPADE](https://github.com/javipalanca/spade) <!-- url:https://github.com/javipalanca/spade sg:128 -->
107107
- [Plyara](https://plyara.readthedocs.io/en/latest/)
108108
- [gala](https://gala.readthedocs.io)
109-
- [CIS](https://github.com/cedadev/cis)
110-
- [cual-id](https://github.com/johnchase/cual-id)
111-
- [stomp.py](https://github.com/jasonrbriggs/stomp.py)
112-
- [tinytext](https://github.com/hugovk/tinytext)
113-
- [OSMViz](https://github.com/hugovk/osmviz)
114-
- [fino](https://github.com/hugovk/fino)
115-
- [MambuPy](https://github.com/jstitch/MambuPy)
109+
- [stomp.py](https://github.com/jasonrbriggs/stomp.py) <!-- url:https://github.com/jasonrbriggs/stomp.py sg:312 -->
110+
- [CIS](https://github.com/cedadev/cis) <!-- url:https://github.com/cedadev/cis sg:22 -->
111+
- [cual-id](https://github.com/johnchase/cual-id) <!-- url:https://github.com/johnchase/cual-id sg:15 -->
112+
- [tinytext](https://github.com/hugovk/tinytext) <!-- url:https://github.com/hugovk/tinytext sg:4 -->
113+
- [fino](https://github.com/hugovk/fino) <!-- url:https://github.com/hugovk/fino sg:4 -->
114+
- [OSMViz](https://github.com/hugovk/osmviz) <!-- url:https://github.com/hugovk/osmviz sg:3 -->
115+
- [MambuPy](https://github.com/jstitch/MambuPy) <!-- url:https://github.com/jstitch/MambuPy sg:0 -->
116116
- [Pyramid](https://trypyramid.com)
117-
- [multiconf](https://github.com/lhupfeldt/multiconf)
118-
- [jenkinsflow](https://github.com/lhupfeldt/jenkinsflow)
119-
- [eml_parser](https://github.com/GOVCERT-LU/eml_parser)
120-
- [odin](https://github.com/python-odin/odin)
121-
- [pyApp](https://github.com/timsavage/pyapp)
117+
- [eml_parser](https://github.com/GOVCERT-LU/eml_parser) <!-- url:https://github.com/GOVCERT-LU/eml_parser sg:62 -->
118+
- [odin](https://github.com/python-odin/odin) <!-- url:https://github.com/python-odin/odin sg:11 -->
119+
- [jenkinsflow](https://github.com/lhupfeldt/jenkinsflow) <!-- url:https://github.com/lhupfeldt/jenkinsflow sg:10 -->
120+
- [multiconf](https://github.com/lhupfeldt/multiconf) <!-- url:https://github.com/lhupfeldt/multiconf sg:5 -->
121+
- [pyApp](https://github.com/timsavage/pyapp) <!-- url:https://github.com/timsavage/pyapp sg:0 -->
122122

123123
<!-- Adding a new project without a logo? They're roughly sorted by Github stars.
124124
Try to insert yours in order. We use judgment for projects not on Github, and

reorder.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
with open('_sections/30-projects.md') as f:
2+
data = f.read()
3+
4+
5+
6+
import re
7+
import sys
8+
import requests
9+
import requests_cache
10+
11+
12+
match = re.compile('sg:(\d+)')
13+
def make_groups(lines):
14+
# assume first line does not match
15+
matching = True
16+
groups = []
17+
loc = []
18+
for l in lines:
19+
if (len(match.findall(l)) == 0) != matching:
20+
matching = not matching
21+
if loc:
22+
groups.append((matching, loc))
23+
loc = []
24+
loc.append(l)
25+
if loc:
26+
groups.append((not matching, loc))
27+
return groups
28+
29+
30+
with open('_sections/30-projects.md','w') as f:
31+
32+
groups = make_groups(data.splitlines())
33+
for m,g in groups:
34+
if m:
35+
g = sorted(g, key=lambda s:int(match.findall(s)[0]), reverse=True)
36+
for l in g:
37+
f.write(l + '\n')
38+
39+
40+
41+
42+
43+

restar.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
with open('_sections/30-projects.md') as f:
2+
data = f.read()
3+
4+
5+
6+
import re
7+
import sys
8+
import requests
9+
import requests_cache
10+
11+
requests_cache.install_cache('cache')
12+
13+
token = None
14+
if len(sys.argv) == 2:
15+
token = sys.argv[1]
16+
17+
18+
headers = {}
19+
if token:
20+
headers = {
21+
"Authorization": f"token {token}"
22+
}
23+
24+
match = re.compile('github.com/([a-zA-Z-]+)/([0-9a-zA-Z-._]+)/?')
25+
26+
with open('_sections/30-projects.md','w') as f:
27+
28+
for line in data.splitlines():
29+
if not 'github' in line:
30+
f.write(line+'\n')
31+
continue
32+
33+
m = match.findall(line)
34+
if m:
35+
print('.', end='')
36+
sys.stdout.flush()
37+
org,repo = m[-1]
38+
url = f'https://api.github.com/repos/{org}/{repo}'
39+
info = requests.get(url, headers=headers).json()
40+
llll = line.split(' <!')[0]
41+
# do not write url:.... if the link url match the same.
42+
# if len(m) == 2:
43+
# if m[1] == m[0]:
44+
# f.write(llll + f" <!-- sg:{info['stargazers_count']} -->\n")
45+
# continue
46+
f.write(llll + f" <!-- url:https://github.com/{org}/{repo} sg:{info['stargazers_count']} -->\n")
47+
else:
48+
f.write(line+'\n')
49+
50+
51+

0 commit comments

Comments
 (0)