Anki Card Cleaner
A simple Python utility to clean Anki card text, removing cloze deletions, normalizing whitespace, and handling common Anki formatting quirks.
Installation
pip install anki-card-cleaner
Usage
from anki_card_cleaner import clean_card_text
text = "The capital of France is {{c1::Paris::City}}."
cleaned = clean_card_text(text)
print(cleaned)
# Output: "the capital of france is paris (city)."
Features
- Removes {{c1::...}} cloze deletions.
- Handles custom Answer::Hint format in clozes.
- Normalizes unicode non-breaking spaces.
- Fixes spacing after question marks.
- Lowercases everything.
Metadata
Release files for anki-card-cleaner 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| anki_card_cleaner-0.0.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| anki_card_cleaner-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / anki_card_cleaner-0.0.1.tar.gz
| Download URL | anki_card_cleaner-0.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64df2446e01a94270520c32071593e1eaf97f46df3d41f8e805034afcc94455b
|
|
BLAKE2b-256 checksum How to use checksums |
72a447bad99a78ee874598847398929af622796a58ede307fd4c0ac8cae9a07b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.10
|
Release files / anki_card_cleaner-0.0.1-py3-none-any.whl
| Download URL | anki_card_cleaner-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2eb5f9f16888c26a4c1ddc6d0bef1b2e5ee864e21ef22bf26567ac763e05db3c
|
|
BLAKE2b-256 checksum How to use checksums |
5a832a1482c2eb66ee5db817e4913dc09ef7cfb7ce4372850161fa26c87bf667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.10
|