Metadata-Version: 2.4
Name: bibref-python
Version: 2026.4.1
Summary: Python wrapper for the bibref command-line tool for working with biblical references
Author: Zoltán Kovács
License: Copyright (C) 2026 Zoltán Kovács
        
        Copying and distribution of these files, with or without modification,
        are permitted in any medium without royalty provided the copyright
        notice and this notice are preserved.
        
Project-URL: Homepage, https://github.com/kovzol/bibref-python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pexpect>=4.8
Dynamic: license-file

# bibref-python

This Python wrapper allows programmatic interface for the
[bibref](https://github.com/kovzol/bibref) command-line tool to work
with biblical references.

## Installation

`pip install bibref-python`

## Example usages

### Search for connections of Psalm 2

```python
from bibref.tools import *

print(getrefs_maxlength("SBLGNT LXX Psalms 2"))

text_n(1, "υιος μου ει συ εγω σημερον γεγεννηκα σε")
print(find_n(1, "LXX"))
print(find_n(1, "StatResGNT"))
```

### Search for names appearing in the beginning of Matthew 1

```python
from bibref.tools import *

names = [ "Αβρααμ", "Ισαακ", "Ιακωβ", "Ιουδα",
    "Φαρες", "Ζαρα", "Εσρωμ", "Αραμ", "Αμιναδαβ", "Ναασσων",
    "Σαλμων", "Βοες", "Ραχαβ", "Ιωβηδ", "Ρουθ", "Ιεσσαι", "Δαυιδ",
    "Σολομων", "Ροβοαμ", "Αβια", "Ασαφ", "Ιωσαφατ", "Ιωραμ", "Οζιας",
    "Ιωαθαμ", "Αχαζ", "Εζεκιας", "Μανασση", "Αμως", "Ιωσιας",
    "Ιεχονιας", "Σαλαθιηλ", "Ζοροβαβελ", "Αβιουδ", "Ελιακειμ", "Αζωρ",
    "Σαδωκ", "Αχειμ", "Ελιουδ", "Ελεαζαρ", "Ματθαν", "Ιακωβ", "Ιωσηφ" ]

maxresults(10000)

for name in names:
    text_n(1, name)
    occurrences = find_n(1, "LXX")
    print(name, len(occurrences))
```

## Author and copyright

See [license](LICENSE).
