r/pythonhelp • u/briso_tali_x • Mar 07 '26
python curses module problem
r/pythonhelp • u/Objective_Yak584 • Mar 05 '26
Is it alright to use frameworks or libraries when programming in Python, and also use ChatGPT when dealing with more complex problems, even if you already understand the basics of Python?
For example, I understand Python syntax and concepts, but sometimes for more complex things I look at documentation, libraries, or ask ChatGPT for help.
Is this considered normal practice, or should a programmer try to solve everything completely on their own?
r/pythonhelp • u/Mixtay • Mar 05 '26
r/pythonhelp • u/R-Retr0-0 • Mar 04 '26
I recently found an old project of mine on a usb drive and decided to finish it. I completed it today and uploaded it on Github. I won't list all the app details here, but you can find everything in the repository. I'm looking for reviews, bug reports, and any advice on how to improve it.
Github link: https://github.com/R-Retr0-0/ChatBox
r/pythonhelp • u/Mixtay • Mar 01 '26
r/pythonhelp • u/Mixtay • Feb 26 '26
r/pythonhelp • u/Money-Rare • Feb 21 '26
Finally i got an exe file for my first python app and it works well but...folder size is 1.7 GB.. is there any way to get it a little lighter?i compiled it with pyinstaller
r/pythonhelp • u/ResolutionUnhappy905 • Feb 19 '26
Hi everyone, I’m aiming for a data analytics role and want to learn Python specifically for analytics (Pandas, NumPy, EDA, etc.). I have basic programming knowledge. I have completed SQL 30 hrs course by 'Data with Baraa' and practicing SQL questions on DataLemur. Can you recommend a good YouTube course or playlist that is practical and job-oriented? Thanks in advance!
r/pythonhelp • u/Appropriate-Car-1234 • Feb 19 '26
Hi, I am on a project of a python cookie logger (personal project, i don't distribute it). Here what gone wrong. I won't explain what the code do but I can give snippet of it.
The problem? The Playwright chromium works normally when I run the main.py file. But when I execute and build it into a .EXE file through this command:
pyinstaller --noconfirm --onefile --windowed --clean --add-data "icon.png;." --add-data "icon.ico;." --icon "icon.ico" --collect-all playwright --name "ShiroAM[BETA]" main.pyIt send the error: It seems playwright is just installed or updated, use the command playwright install to install new browser.
To this point you guys might say I I forgot to add a fallsafe to playwright browser downloading but I do have this function to download it at the very beginning:
try:
subprocess.run(["playwright", "--version"], capture_output=True, check=True)
except (subprocess.CalledProcessError, FileNotFoundError):
print("Downloading Chromium browser for Playwright...")
subprocess.run([sys.executable, "-m", "playwright", "install", "chromium"], capture_output=True)The error log doesn't show anything else, and when I run with python to debug, it just magically fix itself, so the bug ONLY exist in the .exe file.
Thanks for your time
r/pythonhelp • u/Parking_Engine_9803 • Feb 18 '26
r/pythonhelp • u/casquinhamista • Feb 13 '26
r/pythonhelp • u/DumbDumbplaysvr • Feb 12 '26
r/pythonhelp • u/Mixtay • Feb 09 '26
r/pythonhelp • u/Few_Push_8242 • Feb 09 '26
Hey guys, i am a student in india and pls forgive me for asking such dumb questions. i was making a website in python Flask, HTML CSS and i was using the Google Custom Search API key to give live data to My model. It was working perfectly but the next when i opened it suddenly i start getting error messages. The error message shows this: {
"error": {
"code": 403,
"message": "This project does not have the access to Custom Search JSON API.",
"errors": [
{
"message": "This project does not have the access to Custom Search JSON API.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
} But when i go to cloud console to check it shows that my API is enabled and has 1000 queries per day limit of which i have utilized 0.5%. There are no restrictions on my API too. My service account also has authorization. Even my search engine is enabled and has access to all sites. I doubled the check and matched the API keys too. I have selected the correct project also. Pls help me, i have to submit it tomrw. I have worked really hard on this. I dont know whats wrong.
r/pythonhelp • u/Able_Energy_9926 • Feb 03 '26
Can anybody share some tips about python or overall programing
r/pythonhelp • u/Sea-Oven-7560 • Feb 03 '26
So I'm calling this function from another function and it doesn't seem to return. What Am I missing (yes I know it's sloppy)?
Thanks in advance.
def spawn_iscsia():
# Create a new top-level window
top = ttk.Toplevel(app)
top.title("Create ISCSI A ")
top.geometry("600x300") # optional size
# Example contents in the spawned window
L_iscsia = ttk.Label(top, text="ISCSI A IP Address :")
L_iscsia.place(x=10,y=50)
L_iscsia_sub = ttk.Label(top, text="ISCSI A Subnet :")
L_iscsia_sub.place(x=10,y=100)
E_iscsia = ttk.Entry(top, width=30)
E_iscsia.place(x=180,y=50)
E_iscsia_sub = ttk.Entry(top, width=30)
E_iscsia_sub.place(x=180,y=100)
def on_close():
z=E_iscsia.get()
q=E_iscsia_sub.get()
if len(z) != 0:
x=is_valid_ip(z)
if x == True:
ISCSIA_ip =z
print("Using ",z," for ISCSI A IP Address")
if q == False:
ISCSIA_ip ="10.0.0.1"
print("Bad ISCSI A IP Address, Using 10.0.0.1")
elif len(z):
ISCSIA_ip ="10.0.0.1"
if len(q) != 0:
x=is_valid_ip(q)
if x == True:
ISCSIA_sub =q
print("Using ",q," for ISCSI A Subnet Mask")
if q == False:
ISCSIA_sub ="255.255.255.0"
print("Bad ISCSI A subnet Mask, Using 255.255.255.0")
elif len(q) == 0:
ISCSIA_sub ="255.255.255.0"
print("Bad ISCSI A subnet Mask, Using 255.255.255.0")
top.destroy()
return
close_btn = ttk.Button(top, text="OK", command=on_close)
close_btn.place(x=200,y=250)
s
r/pythonhelp • u/cyber-bunker • Feb 03 '26
Hi everyone!
I want to share Django Orbit, an observability tool I've been building. It follows a "Satellite" philosophy: it observes your application from a distance (on its own /orbit/ URL) without interfering with your DOM or CSS. This makes it perfect for REST APIs, Headless Django, or HTMX projects.
Full Feature List:
🚀 Core Tracking: HTTP Requests (Headers/Body), Python Logs, and full Exception tracebacks.
🗄️ Database Deep-Dive: SQL recording with N+1 detection, slow query alerts, and Atomic Transaction tracking (commits/rollbacks).
⏰ Async Task Monitoring: First-class support for Celery, Django-Q, RQ, and APScheduler.
🔴 Redis & Cache: Monitor hits/misses and raw Redis operations (GET, SET, DEL).
📁 Storage Operations: Track file reads/writes/deletes (Local and S3).
📧 Communications: Outgoing API request monitoring (HTTP Client), Mail capture, and Django Signals dispatch.
🛡️ Security & Logic: Authorization check auditing (Gates/Permissions).
📊 Mission Control: A real-time dashboard with Apdex scores, performance percentiles, and a "Health System" that ensures Orbit never crashes your main app.
Architecture: Built with a "Plug-and-Play" system. Each watcher is independent and features graceful degradation—if a module fails, it auto-disables while the rest of your app and Orbit keep running.
GitHub: https://github.com/astro-stack/django-orbit
I’m looking for feedback from fellow Django devs. Does this non-intrusive approach fit your workflow better than traditional toolbars?
r/pythonhelp • u/Next-Job2478 • Feb 03 '26
So I've been working on my latest project called GitGarden (https://github.com/ezraaslan/GitGarden)
I want to add a feature where branches in the git repository create real branches on the drawn plants. To do this, I check if each node has multiple parents or children. I have exactly one split/merge in my repo, so I will know if it is working correctly. MERGE prints once at the right time, but I cannot print SPLIT. What have I done wrong?
is_merge = len(commit["parents"]) > 1
is_split = len(children[commit["hash"]]) > 1
if is_merge:
canvas[y][x] = f"{GREEN}MERGE"
elif is_split:
canvas[y][x] = f"{GREEN}SPLIT" I'm not sure how much code someone needs to answer this question. This is my first post on this subreddit. I can provide more snippets, and all my code is on the Github repo.
Thanks in advance!
r/pythonhelp • u/coolgamemaker • Feb 02 '26
how to compile a graphical Python file (with the Ursina engine) into a .exe using pyinstaller
r/pythonhelp • u/kx667 • Feb 01 '26
Hey everyone
I think I have a solid grasp of Python fundamentals (syntax, basic data structures, and a bit of algorithms). I haven’t really used any libraries yet, but I’ve experimented some concepts, like object-oriented programming.
I’m looking for project ideas that
- take a decent amount of time
- force me to do research and learn new concepts
- are still achievable for someone with the basics of Python
- help me improve my algorithmic thinking along the way
I’m not looking for a very simple beginner project, but rather a challenging and educational project that I can work on solo and learn from as I go.
If you have any project ideas or personal experiences with projects that helped you level up, I’d really appreciate it.