Python is the primary scripting language used in this project. To ensure consistency and compatibility, we recommend using Python 3.9. This version has been tested thoroughly with our scripts and provides the necessary features and stability for text management and data processing.
To use the scripts in the scripts directory, be sure you have the dependencies installed:
pip install mysql-connector-python
pip install future
pip install pysword
pip install PyYAML
pip install pyarrow
pip install pymysqlYou may also install all PyPI dependencies from the root project directory with:
python -m pip install -r requirements.txt- Description: Dynamically assembles the README.md file from various parts located in the
docs/main_readmedirectory. - Usage: Run the script to generate the complete README.md.
- Description: Creates an SQLite database for a selected Bible translation and includes cross references. Prompts the user for the path where the new database should be built.
- Usage: Run the script and follow the prompts to create the SQLite database with cross references.
- Description: Creates an SQLite database for a selected Bible translation and includes cross references. Prompts the user for the path where the new database should be built.
- Usage: Run the script and follow the prompts to create the SQLite database with cross references.
- Description: Automates the generation of all Bible translations in multiple formats (SQL, SQLite, CSV, JSON, TXT, YAML, MD). Iterates through all available translations and creates the corresponding files.
- Usage: Run the script to generate all formats for each translation.
- Description: Generates cross-reference data for Bible translations. Processes raw cross-reference data and formats it for use with Bible translations.
- Usage: Run the script to create cross-reference files.
- Description: Specifically generates cross-reference data for MySQL databases. Formats the cross-reference data into SQL insert statements.
- Usage: Run the script to create cross-reference SQL files.
- Description: Specifically generates cross-reference data for PostgreSQL databases. Formats the cross-reference data into SQL insert statements.
- Usage: Run the script to create cross-reference SQL files.
- Description: Generates CSV files for Bible translations. Each translation is processed and output as a CSV file.
- Usage: Run the script to create CSV files for each translation.
- Description: Generates JSON files for Bible translations. Each translation is processed and output as a JSON file.
- Usage: Run the script to create JSON files for each translation.
- Description: Generates Markdown (MD) files for Bible translations. Each translation is processed and output as a Markdown file.
- Usage: Run the script to create Markdown files for each translation.
- Description: Generates MySQL SQL dump files for Bible translations. Each translation is processed and output as an SQL dump file.
- Usage: Run the script to create SQL dump files for each translation.
- Description: Generate Parquet files for Bible translations. Each translation is processed and output as a .parquet file.
- Usage: Run the script to create .parquet files for each translation.
- Description: Generates PostgreSQL SQL dump files for Bible translations. Each translation is processed and output as an SQL dump file.
- Usage: Run the script to create SQL dump files for each translation.
- Description: Generates SQLite database files for Bible translations. Each translation is processed and output as an SQLite database file.
- Usage: Run the script to create SQLite database files for each translation.
- Description: Generates plain text (TXT) files for Bible translations. Each translation is processed and output as a text file.
- Usage: Run the script to create text files for each translation.
- Description: Generates YAML files for Bible translations. Each translation is processed and output as a YAML file.
- Usage: Run the script to create YAML files for each translation.
- Description: Exports data from the SQLite database to a specified format.
- Usage: Run the script to export data from the SQLite database.
- Description: Checks the integrity of the reformatted text against the source .json files in sources directory.
- Usage: Run the script and follow the prompts.
-
Setup:
- Ensure you have Python 3.9 or higher installed on your machine.
- Clone the repository to your local machine.
- Navigate to the directory containing the scripts.
-
Run a Script:
- Open a terminal or command prompt.
- Navigate to the script directory.
- Run the script by typing
python <script_name>.pyand follow any prompts if applicable.
Example:
python generate_all_versions.py