Skip to main content

Manage Anki cards with the LLM tool

Project description

llm-tools-anki

License

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

Additional Notes

  • Thanks to Anki and AnkiConnect for their amazing work
  • The file ankiconnect.md is an exerpt from anki-connect readme

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_tools_anki-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_tools_anki-0.1.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for llm_tools_anki-0.1.1.tar.gz
Algorithm Hash digest
SHA256 79a2abeab2870621771a7005beaaf90777641f13fd6fa8b5dcb6643af934fb94
MD5 25b620e21328e6b790620b37e8d230bd
BLAKE2b-256 93ffbf2eca738dea9728f60b5f7248d6250bedb560f40b2323524294d54b00e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_tools_anki-0.1.1.tar.gz:

Publisher: publish.yml on aled1027/llm-tools-anki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for llm_tools_anki-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b004b2c0689112a7b4e118a799b9d54ba21a87d0a9aefdda3e5667ddc58269b7
MD5 f1c1559243ecc13101161192796344f4
BLAKE2b-256 756beb4253c7219cc48c8405551ba220f0cdcd54385e44608549250578377cef

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page