Skip to main content

Generate JSON Files and SQLite Databases of Bible Texts from SWORD Modules

Project description

SWORD Converter

Test Publish PyPI

Generate JSON Files and SQLite Databases of Bible Texts from SWORD Modules

The SWORD project provides modules freely for common Bible translations in different languages.

Sample Output

1. JSON

{
  "name": "King James Version (1769) with Strongs Numbers and Morphology  and CatchWords",
  "abbreviation": "KJV",
  "books": {
    "ot": [
      {
        "number": 1,
        "name": "Genesis",
        "abbreviation": "Gen",
        "chapters": [
          {
            "number": 1,
            "verses": [
              {
                "number": 1,
                "text": "In the beginning God created the heaven and the earth."
              }
            ]
          }
        ]
      }
    ],
    "nt": [
      {
        "number": 40,
        "name": "Matthew",
        "abbreviation": "Matt",
        "chapters": [
          {
            "number": 1,
            "verses": [
              {
                "number": 1,
                "text": "The book of the generation of Jesus Christ, the son of David, the son of Abraham."
              }
            ]
          }
        ]
      }
    ]
  }
}

2. SQLite

  • Translations
+-----------------------------------------------------------------------------+------------+
|name                                                                         |abbreviation|
+-----------------------------------------------------------------------------+------------+
|King James Version (1769) with Strongs Numbers and Morphology  and CatchWords|KJV         |
+-----------------------------------------------------------------------------+------------+
  • Books
+-----------+------+-------+------------+---------+
|translation|number|name   |abbreviation|testament|
+-----------+------+-------+------------+---------+
|1          |1     |Genesis|Gen         |ot       |
+-----------+------+-------+------------+---------+
  • Chapters
+----+------+
|book|number|
+----+------+
|1   |1     |
+----+------+
  • Verses
+-------+------+------------------------------------------------------+
|chapter|number|text                                                  |
+-------+------+------------------------------------------------------+
|1      |1     |In the beginning God created the heaven and the earth.|
+-------+------+------------------------------------------------------+

Installation

Using pip

pip install sword-converter

Using poetry

poetry add sword-converter

Usage

Output file will be saved in the same directory as the sword module.

sword-converter source module -f {json,sqlite}
sword-converter /home/user/Downloads/KJV.zip KJV -f json
sword-converter /home/user/Downloads/KJV.zip KJV -f sqlite

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

sword_converter-2.0.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

sword_converter-2.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file sword_converter-2.0.0.tar.gz.

File metadata

  • Download URL: sword_converter-2.0.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for sword_converter-2.0.0.tar.gz
Algorithm Hash digest
SHA256 fc6ad3355a138bee66a68671caf377dba93196813ed09c033a71c5ac8cbfd8c5
MD5 402de77b499395c4963f3f7badd16348
BLAKE2b-256 e6e677b37977adc40e8f31e3048bedf7413c90922c8909142b17746166da834b

See more details on using hashes here.

File details

Details for the file sword_converter-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sword_converter-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 016b11d71ff59ab33e9e6e46f5b0d9ab5344794dab7fca473f6a2f173c322183
MD5 6bc901ea592bd435ef61bebc96f74a68
BLAKE2b-256 232a77efedf9cae3fa83655da3e2f19b8f7e6eddbe1ac58b025db55096efaf6b

See more details on using hashes here.

Supported by

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