You will need to set the environment variable GENIUS_API_KEY to use the --title and --artist options. You will also need to set the environment variable TOGETHER_API_KEY to use the CLI.
SongReWriter CLI is a command-line tool designed to convert song lyrics into various styles of technical prose, such as scientific, bureaucratic, engineering, military, and medical.
Ensure you have Python 3 installed. You can clone the repository and install the required dependencies using pip:
git clone https://github.com/Hcha-byte/SongReWriter.git
cd SongReWriter
pip install -r requirements.txtYou can download the .exe file from here and run it directly from your command prompt.
Run the following command to start the tool:
python3 main.py [options]OR
main.exe [options]-
--title, -t: Specify the song title for automatic generation. This option requires the--artistoption to be used as well. -
--artist, -a: Specify the artist name for automatic generation. This option requires the--titleoption to be used as well. -
--input, -i: Provide the song lyrics manually instead of fetching them automatically. -
--mode, -m: Select the transformation mode. Options are:scientific,bureaucratic,engineering,military,medical. Default isscientific. -
--help, -h: Display the help message.
Note: Automatically generated song lyrics are fetched from Genius.com.
Convert a song by providing the title and artist:
python3 main.py --title "Song Title" --artist "Artist Name"OR
main.exe --title "Song Title" --artist "Artist Name"Convert song lyrics provided manually:
python3 main.py --input "Here comes the sun (Doo-d-doo-doo)\nHere comes the sun\nAnd I say, \"It's alright\""OR
main.exe --input "Here comes the sun (Doo-d-doo-doo)\nHere comes the sun\nAnd I say, \"It's alright\""To view help information:
python3 main.py --CLI_HELPOR
main.exe --CLI_HELPSongReWriter
Convert song lyrics into technical prose
Usage: python main.py [-h] [-t TITLE] [-a ARTIST] [-i INPUT] [-m MODE]
optional arguments:
-h, --help show this help message and exit
-t TITLE, --title TITLE
Song title for automatic generation
-a ARTIST, --artist ARTIST
Artist name for automatic generation
-i INPUT, --input INPUT
Manually enter song lyrics
-m MODE, --mode MODE
Select transformation mode [default: scientific] from the following: scientific, bureaucratic, engineering, military, medical
Examples:
python main.py --title "Song Title" --artist "Artist Name"
python main.py --input "Here comes the sun (Doo-d-doo-doo)\nHere comes the sun\nAnd I say, \"It's alright\""
----------------------------------------------------------------------------
The GUI tool is located at app/ and can be run with:
python3 -m flask runOR You can go to it here
- Convert song lyrics into various styles of technical prose, such as scientific, bureaucratic, engineering, military, and medical. -> More modes to coming
- Automatically fetch song lyrics from Genius.com.
- View the original lyrics and the transformed lyrics side by side.
- Convert song lyrics into various styles of technical prose, such as scientific, bureaucratic, engineering, military, and medical.
- Automatically fetch song lyrics from Genius.com.
- Manually enter song lyrics.
- Better formatting of output
MIT License © 2025
Created by Hcha-byte
Version: 1.1.1
