gitlab-harvester 0.2.6__tar.gz → 0.2.7__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.
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/PKG-INFO +1 -1
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/PKG-INFO +1 -1
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/harvester.py +0 -1
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/utils/terminal_utils.py +10 -3
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/pyproject.toml +1 -1
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/LICENSE +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/README.md +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/SOURCES.txt +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/dependency_links.txt +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/entry_points.txt +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/requires.txt +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/top_level.txt +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/__init__.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/cli.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/exceptions.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/modes.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/planner.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/postprocess/__init__.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/postprocess/convert.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/postprocess/dedup.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/session.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/utils/__init__.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/glh/utils/logging_utils.py +0 -0
- {gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitlab-harvester
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Build a GitLab instance project index and search repositories for sensitive keywords (API-only, no cloning).
|
|
5
5
|
Author-email: Cur1iosity <cur1iosity@protonmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitlab-harvester
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: Build a GitLab instance project index and search repositories for sensitive keywords (API-only, no cloning).
|
|
5
5
|
Author-email: Cur1iosity <cur1iosity@protonmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -756,7 +756,6 @@ class GitlabHarvester:
|
|
|
756
756
|
if len(keywords) <= 1:
|
|
757
757
|
with terminal_utils.mk_header(position=position, leave=True, layout_=lay) as hdr:
|
|
758
758
|
for term in keywords:
|
|
759
|
-
# Keep header stable and useful.
|
|
760
759
|
terminal_utils.set_desc(hdr, f"Searching term: '{term}' | Hit Counter: {hit_counter}", lay)
|
|
761
760
|
|
|
762
761
|
s_res, hit_counter = self.search_keyword(
|
|
@@ -71,9 +71,10 @@ def bar_format_stable(lay: TqdmLayout) -> str:
|
|
|
71
71
|
"""
|
|
72
72
|
return (
|
|
73
73
|
f"{{desc:<{lay.desc_w}}} "
|
|
74
|
+
f"[{{elapsed}}<{{remaining}}]"
|
|
74
75
|
f"{{percentage:3.0f}}% "
|
|
75
76
|
f"{{bar}} "
|
|
76
|
-
f"[{{n_fmt}}/{{total_fmt}}]"
|
|
77
|
+
f"[{{n_fmt}}/{{total_fmt}}] "
|
|
77
78
|
f"{{postfix}}"
|
|
78
79
|
)
|
|
79
80
|
|
|
@@ -105,6 +106,12 @@ def mk_tqdm(
|
|
|
105
106
|
)
|
|
106
107
|
|
|
107
108
|
|
|
109
|
+
def layout_header(fallback_cols: int = 120) -> TqdmLayout:
|
|
110
|
+
cols = term_cols(fallback=fallback_cols)
|
|
111
|
+
desc_w = max(40, cols - 2)
|
|
112
|
+
return TqdmLayout(cols=cols, desc_w=desc_w, post_w=0)
|
|
113
|
+
|
|
114
|
+
|
|
108
115
|
def mk_header(
|
|
109
116
|
*,
|
|
110
117
|
position: int = 0,
|
|
@@ -116,14 +123,14 @@ def mk_header(
|
|
|
116
123
|
|
|
117
124
|
Useful for single-term outer “status” line without jitter.
|
|
118
125
|
"""
|
|
119
|
-
lay = layout_ or
|
|
126
|
+
lay = layout_ or layout_header()
|
|
120
127
|
return tqdm(
|
|
121
128
|
total=1,
|
|
122
129
|
position=position,
|
|
123
130
|
leave=leave,
|
|
124
131
|
ncols=lay.cols,
|
|
125
132
|
dynamic_ncols=False,
|
|
126
|
-
bar_format=f"{{desc:<{lay.cols}}}",
|
|
133
|
+
bar_format=f"{{desc:<{lay.cols}}}",
|
|
127
134
|
)
|
|
128
135
|
|
|
129
136
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "gitlab-harvester"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.7"
|
|
8
8
|
description = "Build a GitLab instance project index and search repositories for sensitive keywords (API-only, no cloning)."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{gitlab_harvester-0.2.6 → gitlab_harvester-0.2.7}/gitlab_harvester.egg-info/entry_points.txt
RENAMED
|
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
|