You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
<palign="center"><imgsrc="https://github.com/user-attachments/assets/d28934e1-a1ab-4b6e-9d12-d64067a65a60"><br>Python SDK and Command-Line Utility for <ahref="https://searchcode.com">Searchcode</a>.<br><i>Search 75 billion lines of code from 40 million projects</i></p>
2
2
<palign="center"></p>
3
3
4
-
---
5
-
6
4
```commandline
7
5
searchcode --help
8
6
```
@@ -17,8 +15,6 @@ for result in search.results:
17
15
print(result)
18
16
```
19
17
20
-
---
21
-
22
18
## Installation
23
19
24
20
```bash
@@ -56,6 +52,12 @@ Queries the code index and returns at most 100 results.
56
52
57
53
### Code Search Without Filters
58
54
55
+
#### CLI
56
+
57
+
```commandline
58
+
searchcode test
59
+
```
60
+
59
61
#### SDK
60
62
61
63
```python
@@ -68,16 +70,16 @@ for result in search.results:
68
70
print(result)
69
71
```
70
72
71
-
#### CLI
72
-
73
-
```commandline
74
-
searchcode test
75
-
```
76
-
77
73
---
78
74
79
75
### Filter by Language (Java and JavaScript)
80
76
77
+
#### CLI
78
+
79
+
````commandline
80
+
searchcode test --languages java,javascript
81
+
````
82
+
81
83
#### SDK
82
84
83
85
```python
@@ -90,16 +92,16 @@ for result in search.results:
90
92
print(result.language)
91
93
```
92
94
93
-
#### CLI
94
-
95
-
````commandline
96
-
searchcode test --languages java,javascript
97
-
````
98
-
99
95
___
100
96
101
97
### Filter by Source (BitBucket and CodePlex)
102
98
99
+
#### CLI
100
+
101
+
```commandline
102
+
searchcode test --sources bitbucket,codeplex
103
+
```
104
+
103
105
#### SDK
104
106
105
107
```python
@@ -112,16 +114,16 @@ for result in search.results:
112
114
print(result.filename)
113
115
```
114
116
117
+
___
118
+
119
+
### Filter by Lines of Code (Between 500 and 1000)
120
+
115
121
#### CLI
116
122
117
123
```commandline
118
-
searchcode test --sources bitbucket,codeplex
124
+
searchcode test --lines-of-code-gt 500 --lines-of-code-lt 1000
119
125
```
120
126
121
-
___
122
-
123
-
### Filter by Lines of Code (Between 500 and 1000)
124
-
125
127
#### SDK
126
128
127
129
```python
@@ -135,16 +137,16 @@ for result in search.results:
135
137
print(result)
136
138
```
137
139
140
+
___
141
+
142
+
### With Callback Function (JSONP only)
143
+
138
144
#### CLI
139
145
140
146
```commandline
141
-
searchcode test --lines-of-code-gt 500 --lines-of-code-lt 1000
0 commit comments