gitraze 0.2.0__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.
Files changed (24) hide show
  1. {gitraze-0.2.0 → gitraze-0.2.2}/PKG-INFO +14 -8
  2. {gitraze-0.2.0 → gitraze-0.2.2}/README.md +11 -4
  3. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/cli.py +11 -4
  4. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/core/api_rest.py +18 -6
  5. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze.egg-info/PKG-INFO +14 -8
  6. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze.egg-info/requires.txt +0 -1
  7. {gitraze-0.2.0 → gitraze-0.2.2}/pyproject.toml +6 -5
  8. {gitraze-0.2.0 → gitraze-0.2.2}/LICENSE +0 -0
  9. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/__init__.py +0 -0
  10. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/config.py +0 -0
  11. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/core/__init__.py +0 -0
  12. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/core/api_graphql.py +0 -0
  13. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/modules/__init__.py +0 -0
  14. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/modules/analytics.py +0 -0
  15. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/modules/repo.py +0 -0
  16. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/modules/search.py +0 -0
  17. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/modules/user.py +0 -0
  18. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/utils/__init__.py +0 -0
  19. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze/utils/helpers.py +0 -0
  20. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze.egg-info/SOURCES.txt +0 -0
  21. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze.egg-info/dependency_links.txt +0 -0
  22. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze.egg-info/entry_points.txt +0 -0
  23. {gitraze-0.2.0 → gitraze-0.2.2}/gitraze.egg-info/top_level.txt +0 -0
  24. {gitraze-0.2.0 → gitraze-0.2.2}/setup.cfg +0 -0
@@ -1,19 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitraze
3
- Version: 0.2.0
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
- License: MIT
6
+ License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/akpandey-dev/gitraze
8
+ Keywords: github,cli,api,recon,search,github-user,repository
8
9
  Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.8
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: requests
15
15
  Requires-Dist: colorama
16
- Requires-Dist: re
17
16
  Dynamic: license-file
18
17
 
19
18
  # Gitraze
@@ -22,7 +21,10 @@ Dynamic: license-file
22
21
 
23
22
  Gitraze is a powerful command-line tool designed to explore, analyze, and extract insights from GitHub using both REST and GraphQL APIs — all from your terminal.
24
23
 
25
- ⚠️ **Status:** Early development — expect bugs, missing features, and rapid changes.
24
+ ⚠️ **Status:** Early development — expect bugs, missing features, and rapid changes. APIs and CLI may change without notice.
25
+
26
+ > Built for developers who prefer terminals over tabs.
27
+
26
28
 
27
29
  ---
28
30
 
@@ -45,8 +47,12 @@ Most GitHub tools are either slow, bloated, or UI-heavy.
45
47
  - 🌐 GitHub API integration (REST + GraphQL)
46
48
  - 📦 Repository insights
47
49
  - 👤 User analysis
48
- - 🔎 Search capabilities
50
+ - 🧵 Filter PRs vs issues automatically
51
+ - 🕒 Human-readable timestamps
52
+ - 🧹 Cleaned descriptions (HTML stripped)
49
53
  - 📊 Analytics modules (in progress)
54
+ - 🔎 Search users, repos, issues, PRs, and topics
55
+
50
56
 
51
57
  ---
52
58
 
@@ -65,8 +71,8 @@ Example:
65
71
  ```bash
66
72
  gitraze --help
67
73
  gitraze user octocat
68
- gitraze repo torvalds/linux
69
- gitraze search "machine learning"
74
+ gitraze repo torvalds/linux
75
+ gitraze search repos "machine learning" -n 5 # Will show top 5 results, but it is optional flag
70
76
  gitraze analyze github # Coming soon!
71
77
  ```
72
78
 
@@ -4,7 +4,10 @@
4
4
 
5
5
  Gitraze is a powerful command-line tool designed to explore, analyze, and extract insights from GitHub using both REST and GraphQL APIs — all from your terminal.
6
6
 
7
- ⚠️ **Status:** Early development — expect bugs, missing features, and rapid changes.
7
+ ⚠️ **Status:** Early development — expect bugs, missing features, and rapid changes. APIs and CLI may change without notice.
8
+
9
+ > Built for developers who prefer terminals over tabs.
10
+
8
11
 
9
12
  ---
10
13
 
@@ -27,8 +30,12 @@ Most GitHub tools are either slow, bloated, or UI-heavy.
27
30
  - 🌐 GitHub API integration (REST + GraphQL)
28
31
  - 📦 Repository insights
29
32
  - 👤 User analysis
