Skip to main content

code style blue codecov Quality Gate Status

GermAnki

Make Anki German vocabulary card creation less time-consuming with GermAnki.

This is only possible thanks to AnkiConnect, TTSMP3, and Pexels. Thanks!

Features

  1. Automatically include pronunciation audio to your card.
  2. Automatically include a relevant image to your card.

ChatGPT Input Mode

If you have an OpenAI API key, Germanki will prompt ChatGPT and create all your card contents for you. Just enter the word or expressions you want to generate a card for.

Customizations

Change Speaker's Voice

Choose among available voices to pronounce the German text the front of your card.

Refresh Image

Is the first image pick not good enough? Click the Refresh Images button and get a new random one.

Requirements

  1. Install the AnkiConnect add-on.
  2. Add support these three fields in your Basic Anki card type: Front, Back, and Extra.

Optional:

  1. Create an account on Pexels and create your API key. It's free. Then set the environment variable PEXELS_API_KEY to your key.

    Required to have images in your cards

  2. Create an account on ChatGPT to generate inputs for you.

  3. Generate an OpenAI API Key and add it to Germanki so that it can generate the card contents for you.

    Required to have ChatGPT Input Mode

Run

  1. Clone this repository
  2. Install uv

Then, inside the repository:

uv run germanki

Then go to http://localhost:8000/.

Alternatively, use Docker

Set your environment variables.

# set your Pexels API key if you have one
export PEXELS_API_KEY=<your-api-key>
# set your OpenAI API key if you have one
export OPENAI_API_KEY=<your-api-key>

On Linux:

docker run -p 8000:8000 -e OPENAI_API_KEY -e PEXELS_API_KEY --network host gabrielrphub/germanki:latest

On Mac:

docker run -p 8000:8000 -e OPENAI_API_KEY -e PEXELS_API_KEY --add-host=localhost:host-gateway gabrielrphub/germanki:latest

Then go to http://localhost:8000/.

Anki Cards

By default, this is how the GermAnki is programmed to work.

Front:

  • The German word.
  • A pronunciation audio.

Back:

  • The English translations.
  • A relevant picture to help with memorization.

Extra:

  • Description, example, and other information relevant for the word type e.g. perfect form of verbs, article and plural form of nouns.

Example:

Metadata

Release files for germanki 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for germanki 1.0.1
File Size Uploaded
germanki-1.0.1.tar.gz 58.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for germanki 1.0.1
File Interpreter ABI Platform
germanki-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 126.6 kB

Release files / germanki-1.0.1.tar.gz

Download URL germanki-1.0.1.tar.gz
Size 58.0 kB
Tags Source
SHA-256 checksum
How to use checksums
33de01f5d9c8fd0abf700a81531e3d4912a1a67cdc21bc3c59627a48d89b6641
BLAKE2b-256 checksum
How to use checksums
9271eeeb00a0add33e7e456a5dba3e878c30f443269cd6d9032fcc940ca9faaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / germanki-1.0.1-py3-none-any.whl

Download URL germanki-1.0.1-py3-none-any.whl
Size 68.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c4400761ebb85c54eeef1e66b31c190a60e301e36cafa89ec4967e15ee572d3
BLAKE2b-256 checksum
How to use checksums
a26c04ddb9712d47ee2c752f99a69dbde51f8f2449ebef2e4e1e71f3b9e9353a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page