Skip to main content

A native Python2/3 reader module for the SWORD Project Bible Modules

Project description

https://gitlab.com/tgc-dk/pysword/badges/master/build.svg https://ci.appveyor.com/api/projects/status/7n8848av82arr9xv?svg=true

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.7)

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 will soon be available as a package in Debian.

Run tests

To run the testsuite, first run the script that download the files used for testing, and then use nosetests to run the testsuite:

$ python tests/resources/download_bibles.py
$ nosetests -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.

Project details


Download files

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

Source Distribution

pysword-0.2.6.tar.gz (24.7 kB view details)

Uploaded Source

File details

Details for the file pysword-0.2.6.tar.gz.

File metadata

  • Download URL: pysword-0.2.6.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for pysword-0.2.6.tar.gz
Algorithm Hash digest
SHA256 d358dcef3cae5f596303e4bd85366ae915f7e10fd75bc91435ef71840dc4cd4b
MD5 f8283fa17dbc9fe218ab7b39f42cc926
BLAKE2b-256 c0aa20d32448dd6a0018e5ed77c8115004fddc08e44b66e9629257639d382150

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page