Skip to content

quicklingo #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Quicklingo/Details
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"QuickLingo: Type anything. Get English. No drama, just magic." 🎩✨
Project Name:
QuickLingo
Overview:
This is a basic text translator program that takes user input in any language and translates it into English. It uses the googletrans library to access Google's translation API and outputs the translated English text instantly.

Main Features:

Accepts text input from the user.

Automatically translates the input into English.

Displays the translated English text.

Simple and easy-to-use console-based interface.

Tools & Technologies Used:

Python

googletrans library (googletrans==4.0.0-rc1 recommended)

Why This Project?

Introduces you to using APIs in Python.

Helps you understand basic user input/output handling.

Can be extended later into bigger projects (like web apps, mobile apps).

Future Enhancements (Optional Ideas):

Detect language automatically and display it.

Allow users to select the output language (not just English).

Build a web-based or GUI version using Flask, Django, or Tkinter.

Add error handling for network issues or wrong input.
184 changes: 184 additions & 0 deletions Quicklingo/QuickLingo.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"source": [
"**# QuickLingo: Type anything. Get English. No drama, just magic. 🎩✨**"
],
"metadata": {
"id": "CXAaIc3DXp7d"
}
},
{
"cell_type": "markdown",
"source": [
"Project Name:\n",
"**QuickLingo**\n",
"Overview:\n",
"This is a basic text translator program that takes user input in any language and translates it into English. It uses the googletrans library to access Google's translation API and outputs the translated English text instantly.\n",
"Main Features:\n",
"* Accepts text input from the user.\n",
"* Automatically translates the input into English.\n",
"* Displays the translated English text.\n",
"* Simple and easy-to-use console-based interface.\n",
"Tools & Technologies Used:\n",
"Python\n",
"googletrans library (googletrans==4.0.0-rc1 recommended)\n",
"*Why This Project?*\n",
"\n",
"Introduces you to using APIs in Python.\n",
"Helps you understand basic user input/output handling.\n",
"Can be extended later into bigger projects (like web apps, mobile apps).\n",
"*Future Enhancements (Optional Ideas):*\n",
"\n",
"Detect language automatically and display it.\n",
"Allow users to select the output language (not just English).\n",
"Build a web-based or GUI version using Flask, Django, or Tkinter.\n",
"Add error handling for network issues or wrong input."
],
"metadata": {
"id": "pZUN4_m4XvL3"
}
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "yLvfPMewRy0m",
"outputId": "61e085d0-0ecd-4916-d5d1-23c5397d4e0d"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Requirement already satisfied: googletrans in /usr/local/lib/python3.11/dist-packages (4.0.0rc1)\n",
"Requirement already satisfied: httpx==0.13.3 in /usr/local/lib/python3.11/dist-packages (from googletrans) (0.13.3)\n",
"Requirement already satisfied: certifi in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (2025.1.31)\n",
"Requirement already satisfied: hstspreload in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (2025.1.1)\n",
"Requirement already satisfied: sniffio in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (1.3.1)\n",
"Requirement already satisfied: chardet==3.* in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (3.0.4)\n",
"Requirement already satisfied: idna==2.* in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (2.10)\n",
"Requirement already satisfied: rfc3986<2,>=1.3 in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (1.5.0)\n",
"Requirement already satisfied: httpcore==0.9.* in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans) (0.9.1)\n",
"Requirement already satisfied: h11<0.10,>=0.8 in /usr/local/lib/python3.11/dist-packages (from httpcore==0.9.*->httpx==0.13.3->googletrans) (0.9.0)\n",
"Requirement already satisfied: h2==3.* in /usr/local/lib/python3.11/dist-packages (from httpcore==0.9.*->httpx==0.13.3->googletrans) (3.2.0)\n",
"Requirement already satisfied: hyperframe<6,>=5.2.0 in /usr/local/lib/python3.11/dist-packages (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans) (5.2.0)\n",
"Requirement already satisfied: hpack<4,>=3.0 in /usr/local/lib/python3.11/dist-packages (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans) (3.0.0)\n"
]
}
],
"source": [
"!pip install googletrans\n"
]
},
{
"cell_type": "code",
"source": [
"!pip install googletrans==4.0.0-rc1"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Wddzdbr9VPWj",
"outputId": "d5a65c7f-614a-4aa0-b451-5640ee22b06a"
},
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Requirement already satisfied: googletrans==4.0.0-rc1 in /usr/local/lib/python3.11/dist-packages (4.0.0rc1)\n",
"Requirement already satisfied: httpx==0.13.3 in /usr/local/lib/python3.11/dist-packages (from googletrans==4.0.0-rc1) (0.13.3)\n",
"Requirement already satisfied: certifi in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (2025.1.31)\n",
"Requirement already satisfied: hstspreload in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (2025.1.1)\n",
"Requirement already satisfied: sniffio in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (1.3.1)\n",
"Requirement already satisfied: chardet==3.* in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (3.0.4)\n",
"Requirement already satisfied: idna==2.* in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (2.10)\n",
"Requirement already satisfied: rfc3986<2,>=1.3 in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (1.5.0)\n",
"Requirement already satisfied: httpcore==0.9.* in /usr/local/lib/python3.11/dist-packages (from httpx==0.13.3->googletrans==4.0.0-rc1) (0.9.1)\n",
"Requirement already satisfied: h11<0.10,>=0.8 in /usr/local/lib/python3.11/dist-packages (from httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0-rc1) (0.9.0)\n",
"Requirement already satisfied: h2==3.* in /usr/local/lib/python3.11/dist-packages (from httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0-rc1) (3.2.0)\n",
"Requirement already satisfied: hyperframe<6,>=5.2.0 in /usr/local/lib/python3.11/dist-packages (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0-rc1) (5.2.0)\n",
"Requirement already satisfied: hpack<4,>=3.0 in /usr/local/lib/python3.11/dist-packages (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==4.0.0-rc1) (3.0.0)\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"from googletrans import Translator"
],
"metadata": {
"id": "onu_5vDPT2kL"
},
"execution_count": 3,
"outputs": []
},
{
"cell_type": "code",
"source": [
"translator=Translator()\n",
"txt=input(\"Enter something to be translated in english\")\n",
"output=translator.translate(txt,dest='en')\n",
"print(output.text)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "haEqJGSpT-JL",
"outputId": "adfa502d-5ad9-4df8-833b-b3f6f8c6c52c"
},
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Enter something to be translated in englishcomment allez vouscomment allez vous?\n",
"How are you how are you?\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "ly6Gc53xVOe_"
},
"execution_count": 4,
"outputs": []
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "_ATw-cbjUh_W"
},
"execution_count": 4,
"outputs": []
}
]
}