r/Python • u/Redstonedust653 It works on my machine • Sep 04 '25
Showcase I made a chat program
What my project does
It's a simple socket-based python messaging "app" that works on linux. I don't know if it works on windows, so comment if it does
Target audience
I dunno, if you want a template for a chat program you can expand on this? I just made it to mess with socket
Comparison
I mean, there are a lot of online tutorials for stuff like this, but i dunno, this one has a bit more than most of the tutorials.
Anyways, here's a link to the github repository.
enjoy!
NOTE:
Don't read the comments! look at the repository. if you have issues with some part of it, LEAVE AN ISSUE ON THE REPOSITORY! ALL COMMENTS WILL BECOME OUTDATED EVERY TIME I PATCH IT.
SEVERAL OF THE ISSUES IN COMMENTS HAVE BEEN FIXED.
BUT PLEASE DON'T COMMENT ISSUES.
17
u/Birnenmacht Sep 04 '25
also,
dont mess with the users terminal, let them resize it if they want. doing it „for them“ feels invasive
dont use os.system, use subprocess.run, and only call other processes if you have to.
use a formatter like black or ruff
type hint your code and check it with mypy or pyright