From aa6e7c0fa63a23251e7eb14a81cc9383079436c5 Mon Sep 17 00:00:00 2001 From: xavierfingers Date: Tue, 28 Oct 2025 16:56:20 -0600 Subject: [PATCH 1/7] Made some changes. --- MySQL_Databses.py | 9 +++++---- WeatherGUI.py | 4 ---- Web Socket.py | 1 - billing.py | 5 ++--- calc_area.py | 3 --- mapit.py | 1 - new.py | 10 ++-------- passwordGen.py | 7 ++----- sendemail.py | 3 --- sensors_information.py | 4 ---- sqlite_check.py | 1 - vowel remover function.py | 2 -- wikipedia.py | 5 ----- youtubedownloader.py | 6 ------ 14 files changed, 11 insertions(+), 50 deletions(-) diff --git a/MySQL_Databses.py b/MySQL_Databses.py index b9148ab708f..226a20e742c 100644 --- a/MySQL_Databses.py +++ b/MySQL_Databses.py @@ -1,12 +1,13 @@ import mysql.connector - # MySQl databses details - +host = input("Enter MySQL host: ") +username = input("Enter MySQL username: ") +password = input("Enter MySQL password: ") +db_name = input("Enter MySQL database: ") mydb = mysql.connector.connect( - host="0.0.0.0", user="root", passwd="", database="db_name" + host=host, user=username, passwd=password, database=db_name ) mycursor = mydb.cursor() - # Execute SQL Query =>>>> mycursor.execute("SQL Query") mycursor.execute("SELECT column FROM table") diff --git a/WeatherGUI.py b/WeatherGUI.py index 19b42994b84..62a2fef6bf8 100644 --- a/WeatherGUI.py +++ b/WeatherGUI.py @@ -1,14 +1,10 @@ import tkinter as tk import requests from bs4 import BeautifulSoup - url = "https://weather.com/en-IN/weather/today/l/32355ced66b7ce3ab7ccafb0a4f45f12e7c915bcf8454f712efa57474ba8d6c8" - root = tk.Tk() root.title("Weather") root.config(bg="white") - - def getWeather(): page = requests.get(url) soup = BeautifulSoup(page.content, "html.parser") diff --git a/Web Socket.py b/Web Socket.py index 8da7e224c00..9c3c91beafa 100644 --- a/Web Socket.py +++ b/Web Socket.py @@ -1,6 +1,5 @@ # Program to print a data & it's Metadata of online uploaded file using "socket". import socket - skt_c = socket.socket(socket.AF_INET, socket.SOCK_STREAM) skt_c.connect(("data.pr4e.org", 80)) link = "GET http://data.pr4e.org/intro-short.txt HTTP/1.0\r\n\r\n".encode() diff --git a/billing.py b/billing.py index c0368a18e49..451135cc91c 100644 --- a/billing.py +++ b/billing.py @@ -1,4 +1,4 @@ -updated_billing + items = {"apple": 5, "soap": 4, "soda": 6, "pie": 7, "cake": 20} total_price = 0 try: @@ -10,7 +10,7 @@ Press 5 for cake Press 6 for bill""") while True: - choice = int(input("enter your choice here..\n")) + choice = int(input("enter your choice here..")) if choice == 1: print("Apple added to the cart") total_price += items["apple"] @@ -37,7 +37,6 @@ print("Please enter the digits within the range 1-6..") except: print("enter only digits") - """ Code Explanation: A dictionary named items is created to store product names and their corresponding prices. diff --git a/calc_area.py b/calc_area.py index cf7f259e046..29fb370cd4a 100644 --- a/calc_area.py +++ b/calc_area.py @@ -1,8 +1,6 @@ # Author: PrajaktaSathe # Program to calculate the area of - square, rectangle, circle, and triangle - import math as m - - def main(): shape = int( input( @@ -38,7 +36,6 @@ def main(): print("You have selected wrong choice.") restart = input("Would you like to calculate the area of another object? Y/N : ") - if restart.lower().startswith("y"): main() elif restart.lower().startswith("n"): diff --git a/mapit.py b/mapit.py index 73d8666d7b7..27fb71a92fc 100644 --- a/mapit.py +++ b/mapit.py @@ -1,7 +1,6 @@ import sys import webbrowser import pyperclip - if len(sys.argv) > 1: address = " ".join(sys.argv[1:]) diff --git a/new.py b/new.py index 5a5f623242c..c5058551ec7 100644 --- a/new.py +++ b/new.py @@ -1,9 +1,3 @@ -def hello_world(): - """ - Prints a greeting message. - """ - print("Hello, world!") - -if __name__ == "__main__": - hello_world() +print("Hello, world!") + diff --git a/passwordGen.py b/passwordGen.py index b05990decc2..56ab3b462a1 100644 --- a/passwordGen.py +++ b/passwordGen.py @@ -1,12 +1,9 @@ import random - lChars = "abcdefghijklmnopqrstuvwxyz" uChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" digits = "1234567890" -specialChars = "!@#$%^&*-_+=" - +specialChars = "!@#$%^&*-_+=()[]" myPass = "" - # Generate 3 lowercase letters for _ in range(3): myPass += random.choice(lChars) @@ -23,4 +20,4 @@ for _ in range(2): myPass += random.choice(uChars) -print(myPass) # Output: 10-character password (e.g. "abc123!@AB") +print(myPass) diff --git a/sendemail.py b/sendemail.py index 12a01080ee7..070968157be 100644 --- a/sendemail.py +++ b/sendemail.py @@ -1,5 +1,4 @@ from __future__ import print_function - import base64 import mimetypes import os @@ -17,8 +16,6 @@ SCOPES = "https://www.googleapis.com/auth/gmail.send" CLIENT_SECRET_FILE = "client_secret.json" APPLICATION_NAME = "Gmail API Python Send Email" - - def get_credentials(): home_dir = os.path.expanduser("~") credential_dir = os.path.join(home_dir, ".credentials") diff --git a/sensors_information.py b/sensors_information.py index 0a233f26ab4..257b41e5a4b 100644 --- a/sensors_information.py +++ b/sensors_information.py @@ -2,12 +2,8 @@ import sys import socket import psutil - - def python_version(): return sys.version_info - - def ip_addresses(): hostname = socket.gethostname() addresses = socket.getaddrinfo(hostname, None) diff --git a/sqlite_check.py b/sqlite_check.py index 295274f8539..27e35ace641 100644 --- a/sqlite_check.py +++ b/sqlite_check.py @@ -1,5 +1,4 @@ from __future__ import print_function - import os import sqlite3 as lite import sys diff --git a/vowel remover function.py b/vowel remover function.py index 8d6467b57dc..5af2ff5f01e 100644 --- a/vowel remover function.py +++ b/vowel remover function.py @@ -4,6 +4,4 @@ def vowel_remover(text): if l.lower() not in "aeiou": string += l return string - - print(vowel_remover("hello world!")) diff --git a/wikipedia.py b/wikipedia.py index dd7a5f05321..7235894b66c 100644 --- a/wikipedia.py +++ b/wikipedia.py @@ -1,19 +1,14 @@ import wikipedia from tkinter import * from tkinter.messagebox import showinfo - win = Tk() # objek win.title("WIKIPEDIA") win.geometry("200x70") # function - - # function def search_wiki(): search = entry.get() Hasil = wikipedia.summary(search) showinfo("Hasil Pencarian", Hasil) - - label = Label(win, text="Wikipedia Search :") label.grid(row=0, column=0) diff --git a/youtubedownloader.py b/youtubedownloader.py index fdcbe89fed3..b5667950a27 100644 --- a/youtubedownloader.py +++ b/youtubedownloader.py @@ -1,14 +1,10 @@ from tkinter import Button, Entry, Label, Tk, filedialog, messagebox from threading import Thread from pytube import YouTube - - def threading(): # Call work function t1 = Thread(target=download) t1.start() - - def download(): try: url = YouTube(str(url_box.get())) @@ -30,7 +26,6 @@ def download(): root.geometry("780x500+200+200") root.configure(bg="olivedrab1") root.resizable(False, False) - # Label widgets introlable = Label( root, @@ -52,5 +47,4 @@ def download(): btn = Button(root, text="DOWNLOAD", font=("sans-serif", 25), command=threading) btn.place(x=270, y=240) - root.mainloop() From 2cc437739643cfbc7780c2e17b98a9442ead85c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:05:55 +0000 Subject: [PATCH 2/7] Bump ccxt from 4.5.12 to 4.5.14 Bumps [ccxt](https://github.com/ccxt/ccxt) from 4.5.12 to 4.5.14. - [Release notes](https://github.com/ccxt/ccxt/releases) - [Changelog](https://github.com/ccxt/ccxt/blob/master/exchanges.cfg) - [Commits](https://github.com/ccxt/ccxt/compare/v4.5.12...v4.5.14) --- updated-dependencies: - dependency-name: ccxt dependency-version: 4.5.14 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements_with_versions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index d8491abb79a..91f2a929807 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -81,7 +81,7 @@ Unidecode==1.4.0 Ball==0.2.9 pynput==1.8.1 gTTS==2.5.4 -ccxt==4.5.12 +ccxt==4.5.14 fitz==0.0.1.dev2 fastapi==0.120.0 Django==5.2.7 From ad9a2cbbedff5c1be65417d3b4aae411b59bd0c6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:06:24 +0000 Subject: [PATCH 3/7] Bump fastapi from 0.120.0 to 0.120.2 Bumps [fastapi](https://github.com/fastapi/fastapi) from 0.120.0 to 0.120.2. - [Release notes](https://github.com/fastapi/fastapi/releases) - [Commits](https://github.com/fastapi/fastapi/compare/0.120.0...0.120.2) --- updated-dependencies: - dependency-name: fastapi dependency-version: 0.120.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements_with_versions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index d8491abb79a..4cd35fe679b 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -83,7 +83,7 @@ pynput==1.8.1 gTTS==2.5.4 ccxt==4.5.12 fitz==0.0.1.dev2 -fastapi==0.120.0 +fastapi==0.120.2 Django==5.2.7 docx==0.2.4 matplotlib==3.10.7 From 3e240effcf889fe8d3459416073f36510c7183f4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Oct 2025 18:37:49 +0000 Subject: [PATCH 4/7] Bump aiohttp from 3.13.1 to 3.13.2 --- updated-dependencies: - dependency-name: aiohttp dependency-version: 3.13.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- async_downloader/requirements.txt | 2 +- requirements_with_versions.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/async_downloader/requirements.txt b/async_downloader/requirements.txt index 456777c9953..4a3a6b978bc 100644 --- a/async_downloader/requirements.txt +++ b/async_downloader/requirements.txt @@ -1 +1 @@ -aiohttp==3.13.1 +aiohttp==3.13.2 diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index 6ac95516ec3..3c691d18eab 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -1,5 +1,5 @@ pafy==0.5.5 -aiohttp==3.13.1 +aiohttp==3.13.2 fuzzywuzzy==0.18.0 hupper==1.12.1 seaborn==0.13.2 From c853f9741c275a565575b1d0815ca4251504b7d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:31:10 +0000 Subject: [PATCH 5/7] Bump psutil from 7.1.1 to 7.1.2 Bumps [psutil](https://github.com/giampaolo/psutil) from 7.1.1 to 7.1.2. - [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst) - [Commits](https://github.com/giampaolo/psutil/compare/release-7.1.1...release-7.1.2) --- updated-dependencies: - dependency-name: psutil dependency-version: 7.1.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements_with_versions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index 00d99d5609a..c7c0e674e53 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -101,7 +101,7 @@ pytest==8.4.2 qrcode==8.2 googletrans==4.0.2 slab==1.8.2 -psutil==7.1.1 +psutil==7.1.2 mediapipe==0.10.21 rich==14.2.0 httplib2==0.31.0 From 2b0b9eb555351d9b4f4343d4910352d5a1a0f659 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:31:22 +0000 Subject: [PATCH 6/7] Bump keras from 3.11.3 to 3.12.0 Bumps [keras](https://github.com/keras-team/keras) from 3.11.3 to 3.12.0. - [Release notes](https://github.com/keras-team/keras/releases) - [Commits](https://github.com/keras-team/keras/compare/v3.11.3...v3.12.0) --- updated-dependencies: - dependency-name: keras dependency-version: 3.12.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements_with_versions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index 00d99d5609a..0a3a84e6732 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -41,7 +41,7 @@ tornado==6.5.2 obs==0.0.0 todo==0.1 oauth2client==4.1.3 -keras==3.11.3 +keras==3.12.0 pymongo==4.15.3 playsound==1.3.0 pyttsx3==2.99 From f3b134a639da8fe28e4715f68a63602539a25a62 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:31:33 +0000 Subject: [PATCH 7/7] Bump google-api-python-client from 2.185.0 to 2.186.0 Bumps [google-api-python-client](https://github.com/googleapis/google-api-python-client) from 2.185.0 to 2.186.0. - [Release notes](https://github.com/googleapis/google-api-python-client/releases) - [Commits](https://github.com/googleapis/google-api-python-client/compare/v2.185.0...v2.186.0) --- updated-dependencies: - dependency-name: google-api-python-client dependency-version: 2.186.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements_with_versions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index 00d99d5609a..e3895586535 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -58,7 +58,7 @@ requests-mock==1.12.1 pyglet==2.1.9 urllib3==2.5.0 thirdai==0.9.33 -google-api-python-client==2.185.0 +google-api-python-client==2.186.0 sound==0.1.0 xlwt==1.3.0 pygame==2.6.1