hanky 0.3.0.dev4__tar.gz → 0.3.0.dev5__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.
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/PKG-INFO +9 -2
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/README.md +8 -1
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/pyproject.toml +1 -1
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/uv.lock +1 -1
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/.gitignore +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/LICENSE +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/__init__.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/__main__.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/anki_utils.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/cli.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/config.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/errors.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/fs.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/hanky.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/media.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/processors.py +0 -0
- {hanky-0.3.0.dev4 → hanky-0.3.0.dev5}/src/hanky/report.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hanky
|
|
3
|
-
Version: 0.3.0.
|
|
3
|
+
Version: 0.3.0.dev5
|
|
4
4
|
Summary: Simple library and command line tool for loading flash cards into anki.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Haeata-Ash/hanky
|
|
6
6
|
Project-URL: Issues, https://github.com/Haeata-Ash/hanky/issues
|
|
@@ -361,6 +361,13 @@ from simplest to most involved. Each demo lives in its own folder with a
|
|
|
361
361
|
English→French pipeline that scrapes a translation from WordReference, asks
|
|
362
362
|
Claude for an example sentence at a given CEFR level, then adds French audio
|
|
363
363
|
for both the word and the sentence with AWS Polly.
|
|
364
|
+
- [`demo_highlight_words.py`](https://github.com/Haeata-Ash/hanky/blob/main/demo/highlight_words/demo_highlight_words.py) — A
|
|
365
|
+
computer-vision loader: photograph a printed French page you've marked with
|
|
366
|
+
a highlighter pen and every highlighted word or phrase becomes a card with
|
|
367
|
+
the sentence it appeared in as context, its dictionary form via spaCy
|
|
368
|
+
(`fr_core_news_sm`), and an English translation from the Google Cloud
|
|
369
|
+
Translation API. Highlighter ink is found with OpenCV colour segmentation
|
|
370
|
+
and read on-device with a small Latin-script OCR model.
|
|
364
371
|
|
|
365
372
|
## CLI Reference
|
|
366
373
|
|
|
@@ -425,7 +432,7 @@ you'd like to change. Please make sure tests pass (`uv run pytest`) before submi
|
|
|
425
432
|
## Development
|
|
426
433
|
|
|
427
434
|
```sh
|
|
428
|
-
uv sync # install dependencies (incl. dev
|
|
435
|
+
uv sync # install dependencies (incl. dev group)
|
|
429
436
|
uv run pytest # run tests (CI runs Python 3.11, 3.12, 3.13)
|
|
430
437
|
uv run ruff format . # format
|
|
431
438
|
uv run ruff check . # lint
|
|
@@ -343,6 +343,13 @@ from simplest to most involved. Each demo lives in its own folder with a
|
|
|
343
343
|
English→French pipeline that scrapes a translation from WordReference, asks
|
|
344
344
|
Claude for an example sentence at a given CEFR level, then adds French audio
|
|
345
345
|
for both the word and the sentence with AWS Polly.
|
|
346
|
+
- [`demo_highlight_words.py`](https://github.com/Haeata-Ash/hanky/blob/main/demo/highlight_words/demo_highlight_words.py) — A
|
|
347
|
+
computer-vision loader: photograph a printed French page you've marked with
|
|
348
|
+
a highlighter pen and every highlighted word or phrase becomes a card with
|
|
349
|
+
the sentence it appeared in as context, its dictionary form via spaCy
|
|
350
|
+
(`fr_core_news_sm`), and an English translation from the Google Cloud
|
|
351
|
+
Translation API. Highlighter ink is found with OpenCV colour segmentation
|
|
352
|
+
and read on-device with a small Latin-script OCR model.
|
|
346
353
|
|
|
347
354
|
## CLI Reference
|
|
348
355
|
|
|
@@ -407,7 +414,7 @@ you'd like to change. Please make sure tests pass (`uv run pytest`) before submi
|
|
|
407
414
|
## Development
|
|
408
415
|
|
|
409
416
|
```sh
|
|
410
|
-
uv sync # install dependencies (incl. dev
|
|
417
|
+
uv sync # install dependencies (incl. dev group)
|
|
411
418
|
uv run pytest # run tests (CI runs Python 3.11, 3.12, 3.13)
|
|
412
419
|
uv run ruff format . # format
|
|
413
420
|
uv run ruff check . # lint
|
|
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
|