ScoobyDoo CSV Tool is a Python application that processes CSV files containing story plot information. It provides the following functionalities:
- Split long plots: Splits long plots in a CSV file into multiple smaller plots, based on a given maximum token count.
- Remove specific characters: This feature provides several options:
- Remove non-breaking spaces (NBSP)
- Remove custom character
- Remove season and episode indicators
- Story plots data preparation to a JSON: Extract a specified number of story plots from the CSV file and generate
a
story_plots.json
file. - Generate Text File: Extract a specified number of story plots from the CSV file and generate a
story_plots.txt
file in a given format. - Generate PDF File: Extract a specified number of story plots from the CSV file and generate a
story_plots.pdf
file in a given format. - Exit: Exit the application.
This version of the project includes a Tkinter-based graphical user interface (GUI) for a more user-friendly experience.
To install the required dependencies, simply run:
pip install -r requirements.txt
To run the application, execute the following command:
python scoobydoo_csv_gui.py
The application will open in a new window with the main menu.
- Click on the 'Split long plots' button.
- Select the input CSV file.
- Select the output CSV file.
- Enter the maximum tokens per plot chunk (default: 1000).
- Click 'OK' and the plots will be split in the output CSV file.
- Click on the 'Remove specific characters' button.
- Choose one of the following options:
- Remove non-breaking spaces (NBSP)
- Remove custom character
- Remove season and episode indicators
- Select the input CSV file.
- Select the output CSV file.
- If you chose 'Remove custom character', enter the custom character to remove.
- Click 'OK' and the specified characters will be removed in the output CSV file.
- Click on the 'Story plots data preparation to a JSON' button.
- Select the input CSV file.
- Enter the number of JSON data objects to generate (default: all CSV data).
- Click 'OK' and a
story_plots.json
file will be generated in the current directory.
To exit the application, click on the 'Exit' button and confirm your choice.
Sure, here's how you can update the README.md
file in your GitHub repository to include the new features.