fstdtools 0.0.2__tar.gz → 0.0.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.
- {fstdtools-0.0.2/fstdtools.egg-info → fstdtools-0.0.3}/PKG-INFO +3 -3
- {fstdtools-0.0.2 → fstdtools-0.0.3}/README.md +1 -1
- fstdtools-0.0.3/VERSION +1 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/cli.py +6 -8
- {fstdtools-0.0.2 → fstdtools-0.0.3/fstdtools.egg-info}/PKG-INFO +3 -3
- {fstdtools-0.0.2 → fstdtools-0.0.3}/pyproject.toml +1 -1
- fstdtools-0.0.2/VERSION +0 -1
- {fstdtools-0.0.2 → fstdtools-0.0.3}/LICENSE +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/__init__.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/__main__.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/convert.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/mdict/__init__.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/mdict/lzo.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/mdict/pureSalsa20.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/mdict/readmdict.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/mdict/ripemd128.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools/mdict/writemdict.py +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools.egg-info/SOURCES.txt +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools.egg-info/dependency_links.txt +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools.egg-info/entry_points.txt +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools.egg-info/requires.txt +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/fstdtools.egg-info/top_level.txt +0 -0
- {fstdtools-0.0.2 → fstdtools-0.0.3}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fstdtools
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: CLI tools to
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: CLI tools to compile/search/list/info fstd dictionary and convert mdx/mdd to fstdx/fstdd
|
|
5
5
|
Author-email: Moujie Qin <moujieqin@gmail.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
@@ -12,7 +12,7 @@ Requires-Dist: tqdm>=4.64.0
|
|
|
12
12
|
Dynamic: license-file
|
|
13
13
|
|
|
14
14
|
# fstdtools
|
|
15
|
-
A command line tool to
|
|
15
|
+
A command line tool to compile/search/list/info [fstd](https://github.com/MouJieQin/fstd) dictionary and convert mdx/mdd to fstdx/fstdd.
|
|
16
16
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# fstdtools
|
|
2
|
-
A command line tool to
|
|
2
|
+
A command line tool to compile/search/list/info [fstd](https://github.com/MouJieQin/fstd) dictionary and convert mdx/mdd to fstdx/fstdd.
|
|
3
3
|
|
|
4
4
|
## Install
|
|
5
5
|
|
fstdtools-0.0.3/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.3
|
|
@@ -265,19 +265,17 @@ def search(ctx, fstd_file, meta, header, contains, key, predictive,
|
|
|
265
265
|
if predictive:
|
|
266
266
|
print_search_result(ctx, searcher.predictive_search(predictive, dictionary))
|
|
267
267
|
if regex:
|
|
268
|
-
res = searcher.regex_search(regex, dictionary
|
|
268
|
+
res = searcher.regex_search(regex, dictionary)
|
|
269
269
|
if res[1]:
|
|
270
270
|
click.echo(click.style(f"Regex error: {res[1]}", fg="red"), err=True)
|
|
271
271
|
ctx.exit(code=1)
|
|
272
272
|
print_search_result(ctx, res[0])
|
|
273
|
-
if spellcheck:
|
|
274
|
-
print_search_result(ctx, searcher.spellcheck_word(spellcheck, dictionary))
|
|
275
273
|
if suggest:
|
|
276
274
|
print_search_result(ctx, searcher.suggest(suggest, dictionary))
|
|
277
275
|
if common_prefix:
|
|
278
276
|
print_search_result(ctx, searcher.common_prefix_search(common_prefix, dictionary))
|
|
279
277
|
if longest_prefix:
|
|
280
|
-
print(longest_prefix[0:searcher.
|
|
278
|
+
print(longest_prefix[0:searcher.longest_prefix_len(longest_prefix, dictionary)])
|
|
281
279
|
ctx.exit(code=0)
|
|
282
280
|
if edit_distance:
|
|
283
281
|
if not key:
|
|
@@ -304,7 +302,7 @@ def search(ctx, fstd_file, meta, header, contains, key, predictive,
|
|
|
304
302
|
print(value)
|
|
305
303
|
click.echo(click.style("---", fg="cyan"))
|
|
306
304
|
ctx.exit(code=0)
|
|
307
|
-
click.echo(click.style("Invalid option to search in multiple fstdx files.
|
|
305
|
+
click.echo(click.style("Invalid option to search in multiple fstdx files.", fg="red"), err=True)
|
|
308
306
|
ctx.exit(code=1)
|
|
309
307
|
if not fstd_file:
|
|
310
308
|
click.echo(click.style("Please specify a fstdx/fstdd file.", fg="red"), err=True)
|
|
@@ -329,7 +327,7 @@ def search(ctx, fstd_file, meta, header, contains, key, predictive,
|
|
|
329
327
|
for key in all_keys:
|
|
330
328
|
print(key)
|
|
331
329
|
ctx.exit(code=0)
|
|
332
|
-
click.echo(click.style("Invalid option to search in fstdd file.
|
|
330
|
+
click.echo(click.style("Invalid option to search in fstdd file.", fg="red"), err=True)
|
|
333
331
|
ctx.exit(code=1)
|
|
334
332
|
elif (src.suffix == ".fstdx"):
|
|
335
333
|
reader = fstd.FstdxReader(fstd_file)
|
|
@@ -357,7 +355,7 @@ def search(ctx, fstd_file, meta, header, contains, key, predictive,
|
|
|
357
355
|
ctx.exit(code=1)
|
|
358
356
|
print_search_result(ctx, res[0])
|
|
359
357
|
if spellcheck:
|
|
360
|
-
print_search_result(ctx, reader.spellcheck_word(spellcheck))
|
|
358
|
+
print_search_result(ctx, reader.spellcheck_word(spellcheck, dictionary))
|
|
361
359
|
if suggest:
|
|
362
360
|
print_search_result(ctx, reader.suggest(suggest))
|
|
363
361
|
if common_prefix:
|
|
@@ -380,7 +378,7 @@ def search(ctx, fstd_file, meta, header, contains, key, predictive,
|
|
|
380
378
|
if prefix_distance:
|
|
381
379
|
click.echo(click.style("Prefix distance search not implemented to search in single fstdx. Use -f to search instead.", fg="red"), err=True)
|
|
382
380
|
ctx.exit(code=1)
|
|
383
|
-
click.echo(click.style("Invalid option to search in fstdx file.
|
|
381
|
+
click.echo(click.style("Invalid option to search in fstdx file.", fg="red"), err=True)
|
|
384
382
|
ctx.exit(code=1)
|
|
385
383
|
else:
|
|
386
384
|
click.echo(click.style(f"Invalid file type {src.suffix}", fg="red"), err=True)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fstdtools
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: CLI tools to
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: CLI tools to compile/search/list/info fstd dictionary and convert mdx/mdd to fstdx/fstdd
|
|
5
5
|
Author-email: Moujie Qin <moujieqin@gmail.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
@@ -12,7 +12,7 @@ Requires-Dist: tqdm>=4.64.0
|
|
|
12
12
|
Dynamic: license-file
|
|
13
13
|
|
|
14
14
|
# fstdtools
|
|
15
|
-
A command line tool to
|
|
15
|
+
A command line tool to compile/search/list/info [fstd](https://github.com/MouJieQin/fstd) dictionary and convert mdx/mdd to fstdx/fstdd.
|
|
16
16
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
name = "fstdtools"
|
|
7
7
|
dynamic = ["version"]
|
|
8
8
|
authors = [{ name = "Moujie Qin", email = "moujieqin@gmail.com" }]
|
|
9
|
-
description = "CLI tools to
|
|
9
|
+
description = "CLI tools to compile/search/list/info fstd dictionary and convert mdx/mdd to fstdx/fstdd"
|
|
10
10
|
requires-python = ">=3.9"
|
|
11
11
|
license-files = ["LICENSE"]
|
|
12
12
|
dependencies = [
|
fstdtools-0.0.2/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.0.2
|
|
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
|