gitraze 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gitraze-0.2.1 → gitraze-0.2.2}/PKG-INFO +2 -2
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/cli.py +11 -4
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/core/api_rest.py +18 -6
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze.egg-info/PKG-INFO +2 -2
- {gitraze-0.2.1 → gitraze-0.2.2}/pyproject.toml +2 -2
- {gitraze-0.2.1 → gitraze-0.2.2}/LICENSE +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/README.md +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/__init__.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/config.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/core/__init__.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/core/api_graphql.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/modules/__init__.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/modules/analytics.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/modules/repo.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/modules/search.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/modules/user.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/utils/__init__.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze/utils/helpers.py +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze.egg-info/SOURCES.txt +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze.egg-info/dependency_links.txt +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze.egg-info/entry_points.txt +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze.egg-info/requires.txt +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/gitraze.egg-info/top_level.txt +0 -0
- {gitraze-0.2.1 → gitraze-0.2.2}/setup.cfg +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitraze
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: A CLI and Python library for GitHub reconnaissance, search, and analysis
|
|
5
5
|
Author: AK Pandey
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/akpandey-dev/gitraze
|
|
8
|
-
Keywords: github,cli,api,recon,search
|
|
8
|
+
Keywords: github,cli,api,recon,search,github-user,repository
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.8
|
|
@@ -15,7 +15,7 @@ def main():
|
|
|
15
15
|
parser.add_argument(
|
|
16
16
|
"--version",
|
|
17
17
|
action="version",
|
|
18
|
-
version="gitraze 0.2.
|
|
18
|
+
version="gitraze 0.2.2"
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
subparsers = parser.add_subparsers(dest="command", required=True)
|
|
@@ -87,15 +87,22 @@ def handle_repo(args):
|
|
|
87
87
|
|
|
88
88
|
def handle_search(args):
|
|
89
89
|
category = args.category
|
|
90
|
-
query = " ".join(args.query)
|
|
91
|
-
print(f"[+] Searching {category} for '{query}'...")
|
|
92
90
|
|
|
93
|
-
|
|
91
|
+
raw_query = " ".join(args.query)
|
|
92
|
+
clean_query = raw_query.replace('"', '')
|
|
93
|
+
query = f'"{clean_query}"'
|
|
94
|
+
|
|
95
|
+
print(f"[+] Searching {category} for {query}...")
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
data = get_search_rest(category, query, args.limit)
|
|
99
|
+
|
|
94
100
|
if "error" in data:
|
|
95
101
|
print(data["error"])
|
|
96
102
|
return
|
|
97
103
|
|
|
98
104
|
print("[✓] Done")
|
|
105
|
+
|
|
99
106
|
if isinstance(data, list):
|
|
100
107
|
for i, item in enumerate(data, 1):
|
|
101
108
|
pretty_print(item, title=f"{category} [{i}] -> {query}")
|
|
@@ -41,14 +41,26 @@ def get_repo(owner, repo):
|
|
|
41
41
|
|
|
42
42
|
def get_search(category, query):
|
|
43
43
|
url = f"{REST_BASE_URL}/search/{SEARCH_MAP.get(category)}"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
filters = []
|
|
45
|
+
if category == "prs":
|
|
46
|
+
filters.append("type:pr")
|
|
47
|
+
elif category == "issues":
|
|
48
|
+
filters.append("type:issue")
|
|
49
|
+
|
|
50
|
+
filters.extend([
|
|
51
|
+
"in:title",
|
|
52
|
+
"comments:1..50",
|
|
53
|
+
"-author:app",
|
|
54
|
+
])
|
|
55
|
+
|
|
56
|
+
final_query = f"{query} {' '.join(filters)}"
|
|
49
57
|
params = {
|
|
50
|
-
"q":
|
|
58
|
+
"q": final_query,
|
|
59
|
+
"per_page": 100,
|
|
60
|
+
"sort": "comments",
|
|
61
|
+
"order": "desc"
|
|
51
62
|
}
|
|
63
|
+
|
|
52
64
|
try:
|
|
53
65
|
response = requests.get(
|
|
54
66
|
url,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitraze
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: A CLI and Python library for GitHub reconnaissance, search, and analysis
|
|
5
5
|
Author: AK Pandey
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/akpandey-dev/gitraze
|
|
8
|
-
Keywords: github,cli,api,recon,search
|
|
8
|
+
Keywords: github,cli,api,recon,search,github-user,repository
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "gitraze"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.2"
|
|
4
4
|
description = "A CLI and Python library for GitHub reconnaissance, search, and analysis"
|
|
5
5
|
authors = [{ name = "AK Pandey" }]
|
|
6
6
|
dependencies = ["requests", "colorama"]
|
|
@@ -8,7 +8,7 @@ readme = "README.md"
|
|
|
8
8
|
requires-python = ">=3.8"
|
|
9
9
|
license = "MIT"
|
|
10
10
|
|
|
11
|
-
keywords = ["github", "cli", "api", "recon", "search"]
|
|
11
|
+
keywords = ["github", "cli", "api", "recon", "search", "github-user", "repository"]
|
|
12
12
|
|
|
13
13
|
classifiers = [
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|