-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Jaguar000212/refactor/v0.2.5
refactor: changed file structure and docstrings
- Loading branch information
Showing
15 changed files
with
297 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
# Toodler | ||
# <img src="https://github.com/Jaguar000212/Toodler/blob/main/toodler.ico?raw=true" width="25" /> Toodler | ||
|
||
> The ultimate toolkit for every need! | ||
Compilation of some of my tools which I made as a learner. This program allows you to acccess all of them of together with a single command, all centralized with a `launcher`. | ||
I will be working on adding upo new tools and improving the existing ones as well. | ||
Your feedback is much needed. | ||
|
||
### ☑️ Currently available tools | ||
1. <img src="https://github.com/Jaguar000212/Toodler/blob/main/tools/lyrically/Lyrically.ico?raw=true" width="15" /> **Lyrically** - Lyrics Generator, mage using `lyricsgenius` | ||
1. <img src="https://github.com/Jaguar000212/Toodler/blob/main/tools/translator/Translator.ico?raw=true" width="15" /> **Translator** - Translation tool, made using `googletrans` | ||
|
||
### ⏭️ Tools in lineup | ||
- **Scientific Calculator** | ||
- **Background Remover** | ||
|
||
### 📃 Requirements | ||
``` | ||
- Python - 3.x.x | ||
- customtkinter - 5.2.1 | ||
- googletrans - 4.0.0rc1 | ||
- lyricsgenius - 3.0.1 | ||
- requests - 2.31.0 | ||
- tkinter - 0.1.0 | ||
``` | ||
|
||
### ⚙️ Installation | ||
```sh | ||
# Clone the repo | ||
$ git clone https://github.com/Jaguar000212/Toodler.git | ||
|
||
# Change the working directory to Toodler | ||
$ cd Toodler | ||
|
||
# Install the requirements | ||
$ python3 -m pip install -r requirements.txt | ||
|
||
# Run the launcher | ||
$ python3 launcher.py | ||
``` | ||
### 🧑🏻💻 Contribution | ||
I would love to have you help me with the development of Toodler. 🚀 | ||
Each and every contribution is greatly valued! | ||
|
||
Here are some things I would appreciate your help on: | ||
|
||
- Addition of new Tools to the library. | ||
- in Bug Hunting as well as their remedy. | ||
|
||
New suggestions are also welcomed. You can simply open an issue if you have something to say! | ||
|
||
--- | ||
|
||
⭐️ From [Jaguar000212](https://github.com/Jaguar000212) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from exceptions.exceptions import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
from tkinter import messagebox | ||
|
||
|
||
class InvalidLanguage(Exception): | ||
""" | ||
Exception raised when an invalid language is encountered. | ||
Attributes: | ||
type (str): The type of language that is invalid. | ||
""" | ||
|
||
def __init__(self, type: str, parent): | ||
""" | ||
Initializes a new instance of the InvalidLanguage class. | ||
Args: | ||
type (str): The type of language that is invalid. | ||
parent: The parent widget for displaying the error message. | ||
""" | ||
self.message = f"Invalid {type} language." | ||
messagebox.showerror("Error", self.message, parent=parent) | ||
super().__init__(self.message) | ||
|
||
|
||
class NoAPIKey(Exception): | ||
""" | ||
Exception raised when no API key is provided. | ||
Attributes: | ||
message (str): The error message. | ||
""" | ||
|
||
def __init__(self, message: str, parent): | ||
""" | ||
Initializes a new instance of the NoAPIKey class. | ||
Args: | ||
message (str): The error message. | ||
parent: The parent widget for displaying the error message. | ||
""" | ||
messagebox.showerror("Error", message, parent=parent) | ||
super().__init__(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
customtkinter==5.2.2 | ||
googletrans==4.0.0rc1 | ||
lyricsgenius==3.0.1 | ||
requests==2.31.0 | ||
tk==0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from tools.translator.translator import TextTranslator | ||
from tools.lyrically.lyrically import Lyrically |
File renamed without changes.
Oops, something went wrong.