30
- - 🔎 Search capabilities
33
+ - 🧵 Filter PRs vs issues automatically
34
+ - 🕒 Human-readable timestamps
35
+ - 🧹 Cleaned descriptions (HTML stripped)
31
36
  - 📊 Analytics modules (in progress)
37
+ - 🔎 Search users, repos, issues, PRs, and topics
38
+
32
39
 
33
40
  ---
34
41
 
@@ -47,8 +54,8 @@ Example:
47
54
  ```bash
48
55
  gitraze --help
49
56
  gitraze user octocat
50
- gitraze repo torvalds/linux
51
- gitraze search "machine learning"
57
+ gitraze repo torvalds/linux
58
+ gitraze search repos "machine learning" -n 5 # Will show top 5 results, but it is optional flag
52
59
  gitraze analyze github # Coming soon!
53
60
  ```
54
61
 
@@ -15,7 +15,7 @@ def main():
15
15
  parser.add_argument(
16
16
  "--version",
17
17
  action="version",
18
- version="gitraze 0.2.0"
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
- data = get_search_rest(args.category, args.query, args.limit)
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
- if category == "issues":
45
- query = query + " type:issue"
46
- elif category == "prs":
47
- query += " type:pr"
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": query
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,19 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitraze
3
- Version: 0.2.0
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
- License: MIT
6
+ License-Expression: MIT
7
7
  Project-URL: Homepage, https://github.com/akpandey-dev/gitraze
8
+ Keywords: github,cli,api,recon,search,github-user,repository
8
9
  Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.8
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: requests
15
15
  Requires-Dist: colorama
16
- Requires-Dist: re
17
16
  Dynamic: license-file
18
17
 
19
18
  # Gitraze
@@ -22,7 +21,10 @@ Dynamic: license-file
22
21
 
23
22
  Gitraze is a powerful command-line tool designed to explore, analyze, and extract insights from GitHub using both REST and GraphQL APIs — all from your terminal.
24
23
 
25
- ⚠️ **Status:** Early development — expect bugs, missing features, and rapid changes.
24
+ ⚠️ **Status:** Early development — expect bugs, missing features, and rapid changes. APIs and CLI may change without notice.
25
+
26
+ > Built for developers who prefer terminals over tabs.
27
+
26
28
 
27
29
  ---
28
30
 
@@ -45,8 +47,12 @@ Most GitHub tools are either slow, bloated, or UI-heavy.
45
47
  - 🌐 GitHub API integration (REST + GraphQL)
46
48
  - 📦 Repository insights
47
49
  - 👤 User analysis
48
- - 🔎 Search capabilities
50
+ - 🧵 Filter PRs vs issues automatically
51
+ - 🕒 Human-readable timestamps
52
+ - 🧹 Cleaned descriptions (HTML stripped)
49
53
  - 📊 Analytics modules (in progress)
54
+ - 🔎 Search users, repos, issues, PRs, and topics
55
+
50
56
 
51
57
  ---
52
58
 
@@ -65,8 +71,8 @@ Example:
65
71
  ```bash
66
72
  gitraze --help
67
73
  gitraze user octocat
68
- gitraze repo torvalds/linux
69
- gitraze search "machine learning"
74
+ gitraze repo torvalds/linux
75
+ gitraze search repos "machine learning" -n 5 # Will show top 5 results, but it is optional flag
70
76
  gitraze analyze github # Coming soon!
71
77
  ```
72
78
 
@@ -1,3 +1,2 @@
1
1
  requests
2
2
  colorama
3
- re
@@ -1,16 +1,17 @@
1
1
  [project]
2
2
  name = "gitraze"
3
- version = "0.2.0"
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
- dependencies = ["requests", "colorama", "re"]
6
+ dependencies = ["requests", "colorama"]
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.8"
9
- license = { text = "MIT" }
9
+ license = "MIT"
10
+
11
+ keywords = ["github", "cli", "api", "recon", "search", "github-user", "repository"]
10
12
 
11
13
  classifiers = [
12
14
  "Programming Language :: Python :: 3",
13
- "License :: OSI Approved :: MIT License",
14
15
  "Operating System :: OS Independent"
15
16
  ]
16
17
 
@@ -21,5 +22,5 @@ gitraze = "gitraze.cli:main"
21
22
  Homepage = "https://github.com/akpandey-dev/gitraze"
22
23
 
23
24
  [build-system]
24
- requires = ["setuptools"]
25
+ requires = ["setuptools>=77.0.0"]
25
26
  build-backend = "setuptools.build_meta"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes