From 1ff85215ae968c2cb1b61358ad9112279db49680 Mon Sep 17 00:00:00 2001 From: Sakshi Srivastava Date: Sun, 27 Apr 2025 19:00:30 +0530 Subject: [PATCH 1/2] Create Details --- Quicklingo/Details | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Quicklingo/Details diff --git a/Quicklingo/Details b/Quicklingo/Details new file mode 100644 index 0000000..9fd3eb0 --- /dev/null +++ b/Quicklingo/Details @@ -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. From 911aff286f70aa2538fed10a91198ea32c79fc2a Mon Sep 17 00:00:00 2001 From: Sakshi Srivastava Date: Sun, 27 Apr 2025 19:00:57 +0530 Subject: [PATCH 2/2] Add files via upload --- Quicklingo/QuickLingo.ipynb | 184 ++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 Quicklingo/QuickLingo.ipynb diff --git a/Quicklingo/QuickLingo.ipynb b/Quicklingo/QuickLingo.ipynb new file mode 100644 index 0000000..5f2ba7d --- /dev/null +++ b/Quicklingo/QuickLingo.ipynb @@ -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": [] + } + ] +} \ No newline at end of file