A native Python reader of the SWORD Project Bible Modules
This project is not an official CrossWire project. It merely provides an alternative way to read the bible modules created by CrossWires SWORD project.
Features
Read SWORD bibles (not commentaries etc.)
Detection of locally installed bible modules.
Supports all known SWORD module formats (ztext, ztext4, rawtext, rawtext4)
Read from zipped modules, like those available from http://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles
Clean text of OSIS, GBF or ThML tags.
Supports both python 2.7 and 3.3+ [*] (CI tested with 2.7 to 3.10)
License
PySword is and can be distributed under the MIT license
Installation
PySwords source code can be downloaded from PySwords release list, but it is also available from PyPI for install using pip:
pip install pysword
It also available for ArchLinux (AUR) and Fedora and Debian.
Run tests
To run the testsuite, first run the script that download the files used for testing, and then use pytest to run the testsuite:
$ python tests/resources/download_bibles.py
$ pytest -v tests/
The tests should run and pass using both python 2 and 3.
Using PySword
Read the documentation for how to use pysword and to see the API docs.
Contributing
If you want to contribute, you are most welcome to do so! Feel free to report issues and create merge request at https://gitlab.com/tgc-dk/pysword If you create a merge request please include a test the proves that your code actually works.
Metadata
Release files for pysword 0.2.8
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 | |
|---|---|---|---|---|
| pysword-0.2.8.tar.gz | 28.1 kB | Without provenance | Details |
Release files / pysword-0.2.8.tar.gz
| Download URL | pysword-0.2.8.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6302f350c22f39090e2556729551fac57a4c25ceb268f90cd7fd0584b9cca4f0
|
|
BLAKE2b-256 checksum How to use checksums |
3cd94fdf24472c91c63703281e3bb3868f59caf49ca11d606c95742652db7e7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4
|
Security for pysword 0.2.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.