gitraze 0.2.2__tar.gz → 0.2.3__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.2 → gitraze-0.2.3}/PKG-INFO +16 -15
  2. {gitraze-0.2.2 → gitraze-0.2.3}/README.md +16 -15
  3. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/cli.py +1 -1
  4. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/core/api_rest.py +10 -8
  5. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/modules/search.py +2 -2
  6. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze.egg-info/PKG-INFO +16 -15
  7. {gitraze-0.2.2 → gitraze-0.2.3}/pyproject.toml +1 -1
  8. {gitraze-0.2.2 → gitraze-0.2.3}/LICENSE +0 -0
  9. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/__init__.py +0 -0
  10. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/config.py +0 -0
  11. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/core/__init__.py +0 -0
  12. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/core/api_graphql.py +0 -0
  13. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/modules/__init__.py +0 -0
  14. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/modules/analytics.py +0 -0
  15. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/modules/repo.py +0 -0
  16. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/modules/user.py +0 -0
  17. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/utils/__init__.py +0 -0
  18. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze/utils/helpers.py +0 -0
  19. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze.egg-info/SOURCES.txt +0 -0
  20. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze.egg-info/dependency_links.txt +0 -0
  21. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze.egg-info/entry_points.txt +0 -0
  22. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze.egg-info/requires.txt +0 -0
  23. {gitraze-0.2.2 → gitraze-0.2.3}/gitraze.egg-info/top_level.txt +0 -0
  24. {gitraze-0.2.2 → gitraze-0.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitraze
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A CLI and Python library for GitHub reconnaissance, search, and analysis
5
5
  Author: AK Pandey
6
6
  License-Expression: MIT
@@ -33,25 +33,25 @@ Gitraze is a powerful command-line tool designed to explore, analyze, and extrac
33
33
  Most GitHub tools are either slow, bloated, or UI-heavy.
34
34
 
35
35
  **Gitraze is different:**
36
- -Fast, minimal, no nonsense
37
- - 🧠 Built for developers who think in terminals
38
- - 🔍 Deep GitHub data access (REST + GraphQL)
39
- - 🧩 Modular and extensible architecture
36
+ - Fast, minimal, no nonsense
37
+ - Built for developers who think in terminals
38
+ - Deep GitHub data access (REST + GraphQL)
39
+ - Modular and extensible architecture
40
40
 
41
41
  ---
42
42
 
43
43
  ## Features
44
44
 
45
- - 🔌 Modular system (easy to extend and hack on)
46
- - 💻 CLI-first workflow
47
- - 🌐 GitHub API integration (REST + GraphQL)
48
- - 📦 Repository insights
49
- - 👤 User analysis
50
- - 🧵 Filter PRs vs issues automatically
51
- - 🕒 Human-readable timestamps
52
- - 🧹 Cleaned descriptions (HTML stripped)
53
- - 📊 Analytics modules (in progress)
54
- - 🔎 Search users, repos, issues, PRs, and topics
45
+ - Modular system (easy to extend and hack on)
46
+ - CLI-first workflow
47
+ - GitHub API integration (REST + GraphQL)
48
+ - Repository insights
49
+ - User analysis
50
+ - Filter PRs vs issues automatically
51
+ - Human-readable timestamps
52
+ - Cleaned descriptions (HTML stripped)
53
+ - Analytics modules (in progress)
54
+ - Search users, repos, issues, PRs, and topics
55
55
 
56
56
 
57
57
  ---
@@ -146,3 +146,4 @@ If you're here early — you're basically a beta tester 😈
146
146
  ## License
147
147
 
148
148
  MIT License — do whatever you want, just don’t blame me if you break stuff.
149
+
@@ -16,25 +16,25 @@ Gitraze is a powerful command-line tool designed to explore, analyze, and extrac
16
16
  Most GitHub tools are either slow, bloated, or UI-heavy.
17
17
 
18
18
  **Gitraze is different:**
19
- -Fast, minimal, no nonsense
20
- - 🧠 Built for developers who think in terminals
21
- - 🔍 Deep GitHub data access (REST + GraphQL)
22
- - 🧩 Modular and extensible architecture
19
+ - Fast, minimal, no nonsense
20
+ - Built for developers who think in terminals
21
+ - Deep GitHub data access (REST + GraphQL)
22
+ - Modular and extensible architecture
23
23
 
24
24
  ---
25
25
 
26
26
  ## Features
27
27
 
28
- - 🔌 Modular system (easy to extend and hack on)
29
- - 💻 CLI-first workflow
30
- - 🌐 GitHub API integration (REST + GraphQL)
31
- - 📦 Repository insights
32
- - 👤 User analysis
33
- - 🧵 Filter PRs vs issues automatically
34
- - 🕒 Human-readable timestamps
35
- - 🧹 Cleaned descriptions (HTML stripped)
36
- - 📊 Analytics modules (in progress)
37
- - 🔎 Search users, repos, issues, PRs, and topics
28
+ - Modular system (easy to extend and hack on)
29
+ - CLI-first workflow
30
+ - GitHub API integration (REST + GraphQL)
31
+ - Repository insights
32
+ - User analysis
33
+ - Filter PRs vs issues automatically
34
+ - Human-readable timestamps
35
+ - Cleaned descriptions (HTML stripped)
36
+ - Analytics modules (in progress)
37
+ - Search users, repos, issues, PRs, and topics
38
38
 
39
39
 
40
40
  ---
@@ -128,4 +128,5 @@ If you're here early — you're basically a beta tester 😈
128
128
 
129
129
  ## License
130
130
 
131
- MIT License — do whatever you want, just don’t blame me if you break stuff.
131
+ MIT License — do whatever you want, just don’t blame me if you break stuff.
132
+
@@ -15,7 +15,7 @@ def main():
15
15
  parser.add_argument(
16
16
  "--version",
17
17
  action="version",
18
- version="gitraze 0.2.2"
18
+ version="gitraze 0.2.3"
19
19
  )
20
20
 
21
21
  subparsers = parser.add_subparsers(dest="command", required=True)
@@ -41,26 +41,28 @@ 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
+
44
45
  filters = []
45
46
  if category == "prs":
46
47
  filters.append("type:pr")
47
48
  elif category == "issues":
48
49
  filters.append("type:issue")
49
50
 
50
- filters.extend([
51
- "in:title",
52
- "comments:1..50",
53
- "-author:app",
54
- ])
51
+ if category in ["issues", "prs"]:
52
+ filters.extend([
53
+ "in:title",
54
+ "comments:1..50",
55
+ "-author:app",
56
+ ])
57
+
58
+ final_query = f"{query} {' '.join(filters)}".strip()
55
59
 
56
- final_query = f"{query} {' '.join(filters)}"
57
60
  params = {
58
61
  "q": final_query,
59
62
  "per_page": 100,
60
- "sort": "comments",
63
+ "sort": "comments" if category in ["issues", "prs"] else "best-match",
61
64
  "order": "desc"
62
65
  }
63
-
64
66
  try:
65
67
  response = requests.get(
66
68
  url,
@@ -5,6 +5,8 @@ from gitraze.core.api_rest import get_search
5
5
 
6
6
 
7
7
  def get_search_rest(category, query, limit=1):
8
+ if category not in ["repos", "users", "issues", "prs", "topics"]:
9
+ return {"error": "Invalid category"}
8
10
  data = get_search(category, query)
9
11
  if "error" in data:
10
12
  return data
@@ -15,8 +17,6 @@ def get_search_rest(category, query, limit=1):
15
17
  elif category == "prs":
16
18
  items = [i for i in items if "pull_request" in i]
17
19
 
18
- if category not in ["repos", "users", "issues", "prs", "topics"]:
19
- return {"error": "Invalid category"}
20
20
  if not items:
21
21
  return {"error": "No results found"}
22
22
  items = items[:limit]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitraze
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: A CLI and Python library for GitHub reconnaissance, search, and analysis
5
5
  Author: AK Pandey
6
6
  License-Expression: MIT
@@ -33,25 +33,25 @@ Gitraze is a powerful command-line tool designed to explore, analyze, and extrac
33
33
  Most GitHub tools are either slow, bloated, or UI-heavy.
34
34
 
35
35
  **Gitraze is different:**
36
- -Fast, minimal, no nonsense
37
- - 🧠 Built for developers who think in terminals
38
- - 🔍 Deep GitHub data access (REST + GraphQL)
39
- - 🧩 Modular and extensible architecture
36
+ - Fast, minimal, no nonsense
37
+ - Built for developers who think in terminals
38
+ - Deep GitHub data access (REST + GraphQL)
39
+ - Modular and extensible architecture
40
40
 
41
41
  ---
42
42
 
43
43
  ## Features
44
44
 
45
- - 🔌 Modular system (easy to extend and hack on)
46
- - 💻 CLI-first workflow
47
- - 🌐 GitHub API integration (REST + GraphQL)
48
- - 📦 Repository insights
49
- - 👤 User analysis
50
- - 🧵 Filter PRs vs issues automatically
51
- - 🕒 Human-readable timestamps
52
- - 🧹 Cleaned descriptions (HTML stripped)
53
- - 📊 Analytics modules (in progress)
54
- - 🔎 Search users, repos, issues, PRs, and topics
45
+ - Modular system (easy to extend and hack on)
46
+ - CLI-first workflow
47
+ - GitHub API integration (REST + GraphQL)
48
+ - Repository insights
49
+ - User analysis
50
+ - Filter PRs vs issues automatically
51
+ - Human-readable timestamps
52
+ - Cleaned descriptions (HTML stripped)
53
+ - Analytics modules (in progress)
54
+ - Search users, repos, issues, PRs, and topics
55
55
 
56
56
 
57
57
  ---
@@ -146,3 +146,4 @@ If you're here early — you're basically a beta tester 😈
146
146
  ## License
147
147
 
148
148
  MIT License — do whatever you want, just don’t blame me if you break stuff.
149
+
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gitraze"
3
- version = "0.2.2"
3
+ version = "0.2.3"
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"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes