Skip to main content

1001 Nights (provider)

A provider skill for ovos-common-reading-pipeline-plugin, delivering tales from the Thousand and One Nights – Ali Baba, Aladdin, Sindbad the Sailor and the rest of Scheherazade's stories.

It is made for Emkay, OpenVoiceOS in the browser, and works on any OpenVoiceOS. It sits next to Andersen and Grimm, with the same storybook icon.

Build PyPI version

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.

Install

pip install ovos-skill-1001-nights ovos-common-reading-pipeline-plugin

Where the stories come from

This provider publishes nothing itself: every tale is read from Wikisource, the free library of public-domain texts, and says so. The source of each search answer is "Wikisource", and the pipeline says it after the last sentence ("And that's the end. It came from Wikisource.").

Wikisource allows other web pages to read it, so this provider works the same on a device and in a browser (Emkay).

Language Wikisource edition Tales
English Fairy tales from the Arabian nights and Stories from the Arabian nights (Laurence Housman, illustrated by Edmund Dulac) about 30
French Antoine Galland's Les Mille et Une Nuits (1704–1717), the first European translation about 90
Italian Le Mille ed una Notti about 150

Only editions fit to read aloud to anyone are used – Galland and the books made from it for young readers – not the unexpurgated translations (Burton, Mardrus). The texts on Wikisource are in the public domain; see each page for its edition and translator.

Danish, German, Spanish, Dutch and Portuguese have no edition of the Nights on Wikisource yet that can be used here. Det Kgl. Bibliotek has digitised old public-domain Danish editions (e.g. Tusinde og Een Nat, 1852–54) – once one of them is proofread onto Danish Wikisource, adding it here is one line in WIKISOURCE_COLLECTIONS and a locale/da-dk folder.

Languages

This provider does not translate. It loads only for the languages the installation is configured for - the device's own lang plus secondary_langs in mycroft.conf - that it has tales in (above). If none of them is one of those, it never loads at all: initialize() builds no index, registers no bus events, and logs a clear message rather than silently serving English (or any other) content.

For each configured, supported language it builds its own index (kept for a week), and each search is answered from the index of the language it was made in: the pipeline plugin's lang field, else the language of the session the search came from, else the device's own. A HiveMind hub serving users in several languages lists them in secondary_langs:

{
  "lang": "en-US",
  "secondary_langs": ["fr-FR", "it-IT"]
}

A search in a language the installation doesn't serve gets no answer at all. A search with no title ("tell me a story") gets a random tale at 0.9, and titles match regardless of case.

The collection name and collection_hint aliases are per language: locale/<lang>/collection.voc (e.g. "arabian nights", "one thousand and one nights", "scheherazade"; "mille et une nuits"; "mille e una notte") and locale/<lang>/collection_meta.json. The Nights have no author, so none is announced.

Content type

Identifies as content_type: "story" (or "tale"). A search with a content_type hint for anything else (e.g. "article", "poem") gets no response from this provider.

How it fits together

  • wikisource.py – finds a collection's tales and reads a tale's text through MediaWiki's action API (origin=*, so a web page may read the answer). Plain requests and BeautifulSoup, no OVOS. The same module is used by the Andersen and Grimm providers.
  • __init__.py – the provider: the ovos.common_reading.* bus protocol, the per-language indexes and their cache.
pip install -e ".[test]"
pytest tests

The tests need no network: Wikisource is stood in for.

Credits

Tales from Wikisource and its volunteers, who transcribe and proofread the public-domain editions.

Category

Entertainment

Tags

#stories #fairytales #arabiannights #1001nights #wikisource #provider

Metadata

Release files for ovos-skill-1001-nights 0.1.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 ovos-skill-1001-nights 0.1.1
File Size Uploaded Provenance Actions
ovos_skill_1001_nights-0.1.1.tar.gz 65.8 kB With provenance Details for ovos_skill_1001_nights-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-skill-1001-nights 0.1.1
File Interpreter ABI Platform Actions
ovos_skill_1001_nights-0.1.1-py3-none-any.whl Python 3 none any Details for ovos_skill_1001_nights-0.1.1-py3-none-any.whl

Total release size: 124.1 kB

Release files / ovos_skill_1001_nights-0.1.1.tar.gz

Download URL ovos_skill_1001_nights-0.1.1.tar.gz
Size 65.8 kB
Tags Source
SHA-256 checksum
How to use checksums
124abd12efa7eefe4d3ca0bc5235740cfcf416f6ecd122bdadfb835e60fce618
BLAKE2b-256 checksum
How to use checksums
359bed3b132d5909cbc78beef95884d79bdc290cf89319e1606011d4e4ced5f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Release files / ovos_skill_1001_nights-0.1.1-py3-none-any.whl

Download URL ovos_skill_1001_nights-0.1.1-py3-none-any.whl
Size 58.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb76ed092d34ea6e1409853d094fd9a6f8f42aafe28671248c8cb4e9adef358e
BLAKE2b-256 checksum
How to use checksums
264b4166e3ce33a475aa857a45dd3237b35929fd4018a162fe235109f04a8c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Security for ovos-skill-1001-nights 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ovos_skill_1001_nights-0.1.1.tar.gz

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 Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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