codescrape

codescrape Commit Details


Date:2015-09-09 22:17:29 (9 years 3 months ago)
Author:Natalie Adams
Branch:master
Commit:79958bbb97304bd26d1d8ae56e6ad810de31620c
Parents: dee9ce5ef79f9792e61b5937682e4323188a4570
Message:updating code

Changes:

File differences

Issue.py
3333
3434
3535
36
36
37
38
39
40
41
42
return self.status
def getCommnets(self):
return self.comments
return self.comments
def __str__(self):
return self.getTitle()
def __repr__(self):
return str(self)
README.md
2525
2626
2727
28
29
30
31
32
33
34
35
2836
2937
3038
......
3240
3341
3442
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
35101
36102
37103
from services.srchub import srchub
shub = srchub()
projects = shub.getProjects()
### Sample structure
{'issues': [],
'releases': [],
'repoType': 1,
'repoURL': u'git://beta.datanethost.net/bug60.git',
'wikis': [test]}
or for google code
gcode = googlecode()
project = gcode.getProject("android-python27")
### Sample structure
{'issues': [ libs/armeabi/libcom_googlecode_android_scripting_Exec.so read problem ,
How to stop Python Script Service ? ,
Does not work on GoogleTV ,
App crashes when trying to launch camera on phone ,
com.android.pyton27.process.Process does not write log ,
test.py from python_scripts_r13 does not run ,
End all services ,
SL4A Title grey bar ,
Can not import md5, sha1 ,
Patch for /apk/src/com/googlecode/android_scripting/facade/FacadeConfiguration.java ,
Add PyCrypto module ,
myScript.py wont work ,
Microsoft Acess DB(.mdb) in Python APK ,
Unable to generate PyDroid.apk from the sample project Pydroid ,
Python sl4a sendText not working ,
Patch for /python-build/functions.sh ,
Using Home/Recent button restarts apk ,
Add modules ,
Errors using the ADT Bundle for Windows with android-python27 clone ,
errors building python_27.zip and python_extras_27.zip ,
How to use PyQT? ,
Bluetooth-based Scripts cannot launch from APK ,
Undocumented how to distribute egg libraries in self-contained APK ,
How to retrieve errors? ,
android-python27 - Permission issues after bundling Python 3 into my app ,
cannot load library ,
Executed APK is crashing in every scenario ,
Support for Samsung Chord API ,
LookupError: unknown encoding: hex ,
Log traceback on broken hello.py ,
How to run a python script with root privileges using PythonAPK? ,
Is there any way to use python-2.7.5 ,
How to Import SL4A Libraries ,
How to use SL4A on PyDroid ,
android-python installs but cannot launch doInBackground() ,
libssl might be affected by heartbleed bug ,
How can I pass String value from EditText In Android Activity to Python Script and also make the activity able to retrieve the String result from a function in the python script ? ,
Interaction with python file ,
Install on external storage ,
Can't install android-python27 to Samsung Galaxy 4 ,
how to create android app in eclipse using python code on windows 8 ],
'releases': [PythonAPK.apk => https://android-python27.googlecode.com/files/PythonAPK.apk],
'repoType': 2,
'repoURL': 'https://code.google.com/p/android-python27/',
'wikis': [Tutorial on how to run Python from the shell,
Debugging your Python app in Android,
Tutorial on how to install the Android SDK and Eclipse,
Create scripts on your PC and run them on your Android device,
Tutorial on how to create a custom RPC facade,
Tutorial on how to create a custom APK,
Tutorial on how to update with latest SL4A,
Tutorial on how to change the Python builds,
Tutorial on how to use the APK template,
Tutorial on how to add your Python scripts to the template project,
Overview on how Python embedding works.]}
Sourcehub library will pull all public projects since this list is easily accessed. Google Code does not have a public list persay. And I didn't want to scrape the search results, so I developed it to require you to pass in the project name. If you were to get your hands on a list of google code projects you could easily loop through them:
from services.googlecode import googlecode
Release.py
1515
1616
1717
18
18
19
20
21
22
23
24
return self.fileURL
def getChecksum(self):
return self.checksum
return self.checksum
def __str__(self):
return self.getFileName() + " => " + self.getFileURL()
def __repr__(self):
return str(self)
Wiki.py
1919
2020
2121
22
22
23
24
25
26
27
28
return self.summary
def getUpdated(self):
return self.updated
return self.updated
def __str__(self):
return self.getSummary()
def __repr__(self):
return str(self)
main.py
11
22
3
34
4
5
56
6
7
8
7
8
9
10
from services.srchub import srchub
from services.googlecode import googlecode
from pprint import pprint
#shub = srchub()
shub = srchub()
#projects = shub.getProjects()
gcode = googlecode()
project = gcode.getProject("android-python27")
projects = shub.getProjects()
#gcode = googlecode()
#project = gcode.getProject("android-python27")
pprint (vars(projects[0]))
services/srchub.py
3131
3232
3333
34
34
3535
3636
37
37
3838
3939
40
40
4141
4242
4343
# get source
if "git clone" in sourceSoupText:
project.repoType = REPO_TYPES.git
project.repoURL = "git://" + self.DOMAIN + "/" + projectName + ".git"
project.repoURL = "git://beta.datanethost.net/" + projectName + ".git"
elif "svn co" in sourceSoupText:
project.repoType = REPO_TYPES.SVN
project.repoURL = "https://" + self.DOMAIN + "/svn/" + projectName + "/"
project.repoURL = self.DOMAIN + "/svn/" + projectName + "/"
else:
project.repoType = REPO_TYPES.hg
project.repoURL = "https://" + self.DOMAIN + "/hg/" + projectName + "/"
project.repoURL = self.DOMAIN + "/hg/" + projectName + "/"
# get downloads

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.07972s using 14 queries.