Skip to main content

cult

Religious texts search engine.

Sources the religious texts on-demand, from various on-line sources, but caches these locally.

Texts can than be searched (on the verse level), using a tf-idf engine.

No database is needed. Texts are downloaded, stored in their raw format and uploaded and indexed in RAM, on demand.

Examples

from cult import SearchTexts, SearchText

search_texts = SearchTexts()
list(search_texts)
['bible', 'quaran', 'king_james_bible']
bib = search_texts["bible"]
print(f"{len(bib)} verses\n")
31104 verses
bib["John 1:1"]
'From the first he was the Word, and the Word was in relation with God and was God.'
bib.search("search for words")
array(['Ecclesiastes 12:10', 'Psalms 27:8', 'Psalms 44:21', 'Luke 2:45',
       'Psalms 119:155', 'Zephaniah 2:3', 'Luke 19:10', '1 Samuel 17:56',
       'Job 8:5', 'Psalms 105:4'], dtype='<U20')
bib.print_verses("search for words")
1: Ecclesiastes 12:10
The Preacher made search for words which were pleasing, but his writing was in words upright and true.

2: Psalms 27:8
When you said, Make search for my face, my heart said to you, For your face will I make my search.

3: Psalms 44:21
Will not God make search for it? for he sees the secrets of the heart.

4: Luke 2:45
And seeing that he was not there, they went back to Jerusalem, to make search for him.

5: Psalms 119:155
Salvation is far from evil-doers; for they have made no search for your rules.

6: Zephaniah 2:3
Make search for the Lord, all you quiet ones of the earth, who have done what is right in his eyes; make search for righteousness and a quiet heart: it may be that you will be safely covered in the day of the Lord's wrath.

7: Luke 19:10
For the Son of man came to make search for those who are wandering from the way, and to be their Saviour.

8: 1 Samuel 17:56
And the king said, Make search and see whose son this young man is.

9: Job 8:5
If you will make search for God with care, and put your request before the Ruler of all;

10: Psalms 105:4
Let your search be for the Lord and for his strength; let your hearts ever be turned to him.
qua = search_texts["quaran"]
len(qua)
6236
qua.print_verses("search for words")
1: 24:26
Evil words are for evil men, and evil men are [subjected] to evil words. And good words are for good men, and good men are [an object] of good words. Those [good people] are declared innocent of what the slanderers say. For them is forgiveness and noble provision.

2: 33:70
O you who have believed, fear Allah and speak words of appropriate justice.

3: 18:109
Say, "If the sea were ink for [writing] the words of my Lord, the sea would be exhausted before the words of my Lord were exhausted, even if We brought the like of it as a supplement."

4: 10:82
And Allah will establish the truth by His words, even if the criminals dislike it."

5: 12:76
So he began [the search] with their bags before the bag of his brother; then he extracted it from the bag of his brother. Thus did We plan for Joseph. He could not have taken his brother within the religion of the king except that Allah willed. We raise in degrees whom We will, but over every possessor of knowledge is one [more] knowing.

6: 10:64
For them are good tidings in the worldly life and in the Hereafter. No change is there in the words of Allah. That is what is the great attainment.

7: 47:21
Obedience and good words. And when the matter [of fighting] was determined, if they had been true to Allah, it would have been better for them.

8: 73:6
Indeed, the hours of the night are more effective for concurrence [of heart and tongue] and more suitable for words.

9: 25:75
Those will be awarded the Chamber for what they patiently endured, and they will be received therein with greetings and [words of] peace.

10: 7:162
But those who wronged among them changed [the words] to a statement other than that which had been said to them. So We sent upon them a punishment from the sky for the wrong that they were doing.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cult-0.0.4.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cult-0.0.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file cult-0.0.4.tar.gz.

File metadata

  • Download URL: cult-0.0.4.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}

File hashes

Hashes for cult-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d372df92e97af677d3b6f4ac08896f5e11be7d53b4ce0d6172767e2344182eb0
MD5 e62fac7e32b219520295139392ee75d6
BLAKE2b-256 8e3620eabe8abcaebb104c9b7dfc9ceefc6a5e72e6ba6a382c1dcf9d6b156050

See more details on using hashes here.

File details

Details for the file cult-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cult-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}

File hashes

Hashes for cult-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9880a9361c15183c7a959f1f037edebb757c77f0bfcdd2752b35935b645657a9
MD5 6559008f377f2f54c23d3e70ae8e2a3b
BLAKE2b-256 a4642c9d267d625714cd162f91e345ec4e14c90665addd727cc4ebe0f897b9f1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 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