You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sword-converter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sword-converter

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

2.0.0
PyPI
Maintainers
1

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

Keywords

SWORD

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts