karaoke-lyrics-processor 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,14 @@ def main():
20
20
  package_version = pkg_resources.get_distribution("karaoke-lyrics-processor").version
21
21
  parser.add_argument("-v", "--version", action="version", version=f"%(prog)s {package_version}")
22
22
  parser.add_argument("-d", "--debug", action="store_true", help="Enable debug mode, setting log level to DEBUG.")
23
+ parser.add_argument("-o", "--output", type=str, help="Optional: Specify the output filename for the processed lyrics.")
24
+ parser.add_argument(
25
+ "-l",
26
+ "--line_length",
27
+ type=int,
28
+ default=36,
29
+ help="Optional: Specify the maximum line length for the processed lyrics. Default is 36.",
30
+ )
23
31
  parser.add_argument("filename", type=str, help="The path to the file containing the song lyrics to process.")
24
32
 
25
33
  args = parser.parse_args()
@@ -37,10 +45,17 @@ def main():
37
45
  logger.info(f"Karaoke Lyrics processor beginning with input file: {args.filename}")
38
46
 
39
47
  filename_parts = args.filename.rsplit(".", 1)
40
- output_filename = f"{filename_parts[0]} (Lyrics Processed).{filename_parts[1]}"
48
+ if args.output:
49
+ output_filename = args.output
50
+ else:
51
+ output_filename = f"{filename_parts[0]} (Lyrics Processed).{filename_parts[1]}"
41
52
 
42
53
  processor = KaraokeLyricsProcessor(
43
- log_level=log_level, log_formatter=log_formatter, input_filename=args.filename, output_filename=output_filename
54
+ log_level=log_level,
55
+ log_formatter=log_formatter,
56
+ input_filename=args.filename,
57
+ output_filename=output_filename,
58
+ max_line_length=args.line_length,
44
59
  )
45
60
  processor.process()
