Reddit » Python
6,560 FOLLOWERS
Read and share news about the python programming language, or if you have questions or are a newbie user, then this Reddit community is your place to find discussions, resources, and tutorials related to python.
Reddit » Python
1h ago
Hey everyone, I've been encountering a problem when trying to log into ChatGPT. It's frustrating because every time I switch tabs or navigate, I have to log in again. Is anyone else experiencing this issue? I'm really not a fan of these constant interruptions.
submitted by /u/Additional-Dog-3337
[visit reddit] [comments ..read more
Reddit » Python
1h ago
Hello everyone., on today new scraper I created the python version for the zillow scraper.
https://github.com/johnbalvin/pyzill
What My Project Does
The library will get zillow listings and details.
I didn't created a defined structured like on the Go version just because it's not as easy to maintain this kind of projects on python like on Go.
It is made on pure python with HTTP requests, so no selenium, puppeteer, playwright etc. or none of those automation libraries that I hate.
Target Audience
This project target could be real state agents probably, so lets say you want to track the real p ..read more
Reddit » Python
3h ago
Weekly Thread: Beginner Questions ?
Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.
How it Works:
Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
Community Support: Get answers and advice from the community.
Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.
Guidelines:
This thread is specifically for beginner questions. For more advanced queries, check out our Advanced Questions Thread.
Recommended Resources:
If you don't re ..read more
Reddit » Python
9h ago
Recently, I've been playing ctf games from OverTheWire (bandit, leviathan, narnia, etc...)
The point in bringing up OTW is to ask if there is a genuine website or platform just like OTW but for Python exercises and/projects. All I'm stumbling upon are commercial stuff that give no life nor they have their own original essence.
I hope this post is found relevant to Python.
Thanks in advance.
submitted by /u/theNotoriousJew
[visit reddit] [comments ..read more
Reddit » Python
12h ago
I was wondering if anyone has come across anything like https://github.com/a-h/templ or https://hono.dev/guides/jsx, but for python. For context, I am familiar with jinja2, mako, etc. but find them to be unintuitive due to the loose coupling of logic (ex: database calls) and templating (ex: generating a list from the database results). Therefore, I am looking for a "inline" templating solution.
submitted by /u/TheRealMrMatt
[visit reddit] [comments ..read more
Reddit » Python
12h ago
I developed a very powerful Python Config Management Tool. It can make your json config as powerful as python code. And very friendly to humans.
The most attractive feature is that it will analyze Python code and json config file in real time, provide document display, parameter completion, and goto Python definition from the json config. (Powered by LSP)
Similar or better config inheritance, parameter reference and parameter grid search like hydra
Data validation similar to pydantic, and the ability to convert dataclass to json-schema
This project is still in its early stages, and everyone ..read more
Reddit » Python
15h ago
I took intro to python this past semester and wondering good ways to practice over the summer. I’m willing to pay a bit for a course or smth. Ended the semester leaning abt files and classes, and could use more work on both of those. Also interested in data science? Lmk if you guys know good ways to get better over the summer, I find coding so fun
submitted by /u/yourmommys
[visit reddit] [comments ..read more
Reddit » Python
18h ago
Take the excellent nuitka, compile python code to C, turn it into web assembly, and you got Python in the browser, without the usual runtime overhead:
https://wasmer.io/posts/py2wasm-a-python-to-wasm-compiler
While the doc states you can get this effect by doing:
pip install py2wasm py2wasm myprogram.py -o myprogram.wasm
wasmer run myprogram.wasm
You still need the wasmer WASM runtime (curl https://get.wasmer.io -sSfL | sh for Unix users, iwr https://win.wasmer.io -useb | iex for Windows user with Powershell), however. But more than that, since you need nuikta, it means you need a C compil ..read more
Reddit » Python
20h ago
I'm trying to make this minesweeper bot using selenium.
github link - https://github.com/cs22b047/minesweeper_bot/
right now i'm using a basic algorithm that checks if the empty places around a cell is equal to cell value and places flags. But this approach cannot completly solve the game, the bot gets stuck at some point. I'm looking for some ideas on a better algorithm that completes the game.
submitted by /u/_dwightshrute
[visit reddit] [comments ..read more
Reddit » Python
20h ago
We have a service at work built in Java and im being asked to rebuild it in Python. I've never built an internal service and im not sure if I should be using a web framework like FastAPI or something like Thrift.
My service will primarily be consumed by other services without my organization and offline jobs. It needs to be really fast but simple to develop on also.
Using FastAPI would be easy, since you just define a route and return json but im not sure if that makes sense if the majority of consumers or other internal services?
submitted by /u/notDonaldGlover2
[visit reddit] [comments ..read more