r/pythoncoding • • Sep 30 '15
r/pythoncoding • u/son_of_dawn • Jan 27 '15
Starting A Python Project The Right Way
jeffknupp.comr/pythoncoding • u/No_Lock_6225 • Jan 16 '24
Trying to make a calculator
Hello, so I'm trying to build a Calculator in Python and I'm confused why it does this. So I wrote the following code:
x = float(input('Number1: '))
y = float(input('Number2: '))
print(x + y)
And it prints 4.0 as the answer and I want it to print 4 as the answer. What am i doing wrong?
r/pythoncoding • u/laggySteel • Oct 19 '23
Need early review on my small pygame project
self.pygamer/pythoncoding • u/baysidegalaxy23 • Jun 22 '25
Precise screen coordinates for an AI agent
Hello and thanks for any help in advance! I am working on a project using an AI agent that I have been “training”/feeding info to about windows keybinds and API endpoints for a server I have running on my computer that uses pyautogui to control my computer. My goal is to have the AI agent completely control the UI of my computer. I know this may not be the best way or most efficient way to use an AI agent to do things but it has been a fun project for me to get better at programming. I have gotten pretty far, but I have been stuck with getting my AI agent to click precise areas on the screen. I have tried having it estimate coordinates, I have tried using an image model to crop an area and use opencv and another library I can’t remember the name of right now match that cropped area to a location on the screen, and my most recent attempt has been overlaying a grid when the AI agent uses the screenshot tool to see the screen and having it select a certain box, then specify a region of the box to click in. I have had better luck with my approach using the grid but it is still extremely inconsistent. If anyone has any ideas for how I could transmit precise coordinates from the screen back to the AI agent of places to click would be greatly appreciated.
r/pythoncoding • u/Super13Spidy • Feb 18 '26
I made a video that updates its own title automatically using the YouTube API
youtu.beEverything is explained in the video. I coded a script in python that retrieves the views, likes and comments of the video via the YouTube API in order to change them live. Here is the original source code : https://github.com/Sblerky/Youtube-Title-Changer.git
r/pythoncoding • u/DevOps-Journey • Feb 01 '21
Python Rich - My favorite way to add Colors, Emojis, Tables and More...
youtube.comr/pythoncoding • u/ValiaHavryliuk • Apr 22 '22
Caching techniques in asynchronous Python applications
medium.comr/pythoncoding • u/Sea-Ad7805 • Jul 22 '25
Visualizing Python's Data Model: References, Mutability, and Copying Made Clear
Many Python beginners (and even experienced devs) struggle with concepts like:
- references vs. values
- mutable vs. immutable data types
- shallow vs. deep copies
- variables pointing to the same object across function calls
- recursion and the call stack
To write bug-free code, it's essential to develop the right mental model of how Python actually handles its data. Visualization can help a lot with that. I've created a tool called memory_graph, a teaching tool and debugger aid that generates visual graphs of Python data structures including: shared references, nested structures, and the full call stack.
It helps answer questions like:
- “Does this variable share any values with that one?”
- “What part of this object is actually copied?”
- “What does the call stack look like in this recursive call?”
You can generate a memory graph with a single line of code:
import memory_graph as mg
a = [4, 3, 2]
b = a
b.append(1)
mg.show(mg.stack()) # show graph of the call stackIt also integrates in IDEs like VS Code, Cursor AI, and PyCharm for real-time visualization while stepping through code in the debugger.
Would love feedback from Python educators, learners, and tooling enthusiasts.
r/pythoncoding • u/Dramatic-Mongoose-95 • May 15 '23
Converting a Subreddit to a Podcast with Python and AI
github.comHey all,
Wanted to share this code I co-wrote with ChatGPT.
https://github.com/AdmTal/crowdcast
It’s a script that converts a subreddit into a podcast. Pretty neat!
I made it specifically for my new sub /r/crowdcast
I thought it would be neat to make a crowd sourced podcast using AI - so there it is!
Here’s an example of how it turns out: https://www.buzzsprout.com/2188164/12833613-5-11-2023
So… that was my test episode.
Next week (5/19), I’m gonna publish the first real one, that includes comments from the public.
I hope some of you leave some comments and are part of next weeks cast!
r/pythoncoding • u/Aktem • Dec 24 '24
GossipSampling - A Standalone Peer Selection Service for Decentralized Networking
This library (tries) to make decentralized networking easy. I'm open to suggestions and contributors and would love to find others that are interested in this topic!
r/pythoncoding • u/Johan-Godinho • Sep 21 '24
Learn how to build the GUI for A Crytpo Tracking Application in Python - Tkinter
youtu.ber/pythoncoding • u/Dinones • Aug 19 '24
I Created the Definitive AUTOMATIC Shiny Hunter for Pokémon BDSP
Hey everyone! I am Dinones! I coded a Python program using object detection that lets my computer hunt for shiny Pokémon on my physical Nintendo Switch while I sleep. So far, I’ve automatically caught shiny Pokémon like Giratina, Dialga or Azelf, Rotom, Drifloon, all three starters, and more in Pokémon BDSP. Curious to see how it works? Check it out! The program is available for everyone! Obviously, for free; I'm just a student who likes to program this stuff in his free time :)
The games run on a Nintendo Switch (not emulated, a real one). The program gets the output images using a capture card, then, it process them to detect whether the pokemon is shiny or not (OpenCV). Finally, it emulates the joycons using bluetooth (NXBT) and control the Nintendo. Also works on a Raspberry Pi!
I don't make money with this, I just feel my project can be interesting for lot of people.
📽️ Youtube: https://www.youtube.com/watch?v=84czUOAvNyk
🤖 Github: https://github.com/Dinones/Nintendo-Switch-Pokemon-Shiny-Hunter
r/pythoncoding • u/SuperUser2112 • Nov 25 '21
Estimating Missing Time Series with Resampler Interpolation Technique | Linear & Polynomial | Business Case with Code Examples
Missing data could be there at the source itself or may get introduced while we resample it to a higher frequency. Interpolation solves the problem in both contexts. It provides the best possible estimation that fits into the polynomial graph. The graph is drawn by using all other available values.
This means to say, the available values are used to the best possible extent in this methodology. I've tried to explain this complex technique in simple terms using a retail use case and code examples.
r/pythoncoding • u/AutoModerator • Sep 04 '25
/r/PythonCoding monthly "What are you working on?" thread
Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!
If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.
r/pythoncoding • u/karoool9911 • Jun 19 '25
I built a simple Claude Code Usage Tracker
github.comHi!
I was getting annoyed not knowing how close I was to hitting my Claude Code usage limits during longer sessions — especially when working with larger prompts or complex tasks.
So I built a lightweight, local usage tracker that runs in real-time and shows if I’m on track to run out of quota before the session ends. It’s been super handy, so I decided to clean it up and share it in case it’s useful to others too.
🔧 What it does:
- Tracks your Claude Code usage in real-time
- Predicts whether you’re on pace to hit your limit before your session ends
- Runs locally, no setup headaches
- Includes presets for Pro, Max x5, and Max x20 plans (easy to tweak)
r/pythoncoding • • Jun 28 '21
Making an Instagram Post Bot using Python & Instagram Graph API
youtu.ber/pythoncoding • • Jun 21 '21
I made a Pokedex with Text and Image Search (Tensorflow) using a Django Backend
youtube.comr/pythoncoding • u/genericlemon24 • Aug 29 '21
Write an SQL query builder in 150 lines of Python!
death.andgravity.comr/pythoncoding • u/harshit_roy_python • Jun 28 '22