isnady 0.7.4 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +65 -19
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -8,12 +8,12 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://pypi.org/project/isnady/">
11
- <img src="https://img.shields.io/badge/PyPI-v0.7.4-1D4777?style=for-the-badge&logo=pypi&logoColor=white" alt="PyPI">
11
+ <img src="https://img.shields.io/badge/PyPI-v0.7.6-1D4777?style=for-the-badge&logo=pypi&logoColor=white" alt="PyPI">
12
12
  </a>
13
13
  <img src="https://img.shields.io/pypi/pyversions/isnady?style=for-the-badge&color=A47E24&logo=python&logoColor=white" alt="Python">
14
14
  <img src="https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-5B6878?style=for-the-badge" alt="Platform">
15
15
  <a href="https://www.npmjs.com/package/isnady">
16
- <img src="https://img.shields.io/badge/npm-v0.7.4-14304F?style=for-the-badge&logo=npm" alt="npm">
16
+ <img src="https://img.shields.io/badge/npm-v0.7.6-14304F?style=for-the-badge&logo=npm" alt="npm">
17
17
  </a>
18
18
  <a href="https://github.com/bayramkotan/isnady-data">
19
19
  <img src="https://img.shields.io/badge/data-isnady--data-2E6B4F?style=for-the-badge&logo=github" alt="isnady-data">
@@ -48,7 +48,7 @@
48
48
  <img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/search-arabic.png" alt="Searching النيات finds بالنيات in Sahih al-Bukhari 1, with the chain above the text" width="850">
49
49
  </p>
50
50
 
51
- > **Pre-alpha (0.7.4).** Search, chains of transmission, narrators, books, scholars, statistics and
51
+ > **Pre-alpha (0.7.6).** Search, chains of transmission, narrators, books, scholars, statistics and
52
52
  > the glossary work today, Sunni and Shia, on data you import in one click. Everything is built in
53
53
  > the open, one piece at a time.
54
54
 