46
61
  processor.write_to_output_file()
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.1
2
+ Name: karaoke-lyrics-processor
3
+ Version: 0.1.1
4
+ Summary: Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines
5
+ Home-page: https://github.com/karaokenerds/karaoke-lyrics-processor
6
+ License: MIT
7
+ Author: Andrew Beveridge
8
+ Author-email: andrew@beveridge.uk
9
+ Requires-Python: >=3.9,<3.13
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Requires-Dist: pyperclip (>=1.8)
17
+ Project-URL: Documentation, https://github.com/karaokenerds/karaoke-lyrics-processor/blob/main/README.md
18
+ Project-URL: Repository, https://github.com/karaokenerds/karaoke-lyrics-processor
19
+ Description-Content-Type: text/markdown
20
+
21
+ # Karaoke Lyrics Processor 🎶 ✍️
22
+
23
+ Karaoke Lyrics Processor is a tool to prepare song lyrics for karaoke video production.
24
+
25
+ It processes lyrics by splitting long lines, handling parentheses, and ensuring that each line fits within a specified maximum length.
26
+ This tool is especially useful for creating karaoke tracks where timing and line length are crucial for readability.
27
+
28
+ ## Features
29
+
30
+ - **Line Splitting**: Automatically splits long lines of lyrics to ensure they fit within a specified maximum length, making them more readable and suitable for karaoke display.
31
+ - **Intelligent Splitting**: Finds the best split points in lines, considering punctuation and logical breaks in the lyrics.
32
+ - **Parentheses Handling**: Processes lines containing parentheses appropriately, ensuring that the lyrical flow is maintained.
33
+ - **Clipboard Support**: Copies the processed lyrics to the clipboard for easy pasting into video production software or other applications.
34
+ - **Debug Mode**: Offers a debug mode for detailed logging, helping with troubleshooting and fine-tuning the processing.
35
+
36
+ ## Installation
37
+
38
+ To install the Karaoke Lyrics Processor, ensure you have Python 3.9 or newer in your environment.
39
+
40
+ This package is available on PyPI and can be installed using pip. Run the following command in your terminal:
41
+
42
+ ```bash
43
+ pip install karaoke-lyrics-processor
44
+ ```
45
+
46
+ ## Usage (CLI)
47
+
48
+ To process a file containing song lyrics, use the following command:
49
+
50
+ ```bash
51
+ karaoke-lyrics-processor <path_to_lyrics_file>
52
+ ```
53
+
54
+ By default, this will create a new file in your current directory with `(Lyrics Processed)` in the filename containing the processed lyrics.
55
+
56
+ ### Command line options
57
+
58
+ ```bash
59
+ usage: karaoke-lyrics-processor [-h] [-v] [-d] [-o OUTPUT] [-l LINE_LENGTH] filename
60
+
61
+ Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines
62
+
63
+ positional arguments:
64
+ filename The path to the file containing the song lyrics to process.
65
+
66
+ options:
67
+ -h, --help show this help message and exit
68
+ -v, --version show program's version number and exit
69
+ -d, --debug Enable debug mode, setting log level to DEBUG.
70
+ -o OUTPUT, --output OUTPUT Optional: Specify the output filename for the processed lyrics.
71
+ -l LINE_LENGTH, --line_length LINE_LENGTH Optional: Specify the maximum line length for the processed lyrics. Default is 36.
72
+ ```
73
+
74
+ ## Contributing 🤝
75
+
76
+ Contributions are very much welcome! Please fork the repository and submit a pull request with your changes, and I'll try to review, merge and publish promptly!
77
+
78
+ - This project is 100% open-source and free for anyone to use and modify as they wish.
79
+ - If the maintenance workload for this repo somehow becomes too much for me I'll ask for volunteers to share maintainership of the repo, though I don't think that is very likely
80
+
81
+ ## License 📄
82
+
83
+ This project is licensed under the MIT [License](LICENSE).
84
+
85
+ ## Contact 💌
86
+
87
+ For questions or feedback, please raise an issue or reach out to @beveradb ([Andrew Beveridge](mailto:andrew@beveridge.uk)) directly.
88
+
@@ -0,0 +1,8 @@
1
+ karaoke_lyrics_processor/__init__.py,sha256=rLRkJQi61qkRiNXdlTleE3ahJ1oBKcghYVkz64x7IIg,62
2
+ karaoke_lyrics_processor/cli.py,sha256=yCbmQBTRHvSV0tjRf2WmWmYHXjYzlsPXd_EfZIRYm_c,2427
3
+ karaoke_lyrics_processor/karaoke_lyrics_processor.py,sha256=M8CE5l_aIyzjWwiu1lOqFkOkBB7R38JV8oqHFS-wklQ,6615
4
+ karaoke_lyrics_processor-0.1.1.dist-info/LICENSE,sha256=BiPihPDxhxIPEx6yAxVfAljD5Bhm_XG2teCbPEj_m0Y,1069
5
+ karaoke_lyrics_processor-0.1.1.dist-info/METADATA,sha256=Yi8rovwQ9alrNvFYQeOxvGD5z7v6Lde85hk5sJ_Q1Wc,4089
6
+ karaoke_lyrics_processor-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
+ karaoke_lyrics_processor-0.1.1.dist-info/entry_points.txt,sha256=hjFp6CUxl1p-1WJYfB6TbNcI_DHEnVzX3BXAs4y_0O8,78
8
+ karaoke_lyrics_processor-0.1.1.dist-info/RECORD,,
@@ -1,23 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: karaoke-lyrics-processor
3
- Version: 0.1.0
4
- Summary: Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines
5
- Home-page: https://github.com/karaokenerds/karaoke-lyrics-processor
6
- License: MIT
7
- Author: Andrew Beveridge
8
- Author-email: andrew@beveridge.uk
9
- Requires-Python: >=3.9,<3.13
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.9
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Requires-Dist: pyperclip (>=1.8)
17
- Project-URL: Documentation, https://github.com/karaokenerds/karaoke-lyrics-processor/blob/main/README.md
18
- Project-URL: Repository, https://github.com/karaokenerds/karaoke-lyrics-processor
19
- Description-Content-Type: text/markdown
20
-
21
- # karaoke-lyrics-processor
22
- Process song lyrics to prepare them for karaoke video production, e.g. by splitting long lines
23
-
@@ -1,8 +0,0 @@
1
- karaoke_lyrics_processor/__init__.py,sha256=rLRkJQi61qkRiNXdlTleE3ahJ1oBKcghYVkz64x7IIg,62
2
- karaoke_lyrics_processor/cli.py,sha256=ZBIZsZoxjofJJljIzLn0vtQpTt3nQ0x2CMe5QLDIEtY,1957
3
- karaoke_lyrics_processor/karaoke_lyrics_processor.py,sha256=M8CE5l_aIyzjWwiu1lOqFkOkBB7R38JV8oqHFS-wklQ,6615
4
- karaoke_lyrics_processor-0.1.0.dist-info/LICENSE,sha256=BiPihPDxhxIPEx6yAxVfAljD5Bhm_XG2teCbPEj_m0Y,1069
5
- karaoke_lyrics_processor-0.1.0.dist-info/METADATA,sha256=UJ5w1ZoOOt1-2MdDN1gOGRtfQwRqOtyr19t6_oeuJIc,1027
6
- karaoke_lyrics_processor-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
- karaoke_lyrics_processor-0.1.0.dist-info/entry_points.txt,sha256=hjFp6CUxl1p-1WJYfB6TbNcI_DHEnVzX3BXAs4y_0O8,78
8
- karaoke_lyrics_processor-0.1.0.dist-info/RECORD,,