r/madeinpython • • 55m ago

7-state propagation + sparse $\mathbb{F}_7$ Exact-1 pre-processing for conflict auditing and causal traces

Thumbnail reddit.com
1 Upvotes

r/madeinpython • • 11h ago

Feedback on my python project

Thumbnail reddit.com
1 Upvotes

r/madeinpython • • 15h ago

made a termux tool that checks your code for llama.cpp 1.0 breaking changes before you get burned by them

1 Upvotes

llama.cpp hit 1.0 a few days ago and quietly dropped a bunch of stuff people's scripts depend on, a few functions gone, a flag removed, a header that moved. went looking for something that'd just scan my code and tell me what's gonna break and couldn't find anything, so i built it instead.

its called llamadoctor, one python file, no deps, runs fine in termux since thats literally where i wrote the whole thing on my phone. point it at a folder and it tells you whats broken, severity sorted, links to the actual github PR for each one so your not just trusting some random script. if theres an easy mechanical fix it offers to do it for you, asks first obviously, and refuses to touch anything if your git tree is dirty unless you force it.

install is just(after cloning ofc.):

pip install -e .

llamadoctor yourfolder

repo's here if anyone wants to poke at it or tell me what i missed, pretty sure theres edge cases i haven't hit yet since i only had my own stuff and some test projects to throw at it

github.com/hunzo1/llamadoctor


r/madeinpython • • 18h ago

I’m learning Python by building a tiny character model from scratch

Thumbnail
github.com
1 Upvotes

I’m documenting my AI-learning journey by turning the lessons into one small Python project. This is the first milestone where everything from the earlier lessons connects into a runnable program.

It learns character-to-character patterns from a short text file, then samples those learned counts to generate a continuation. I used only Python’s standard library. The output can be awkward, which is useful to see: it’s a simple statistical model, not a neural network and not a finished chatbot.

The GitHub repository is linked above. I’m also posting the lessons here: https://www.youtube.com/channel/UCWMERaecgKZmrqPUHLqWuow

I’d appreciate feedback from people who remember learning Python: is the project layout understandable, and what would you improve next?


r/madeinpython • • 19h ago

I built a lightning simulator in Python using Pygame!

Post image
1 Upvotes

Hey everyone!

I've been building a collection of physics and simulation projects lately, and I wanted to share my latest one: a real-time 2D Lightning Simulator built completely from scratch using Python and Pygame.

The main challenge was simulating realistic electrical discharge patterns and dynamic branching structures on a 2D canvas while keeping the rendering smooth.

What it does:

  • Real-time procedural lightning generation with dynamic branching.
  • Interactive controls to trigger electrical storms directly on the screen.
  • Lightweight architecture built purely with Python and Pygame.

I'll drop the link to the GitHub repository in the comments if anyone wants to check out the source code or test it out. I'd love to get your feedback on the visual rendering or any ideas for new features!