@@ -74,7 +74,7 @@ isnady is two repositories that work as one:
74
74
  | | [**bayramkotan/isnady**](https://github.com/bayramkotan/isnady) — the application | [**bayramkotan/isnady-data**](https://github.com/bayramkotan/isnady-data) — the data |
75
75
  |---|---|---|
76
76
  | **What it is** | The program: a desktop window and a command line on one engine | Every book isnady reads — the Qur'an, the hadith, the sira, the lives of the scholars, the rijal — in one format |
77
- | **What is in it** | Search, the chain reader (Sunni and Shia), narrator identification, books, scholars, statistics, the glossary, meaning search | **The Qur'an** with 60 translations in 18 languages · **17 Sunni and 16 Shia hadith collections — 99,746 hadith** — in Arabic and up to eight translations, with their grades · **Ibn Hisham's *Sira*** · **al-Dhahabi's *Siyar* and *Tadhkira*** · **Ibn Hajar's *Taqrib*** (8,824 narrators) and **al-Najashi's *Rijal*** (1,266) |
77
+ | **What is in it** | Search, the chain reader (Sunni and Shia), narrator identification, books, scholars, statistics, the glossary, meaning search | **The Qur'an** with 60 translations in 18 languages · **17 Sunni and 16 Shia hadith collections — 99,746 hadith** — in Arabic and up to eight translations, with their grades · **Ibn Hisham's *Sira*** · **al-Dhahabi's *Siyar* and *Tadhkira*** · **Ibn Hajar's *Taqrib*** (8,824 narrators), **al-Najashi's *Rijal*** (1,269) and **al-Tusi's *Fihrist* and *Rijal*** (910 and 6,429) |
78
78
  | **How you get it** | [PyPI](https://pypi.org/project/isnady/) (`pip install isnady`), the desktop applications of the [Releases](https://github.com/bayramkotan/isnady/releases/latest), or the one-line installers | Nothing to download by hand: isnady lists its books in **Data sources** and imports them in one click — or clone it and read it offline, or take a whole [ready database](https://github.com/bayramkotan/isnady-data/releases) |
79
79
  | **Licence** | MIT | each book its own, recorded with it (Help → Licences) |
80
80
 
@@ -85,12 +85,22 @@ isnady is two repositories that work as one:
85
85
  quran/ (your data folder) books · scholars · statistics
86
86
  hadith/sunni/ hadith/shia/ window and command line
87
87
  sahifa/sunni|shia/ sira/sunni/ tabaqat/sunni/ rijal/sunni|shia/
88
- Releases: isnady-db-<date>.zip ── Use a ready database… ──▶ isnady.db
88
+ Releases: isnady-db-<date>.zip ── Download the ready database ──▶ isnady.db
89
89
  ```
90
90
 
91
91
  The application ships without hadith data, so it stays small and the data can grow on its own:
92
92
  a new book in isnady-data reaches every isnady at once, without a new version of the program.
93
93
 
94
+ **And isnady in Rust: [bayramkotan/isnady-rs](https://github.com/bayramkotan/isnady-rs).** The same program,
95
+ written again in Rust: `iy-rs` on the command line and the window `isnady-rs`. It uses the same data folder, the same
96
+ database and the same settings, and it carries **the same version number** — every release of isnady is a release of
97
+ isnady-rs, on the same day. Every command and every page is ported and gives the same answers, word for word;
98
+ parity tests compare the two programs on every push (its
99
+ [PARITY.md](https://github.com/bayramkotan/isnady-rs/blob/main/PARITY.md)). Get it from
100
+ [crates.io](https://crates.io/crates/isnady) (`cargo install isnady` for `iy-rs`, `cargo install isnady-gui` for the
101
+ window) or ready to run from its [Releases](https://github.com/bayramkotan/isnady-rs/releases/latest) (see
102
+ [Install](#-install)). Its README is this one, word for word.
103
+
94
104
  ---
95
105
 
96
106
  ## 🎯 Why isnady
@@ -138,6 +148,21 @@ Put isnady on the desktop and in the applications menu with **Tools → Create D
138
148
  `iy shortcut`): the shortcut starts isnady the way it is installed — the AppImage, the application, or the
139
149
  `isnady-gui` command of a Python install.
140
150
 
151
+ ### isnady-rs (the same isnady in Rust)
152
+
153
+ From the **[isnady-rs releases](https://github.com/bayramkotan/isnady-rs/releases/latest)** — the window `isnady-rs`
154
+ and the command line `iy-rs`, with the same data folder as the Python isnady:
155
+
156
+ | System | The window | The command line |
157
+ |---|---|---|
158
+ | Windows 10/11 | `isnady-rs-<version>-windows-x86_64-setup.exe` (installs for you, no administrator rights), `…-windows-x86_64.msi` (for all users), or `…-windows-x86_64-portable.exe` (nothing installed) | `iy-rs-<version>-windows-x86_64.zip` |
159
+ | Linux | `isnady-rs-<version>-linux-x86_64.AppImage` (portable: `chmod +x` and run it) or `isnady-rs-<version>-linux-amd64.deb` (`sudo apt install ./…deb`) | `iy-rs-<version>-linux-x86_64.tar.gz` |
160
+ | macOS, Apple silicon / Intel | `isnady-rs-<version>-macos-arm64.dmg` / `…-macos-x86_64.dmg` (drag it to Applications), or the `.zip` of the app (portable); the first time, right-click it and choose *Open* | `iy-rs-<version>-macos-arm64.tar.gz` / `…-macos-x86_64.tar.gz` |
161
+
162
+ Or with Rust: `cargo install isnady` (`iy-rs`) and `cargo install isnady-gui` (the window; on Linux it needs
163
+ `webkit2gtk-4.1`). The portable ones keep everything in a folder named `isnady-data` beside them, as above. Every file of
164
+ a release is listed with its sha256 in `SHA256SUMS.txt`.
165
+
141
166
  ### With Python
142
167
 
143
168
  One line, on any system. Install isnady wherever you like — for all users, for yourself, in a
@@ -214,8 +239,8 @@ administrator prompt on Windows). If an old copy starts even for `iy update`, ru
214
239
  the languages you want and press **Import** — or **Import all**. **Languages for every book** adds a language to
215
240
  all the books that have it (or takes it out of all of them) in one step. Later, **⟳ Get updates** brings in only
216
241
  what is new or changed in the repository.
217
- 3. **Import the narrators too** — Ibn Hajar's *Taqrib* for the Sunni books, al-Najashi's *Rijal*
218
- for the Shia books — and every name in every chain is matched to its narrator.
242
+ 3. **Import the narrators too** — Ibn Hajar's *Taqrib* for the Sunni books, al-Najashi's *Rijal* and
243
+ al-Tusi's *Fihrist* and *Rijal* for the Shia books — and every name in every chain is matched to its narrator.
219
244
  4. **Search**, open a chain, open a narrator, read a book.
220
245
 
221
246
  The same from the command line:
@@ -261,14 +286,14 @@ repository added to a book that you read in your other books. Nothing else is re
261
286
  | 📜 **Written sources** | 6 Sunni (the Sahifa of Hammam b. Munabbih 138, al-Sahifa al-Sadiqa 253, the sahifa of 'Ali, Abu Bakr's letter on zakat, the letter for 'Amr b. Hazm, writing in the chains) and 4 Shia (the Book of 'Ali, al-Jami'a, Mushaf Fatima as the Shia books relate it, the letters to the Imams) — each a list of where its hadith stand in the collections | Books, as a book of its own; Written sources |
262
287
  | 🕌 **Sira** | Ibn Hisham, *al-Sira al-Nabawiyya* (from Ibn Ishaq) — 264 chapters, 2,109 sections | Books, chapter by chapter |
263
288
  | 👥 **Tabaqat** | al-Dhahabi, *Siyar A'lam al-Nubala'* (5,851 lives) and *Tadhkirat al-Huffaz* (1,176 huffaz in 21 generations) | Books; the text beside a narrator's written life; Hadith Scholars → Huffaz |
264
- | ⚖ **Rijal** | Ibn Hajar, *Taqrib al-Tahdhib* (8,824) · al-Najashi, *Rijal* (1,266) | Narrators, and every chain's narrators identified |
289
+ | ⚖ **Rijal** | Ibn Hajar, *Taqrib al-Tahdhib* (8,824) · al-Najashi, *Rijal* (1,269) · al-Tusi, *al-Fihrist* (910) and *Rijal* (6,429) | Narrators, and every chain's narrators identified |
265
290
 
266
291
  The hadith collections, Sunni and Shia apart:
267
292
 
268
293
  | | Sunni | Shia |
269
294
  |---|---|---|
270
295
  | **Hadith collections** | **17 books, 76,132 hadith.** Sahih al-Bukhari, Sahih Muslim, Sunan Abi Dawud, Jami' al-Tirmidhi, Sunan al-Nasa'i, Sunan Ibn Majah, the Muwatta — Arabic and up to eight translations (English, Turkish, Urdu, Indonesian, Bengali, French, Russian, Tamil), graded by al-Albani, Shu'ayb al-Arna'ut, Zubair 'Ali Za'i and others · the Forty of al-Nawawi, Forty Hadith Qudsi, the Forty of Shah Waliullah · Musnad Ahmad ibn Hanbal (26,363) and Sunan al-Darimi, fully voweled · Riyad al-Salihin, al-Shama'il al-Muhammadiyya, Bulugh al-Maram, al-Adab al-Mufrad, Mishkat al-Masabih, Arabic and English | **16 books, 23,614 hadith.** al-Kulayni's **al-Kafi** (8 volumes, 14,241 hadith, al-Majlisi's grade on nearly every one, al-Behbudi's selection) · al-Saduq's 'Uyun Akhbar al-Rida, al-Amali, al-Khisal, al-Tawhid, Ma'ani al-Akhbar, Thawab al-A'mal, Sifat al-Shi'a, Fada'il al-Shi'a · al-Mufid's al-Amali · Ibn Qulawayh's Kamil al-Ziyarat · al-Nu'mani's and al-Tusi's Kitab al-Ghayba · al-Ahwazi's al-Mu'min and al-Zuhd · al-Muhsini's Mu'jam al-Ahadith al-Mu'tabara — Arabic and English |
271
- | **Narrators** | Ibn Hajar, *Taqrib al-Tahdhib* — 8,824 narrators: verdict, rank of twelve, tabaqa, death year, book marks | al-Najashi, *Rijal* — 1,266 authors and narrators: reliability and creed in the Imami terms |
296
+ | **Narrators** | Ibn Hajar, *Taqrib al-Tahdhib* — 8,824 narrators: verdict, rank of twelve, tabaqa, death year, book marks | al-Najashi, *Rijal* — 1,269 authors and narrators; al-Tusi, *al-Fihrist* — 910 authors, and *Rijal* — 6,429 companions of the Prophet and the Imams: reliability and creed in the Imami terms |
272
297
 
273
298
  ### How it is laid out
274
299
 
@@ -340,15 +365,22 @@ iy catalog import --all
340
365
  ```
341
366
 
342
367
  Or take **a whole ready database** — every book imported, every chain read, every narrator
343
- identified — from the [isnady-data Releases](https://github.com/bayramkotan/isnady-data/releases):
368
+ identified — in one download instead of importing book by book. The first start offers it beside
369
+ **Import all** when isnady has no book yet; later it is **Data folder → Download the ready database…**
370
+ in Data sources, or one command:
344
371
 
345
372
  ```bash
346
- iy database use ~/Downloads/isnady-db-<date>.zip # in the window: Data folder → Use a ready database…
373
+ iy database download --check # what it holds: date, books, hadith, narrators, size
374
+ iy database download # download it, check it and use it
375
+ iy database use ~/Downloads/isnady-db-<date>.zip # or a file you already have (Data folder → Use a ready database…)
347
376
  ```
348
377
 
349
- isnady checks the file (the zip must hold `isnady.db`, the schema must be one it reads, the sha256
350
- must match the `database.json` beside it), puts it in place at the next start and keeps your
351
- previous database beside it (`isnady.<date-time>.bak.db`). Nothing is deleted.
378
+ isnady reads what the ready database holds from isnady-data's `database.json`, downloads the zip
379
+ of the [isnady-data Releases](https://github.com/bayramkotan/isnady-data/releases) into your data
380
+ folder and checks it (its size and sha256 as `database.json` gives them, the zip must hold
381
+ `isnady.db`, the schema must be one it reads). It takes the place of your database at the next start
382
+ and your previous database is kept beside it (`isnady.<date-time>.bak.db`). Nothing is deleted. A new
383
+ ready database is published with every release of isnady, so it carries the newest chain reader.
352
384
 
353
385
  <p align="center">
354
386
  <img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/data-sources.png" alt="Settings → Data sources — one button for each kind of book, then the road; the Sunni hadith collections under isnady-data/hadith/sunni/, each card with its languages and the same four buttons: Update, Remove data, Open in Books, Export" width="760">
@@ -374,7 +406,7 @@ repository with an isnady catalog, a Hugging Face dataset, a URL or a folder (`i
374
406
  | [LK Hadith Corpus](https://github.com/ShathaTm/LK-Hadith-Corpus) | the six books, isnad and matn marked apart | not stated |
375
407
  | [meeAtif/hadith_datasets](https://huggingface.co/datasets/meeAtif/hadith_datasets) (Hugging Face) | the six books, Arabic + English | MIT (as declared) |
376
408
  | [Hadith-Data-Sets](https://github.com/abdelrahmaan/Hadith-Data-Sets) | the nine books, Arabic | not stated |
377
- | [OpenITI](https://github.com/OpenITI) | the Taqrib, al-Najashi's Rijal | not stated |
409
+ | [OpenITI](https://github.com/OpenITI) | the Taqrib, al-Najashi's Rijal, al-Tusi's Fihrist and Rijal | not stated |
378
410
 
379
411
  Every source records a licence **tier** — **A** may be redistributed, **B** under its conditions,
380
412
  **C** may not — and **Help → Licences** lists them all. Any CSV or JSON table of hadith can be read
@@ -465,7 +497,8 @@ above its text.
465
497
  ### 👤 Who each narrator is
466
498
 
467
499
  Every name in a chain is matched to a narrator of its own tradition's rijal work — the *Taqrib*
468
- for a Sunni book, al-Najashi for a Shia book. A name is linked only when the evidence leaves one
500
+ for a Sunni book, al-Najashi for a Shia book (then al-Tusi's *Fihrist*, then his *Rijal*, for the men al-Najashi
501
+ does not have: a man found in an earlier book is that book's entry). A name is linked only when the evidence leaves one
469
502
  person: the words of the name, the book marks (a narrator in al-Bukhari must be one Ibn Hajar marks
470
503
  خ), the order of generations along the chain, the last link before the Prophet being a Companion,
471
504
  and — in al-Kafi — al-Kulayni's own teachers at the head of his chains. When several narrators
@@ -474,6 +507,16 @@ than choosing one. In blind, hand-checked samples of the identified names, the l
474
507
  correct. Names are kept exactly as written, with the clarifications the compilers added
475
508
  (*"— yaʿnī Ibn Muḥammad —"*).
476
509
 
510
+ **More narrators known (0.7.6).** Ibn Hajar writes inside a name how it is spelt — "سماك بكسر أوله وتخفيف الميم بن
511
+ حرب" — and those words had kept 1,952 of his entries from the chains' plain "سماك بن حرب"; they are now left out of
512
+ the name looked up (the entry keeps them). A name the chains give without "بن" — a kunya, a nisba, an ism with its
513
+ nisba: "عمرو الناقد", "خالد الحذاء", "القعنبي", "أبي الصباح الكناني" — is found inside the entries' names when no
514
+ entry begins with it; "سمعت أنسا" is Anas; al-Saduq's "حدثنا أبي" (and "أبي ره") is his father. With al-Tusi's two
515
+ books beside al-Najashi, the Shia chains find al-Hasan b. Mahbub, al-Husayn b. Sa'id, al-Nadr b. Suwayd and the
516
+ companions of the Imams al-Najashi left out. On the whole of isnady-data, the narrators identified rose from **76.7%
517
+ to 79.4%** of the Sunni links and from **53.8% to 66.8%** of the Shia links (al-Kafi 65% → 75%); the chains
518
+ themselves are read as before. The Python isnady and isnady-rs identify the same narrator at every link.
519
+
477
520
  <details>
478
521
  <summary><b>📊 How well it reads today</b></summary>
479
522
  <br>
@@ -527,14 +570,14 @@ isnady derives is reached along the road of the book's own tradition.
527
570
  | How a chain opens | a transmission term on every link (حدثنا، أخبرنا، عن …) | al-Kulayni names his teacher without a term (علي بن إبراهيم عن أبيه …) |
528
571
  | Groups and joined roads | two narrators at one link (qiran) | "عدة من أصحابنا" — al-Kulayni's groups, shown with the teachers he said they stand for; "… جميعاً عن …", two roads joined; "رفعه"; "عن رجل"; "عنه" |
529
572
  | Where it ends | the Prophet ﷺ | one of the Fourteen Ma'sumun: the Prophet ﷺ or an Imam, most often by his kunya — أبو عبد الله is Ja'far al-Sadiq, أبو جعفر al-Baqir, أبو الحسن al-Kazim or al-Rida; "سألته" is *mudmar* |
530
- | Who identifies its narrators | Ibn Hajar's *Taqrib al-Tahdhib* | only the Shia rijal works: al-Najashi's *Rijal* (al-Tusi's next) |
573
+ | Who identifies its narrators | Ibn Hajar's *Taqrib al-Tahdhib* | only the Shia rijal works: al-Najashi's *Rijal*, then al-Tusi's *Fihrist* and *Rijal* |
531
574
  | How a narrator is judged | Ibn Hajar's twelve ranks | the Imami critics' own terms — **reliability** (*thiqa*; praised — *jalil*, *wajh*, *'ayn*; weak) and **creed** (Imami, or Waqifi, Fathi, Zaydi, *'ammi* …): an Imami *thiqa*, a praised narrator (*mamduh*), a *thiqa* of another school (*muwaththaq*), a weak one |
532
575
  | Whose grades | al-Albani, Shu'ayb al-Arna'ut, Zubair 'Ali Za'i … | al-Majlisi (*Mir'at al-'Uqul*), al-Behbudi (*Sahih al-Kafi*) … |
533
576
 
534
577
  Nothing is mapped onto the other tradition's measure, and a narrator of one tradition is never a
535
578
  candidate for a link of the other's chains. Read this way, **96.8%** of al-Kafi's 14,239 chains
536
579
  split into their narrators (9 did when they were read the Sunni way), **92%** reach a Ma'sum, and
537
- half of their 61,160 names are identified in al-Najashi's *Rijal* (3 were before).
580
+ three in four of their 64,231 names are identified in the Shia rijal works (3 were before).
538
581
 
539
582
  <p align="center">
540
583
  <img src="https://raw.githubusercontent.com/bayramkotan/isnady/main/assets/screenshots/chain-shia.png" alt="A chain of al-Kafi read the Shia way: al-Kulayni's group of teachers, the narrators judged by al-Najashi, ending at Imam Ja'far al-Sadiq" width="850">
@@ -1107,7 +1150,9 @@ when both are behind) and shows what is new; `iy update --check`, `iy update --n
1107
1150
  shows a plain card instead of stopping isnady, the details go to `isnady.log` in the data folder, and an import that
1108
1151
  was cut short is named on the Search page at the next start. At every start with no books yet, isnady asks to
1109
1152
  import isnady-data — every hadith book and rijal work with one click (**Import all**) — in the background, the
1110
- progress in the bar at the bottom; on the command line `iy` says so and `iy catalog import --all` does it.
1153
+ progress in the bar at the bottom, or to download isnady-data's ready database instead (**Download the ready
1154
+ database**: everything already read, used from the next start); on the command line `iy` says so, and
1155
+ `iy catalog import --all` or `iy database download` does it.
1111
1156
 
1112
1157
  **Settings → Books and languages** switches imported books on and off (Sunni and Shia apart),
1113
1158
  chooses the languages the texts are shown in — the others are folded behind an arrow on each hadith — and puts
@@ -1408,6 +1453,7 @@ iy catalog add "My notes" isnady ~/notes/book.json --license CC-BY-4.0 # a boo
1408
1453
  iy repo # the data repositories (isnady-data by default)
1409
1454
  iy repo add ~/isnady-data --name "My copy" # a GitHub or Hugging Face repository, a URL or a folder
1410
1455
  iy repo use lk-hadith-corpus # read the books from another repository
1456
+ iy database download # isnady-data's ready database, downloaded and checked (yours is kept beside it)
1411
1457
  iy database use isnady-db-2026-10-12.zip # a ready database from a file (yours is kept beside it)
1412
1458
  iy import isnady ~/my_book/book.json --license CC-BY-4.0 # import one file of your own
1413
1459
  iy import fawazahmed0 https://…/editions.json --book bukhari --language Turkish # from an index of editions
package/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * database (used by both the Python and JavaScript packages) exists.
7
7
  */
8
8
 
9
- export const version = "0.7.4";
9
+ export const version = "0.7.6";
10
10
  export const name = "isnady";
11
11
 
12
12
  /** Returns basic package information. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isnady",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "Hadith search with full isnad chains, narrator biographies, jarh wa ta'dil verdicts and reliability scores",
5
5
  "type": "module",
6
6
  "main": "./index.js",