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.
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). Plainrequestsand 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_skill_1001_nights-0.1.0.tar.gz | 65.7 kB | With provenance | Details for ovos_skill_1001_nights-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_skill_1001_nights-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ovos_skill_1001_nights-0.1.0-py3-none-any.whl |
Total release size: 124.0 kB
Release files / ovos_skill_1001_nights-0.1.0.tar.gz
| Download URL | ovos_skill_1001_nights-0.1.0.tar.gz |
|---|---|
| Size | 65.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d2cca7543b23bb1d9ace061ef1a4d6715ad641942f14ff5b0c23c2bf59f184e
|
|
BLAKE2b-256 checksum How to use checksums |
70b32352655f417eff18500e17f0c3ece206cac3118f8b43a113e772c35a7bf8
|
| 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 21, 2026.
Transparency logRelease files / ovos_skill_1001_nights-0.1.0-py3-none-any.whl
| Download URL | ovos_skill_1001_nights-0.1.0-py3-none-any.whl |
|---|---|
| Size | 58.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
780acb5c3bf9f0a2723aa19c888762630329c8686189e9e56dca7d33f001efab
|
|
BLAKE2b-256 checksum How to use checksums |
fdd22cadef11a9d7e8217e539a3aff060cf6eba7069ba7ffb41df374501b084c
|
| 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 21, 2026.
Transparency logSecurity for ovos-skill-1001-nights 0.1.0
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.
Attestation for ovos_skill_1001_nights-0.1.0.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 21, 2026.
Transparency logA 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.