pseek 3.8.0__tar.gz → 3.8.1__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.
- {pseek-3.8.0 → pseek-3.8.1}/PKG-INFO +2 -2
- {pseek-3.8.0 → pseek-3.8.1}/README.md +1 -1
- {pseek-3.8.0 → pseek-3.8.1}/pseek/core/search/search.py +14 -2
- {pseek-3.8.0 → pseek-3.8.1}/pseek/output.py +5 -2
- {pseek-3.8.0 → pseek-3.8.1}/pyproject.toml +3 -3
- {pseek-3.8.0 → pseek-3.8.1}/.gitattributes +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/.github/workflows/publish.yml +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/.gitignore +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/Cargo.lock +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/Cargo.toml +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/LICENSE +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/__init__.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/cli.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/compound_extensions +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/core/archive.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/core/parser.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/core/search/parallel.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/core/search/timeout.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/core/walk.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/sorting.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/structs.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/pseek/utils.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/scripts/check_version.py +0 -0
- {pseek-3.8.0 → pseek-3.8.1}/src/lib.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pseek
|
|
3
|
-
Version: 3.8.
|
|
3
|
+
Version: 3.8.1
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -1166,7 +1166,7 @@ pseek query --details=all
|
|
|
1166
1166
|
- Modification and access times may be unavailable for some archive entries, depending on the archive format and the metadata stored in it.
|
|
1167
1167
|
- Access times may be inaccurate or outdated depending on filesystem settings, such as `relatime`, `noatime`, or `nodiratime`.
|
|
1168
1168
|
- Symbolic link targets do not have a filesystem traversal depth in the same way as their original paths, so their depth may be unavailable.
|
|
1169
|
-
- Match counts may be `0` when match positions are not calculated, such as
|
|
1169
|
+
- Match counts may be `0` when match positions are not calculated, such as fuzzy search.
|
|
1170
1170
|
- Unavailable or inapplicable values are displayed as `—`.
|
|
1171
1171
|
|
|
1172
1172
|
## Requirements
|
|
@@ -1138,7 +1138,7 @@ pseek query --details=all
|
|
|
1138
1138
|
- Modification and access times may be unavailable for some archive entries, depending on the archive format and the metadata stored in it.
|
|
1139
1139
|
- Access times may be inaccurate or outdated depending on filesystem settings, such as `relatime`, `noatime`, or `nodiratime`.
|
|
1140
1140
|
- Symbolic link targets do not have a filesystem traversal depth in the same way as their original paths, so their depth may be unavailable.
|
|
1141
|
-
- Match counts may be `0` when match positions are not calculated, such as
|
|
1141
|
+
- Match counts may be `0` when match positions are not calculated, such as fuzzy search.
|
|
1142
1142
|
- Unavailable or inapplicable values are displayed as `—`.
|
|
1143
1143
|
|
|
1144
1144
|
## Requirements
|
|
@@ -252,7 +252,13 @@ def search_archive_content(
|
|
|
252
252
|
for num, line in enumerate(decoded_content.splitlines(), 1):
|
|
253
253
|
matched = pattern is None or pattern.evaluate(line)
|
|
254
254
|
|
|
255
|
-
if
|
|
255
|
+
if (
|
|
256
|
+
config.paths_only and matched
|
|
257
|
+
and not (
|
|
258
|
+
'matches' in config.details
|
|
259
|
+
or 'matches' in config.sortby
|
|
260
|
+
)
|
|
261
|
+
):
|
|
256
262
|
add_result(
|
|
257
263
|
matches,
|
|
258
264
|
result_queue,
|
|
@@ -331,7 +337,13 @@ def search_content(config, matches: dict, pattern, binary_pattern,
|
|
|
331
337
|
matched = pattern is None or pattern.evaluate(line_decoded)
|
|
332
338
|
|
|
333
339
|
# Avoid searching through the entire file content if the paths-only flag is True
|
|
334
|
-
if
|
|
340
|
+
if (
|
|
341
|
+
config.paths_only and matched
|
|
342
|
+
and not (
|
|
343
|
+
'matches' in config.details
|
|
344
|
+
or 'matches' in config.sortby
|
|
345
|
+
)
|
|
346
|
+
):
|
|
335
347
|
add_result(
|
|
336
348
|
matches,
|
|
337
349
|
result_queue,
|
|
@@ -153,7 +153,7 @@ def echo(results: dict, config):
|
|
|
153
153
|
# Print file path
|
|
154
154
|
if data.virtual_path:
|
|
155
155
|
separator = click.style("::", fg="yellow")
|
|
156
|
-
|
|
156
|
+
print(
|
|
157
157
|
separator.join(
|
|
158
158
|
[
|
|
159
159
|
click.style(data.path, fg="cyan"),
|
|
@@ -174,7 +174,7 @@ def echo(results: dict, config):
|
|
|
174
174
|
)
|
|
175
175
|
)
|
|
176
176
|
else:
|
|
177
|
-
|
|
177
|
+
print(
|
|
178
178
|
click.style(data.path.string, fg="cyan") + \
|
|
179
179
|
create_details(
|
|
180
180
|
data.path,
|
|
@@ -187,6 +187,9 @@ def echo(results: dict, config):
|
|
|
187
187
|
)
|
|
188
188
|
)
|
|
189
189
|
|
|
190
|
+
if config.paths_only:
|
|
191
|
+
continue
|
|
192
|
+
|
|
190
193
|
counter = 0
|
|
191
194
|
for group in data.groups:
|
|
192
195
|
if any(config.context):
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["maturin>=1.
|
|
2
|
+
requires = ["maturin>=1.9.4,<2.0"]
|
|
3
3
|
build-backend = "maturin"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pseek"
|
|
7
|
-
version = "3.8.
|
|
7
|
+
version = "3.8.1"
|
|
8
8
|
description = "Pseek is a Python CLI toolkit to search files, folders, and text"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -18,7 +18,7 @@ dependencies = [
|
|
|
18
18
|
"lark>=1.2,<2",
|
|
19
19
|
"py7zr>=1.0.0,<2",
|
|
20
20
|
"rarfile>=4.2,<5",
|
|
21
|
-
"rapidfuzz>=3.13.0,<4"
|
|
21
|
+
"rapidfuzz>=3.13.0,<4",
|
|
22
22
|
]
|
|
23
23
|
keywords = [
|
|
24
24
|
"search",
|
|
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
|