Manage Anki cards with the LLM tool
Project description
llm-tools-anki
Manage Anki cards with the LLM tool.
Installation
Install this plugin in the same environment as LLM.
llm install llm-tools-anki
Usage
llm -T Anki "my friend miguel loves learning about languages. find a cool card that I can share with him that I've been studying." --td
llm -T Anki "Add 5 new cards to the default deck. The five cards should ask about the colors in spanish for a language learning student" --td --chain-limit 25
llm -T Anki "Take the cards in the Evolve deck and adjust them. Make the cards similar, basically testing the same ideas, but make them different to keep the learning interesting and engaging for the learner. Remove any cards that you evolve" --td --chain-limit 50
llm -T Anki "My friend catdog thinks I don't know big words. Add 5 to 10 cards of big words that I should know so I'm not embarrassed. Add these to the default deck." --td --chain-limit 50
The follow prompt also requires llm-tools-exa to be installed.
llm -T Anki -T web_search "I'm interviewing with Miguel Conner for a data science position in a few hours. Research him and create a few anki cards in my default deck for me to study." --td --chain-limit 50
An unsplash access key needs to be set for the following prompt with llm keys set unsplash. Access keys can be generate on the unsplash website.
llm -T Anki "For each anki card in the evolve deck without an image (ignore cards with images), use Anki_get_image_url to add an image. Make it visible in the front or back of the card, whichever makes more sense for that card. Make sure that the card is formatted as HTML (not markdown) or the image won't render correctly. The goal of the image is to increase visual appeal and improve memory retention." --td --chain-limit 50
Development
To set up this plugin locally, first checkout the code. Then use uv
uv sync --all-extras
uv run python -m pip install -e '.[test]'
Additional Resources
- Simon's blog post llm tools
- llm-tools-sqlite (for reference code)
- llm tools cookiecutter template
- discord message on --chain-limit
- Homepage for AnkiConnect
- anki-connect-mcp
Additional Notes
- Thanks to Anki and AnkiConnect for their amazing work
- The file
ankiconnect.mdis an exerpt from anki-connect readme
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_tools_anki-0.1.1.tar.gz.
File metadata
- Download URL: llm_tools_anki-0.1.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79a2abeab2870621771a7005beaaf90777641f13fd6fa8b5dcb6643af934fb94
|
|
| MD5 |
25b620e21328e6b790620b37e8d230bd
|
|
| BLAKE2b-256 |
93ffbf2eca738dea9728f60b5f7248d6250bedb560f40b2323524294d54b00e8
|
Provenance
The following attestation bundles were made for llm_tools_anki-0.1.1.tar.gz:
Publisher:
publish.yml on aled1027/llm-tools-anki
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_tools_anki-0.1.1.tar.gz -
Subject digest:
79a2abeab2870621771a7005beaaf90777641f13fd6fa8b5dcb6643af934fb94 - Sigstore transparency entry: 313560726
- Sigstore integration time:
-
Permalink:
aled1027/llm-tools-anki@186b0bc32e6f2709d5b66878d820f3609449146b -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/aled1027
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@186b0bc32e6f2709d5b66878d820f3609449146b -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_tools_anki-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_tools_anki-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b004b2c0689112a7b4e118a799b9d54ba21a87d0a9aefdda3e5667ddc58269b7
|
|
| MD5 |
f1c1559243ecc13101161192796344f4
|
|
| BLAKE2b-256 |
756beb4253c7219cc48c8405551ba220f0cdcd54385e44608549250578377cef
|
Provenance
The following attestation bundles were made for llm_tools_anki-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on aled1027/llm-tools-anki
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_tools_anki-0.1.1-py3-none-any.whl -
Subject digest:
b004b2c0689112a7b4e118a799b9d54ba21a87d0a9aefdda3e5667ddc58269b7 - Sigstore transparency entry: 313560747
- Sigstore integration time:
-
Permalink:
aled1027/llm-tools-anki@186b0bc32e6f2709d5b66878d820f3609449146b -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/aled1027
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@186b0bc32e6f2709d5b66878d820f3609449146b -
Trigger Event:
release
-
Statement type: