Bechstein Tales (provider)
A provider skill for ovos-common-reading-pipeline-plugin, delivering Ludwig Bechstein's German fairy tales.
Bechstein was a contemporary of the Brothers Grimm and published his own hugely popular collection - a genuinely different source, not just "more Grimm" (though a few titles overlap, since both drew from the same regional oral tradition).
This skill has no standalone voice interface. It registers no intents and never speaks. It only answers ovos.common_reading.* bus messages, so you also need ovos-common-reading-pipeline-plugin installed and added to your pipeline config for it to be useful at all.
German only, no translation. Same situation as
ovos-skill-andrew-lang-tales, just for German instead of English - full fairy tale prose is a bigger translation cost/quality risk than a blog post or abstract. It answers searches made in German (de-*) and stays silent for every other language, and only loads where German is configured - the device language orsecondary_langs(see "Languages" below).
Install
pip install ovos-skill-bechstein-tales ovos-common-reading-pipeline-plugin
Story index
The story index (title, anchor per story) is bundled with this
package (locale/de-de/index.json), not scraped live - browsing/
matching needs no internet at all. Only fetching a specific story's
actual text (once chosen) needs a live request to Project Gutenberg.
80 stories from Ludwig Bechstein's Märchenbuch (Project Gutenberg
ebook #63465). The index was built once via scripts/build_index.py,
which parses the book's own "Inhalt" (table of contents) table rather
than assuming every <div class="chapter"> is a real story - one entry
("Alphabetisches Verzeichnis der Märchen", the book's own index) was
correctly excluded this way since it has no story paragraphs.
Two real bugs were found and fixed while building this:
- Encoding: the Gutenberg page doesn't declare a charset in its HTTP
headers, so
requestsdefaulted to ISO-8859-1 and mangled German text (Aschenbrödel→Aschenbrödel). Fixed by decoding the page as UTF-8 explicitly. - Drop caps:
get_text(' ', strip=True)inserts a spurious space at drop-cap span boundaries (<span>E</span>s war einmal→E s war einmal, splitting the first word). Fixed by extracting text with no separator and instead collapsing the source HTML's line-wrapped whitespace with a regex - the same class of bug asovos-skill-ovosblog's inline-<code>finding, different cause.
Fetching and what gets read
Reading a story fetches the book from Project Gutenberg once, extracts
the text of all 80 stories, and keeps it on disk under the skill's cache
directory (<XDG cache>/mycroft/skills/<skill_id>/, one small JSON file
per story). Any other story, or the same story after a restart, needs no
request. After 30 days a story is checked again with
If-Modified-Since, which downloads nothing when the book has not
changed; a change to the extractor (CACHE_FORMAT) fetches the book
again. When a fetch fails, it is not tried again for five minutes, and
an older copy is read meanwhile if there is one. When the cache
directory cannot be written, the stories are kept in memory instead.
Requests say who is asking:
ovos-skill-bechstein-tales/<version> (+https://github.com/andlo/ovos-skill-bechstein-tales).
What is read is the tale, with its verse line by line (the bird's rhyme
in Aschenbrödel is a <div class="verse"> and used to be skipped),
without the page numbers printed in the middle of sentences or the two
footnotes and their numbers.
Languages
The provider loads only where German is one of the languages the
installation is configured for: the device's own lang, or one of
secondary_langs in mycroft.conf. A single device in another
language never loads it. A HiveMind hub whose users speak German lists
it there, even when the hub's own language is something else:
{
"lang": "en-US",
"secondary_langs": ["de-DE"]
}
Once loaded, it decides per search whether to answer:
a search made in German gets an answer, any other language gets none.
The language of a search is the pipeline plugin's lang field, else the
language of the session the search came from, else (an older plugin
sends neither) the device's own language. That matters on a HiveMind
hub, where one ovos-core serves many users at once, each session in its
own language: a German session must get these stories on a hub whose own
language is English, and a French session must not get German ones. A
ping that names a language (the same way) only gets a pong when that
is German. Fetching a story is never gated on language - it is addressed
to this provider directly.
Title matching
Titles match regardless of case, umlauts, punctuation, a leading article and a leading "Märchen vom" / "Vom" / "Von", so "rotkäppchen" finds Das Rotkäppchen and "schlaraffenland" Das Märchen vom Schlaraffenland at full confidence. The part before a title's first comma, or either half of an "X, oder Y" title, counts too, slightly below the whole title: "tischlein deck dich" finds Tischlein deck dich, Esel streck dich, Knüppel aus dem Sack. A search that names no title at all ("erzähl mir ein Märchen") gets one random story at confidence 0.9, or 1.0 when it named this collection.
Collection hints
Responds to collection_hint values like "bechstein", "ludwig
bechstein", matched fuzzily (see COLLECTION_ALIASES in __init__.py).
Content type
Identifies as content_type: "story" or "tale". A search with a
content_type hint for anything else gets no response from this
provider.
Credits
Content sourced from Project Gutenberg. Scraping/extraction/caching logic ported from ovos-skill-andrew-lang-tales.
Category
Entertainment
Tags
#stories #fairytales #bechstein #german #provider
Metadata
Release files for ovos-skill-bechstein-tales 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_skill_bechstein_tales-0.1.5.tar.gz | 40.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_skill_bechstein_tales-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.4 kB
Release files / ovos_skill_bechstein_tales-0.1.5.tar.gz
| Download URL | ovos_skill_bechstein_tales-0.1.5.tar.gz |
|---|---|
| Size | 40.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd7a49bf303936d6b889a2d57756859eb8317f1c1efe3effc0e6181388d29c73
|
|
BLAKE2b-256 checksum How to use checksums |
5273ffde7d6c0a76a409516bdf5cc4cb1854fd66ff74d388149c279f011b5557
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / ovos_skill_bechstein_tales-0.1.5-py3-none-any.whl
| Download URL | ovos_skill_bechstein_tales-0.1.5-py3-none-any.whl |
|---|---|
| Size | 30.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb0cce5c28808c5c6ec24a2c4252a8da0a19e3fecdb28ab0c00dfb1a0649fa1e
|
|
BLAKE2b-256 checksum How to use checksums |
271b704010400e4dc5843c8527afc2971217a61e715af0adca7b03311d173ce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency log