r/pythoncoding • • Sep 30 '15

Finding Wally

Thumbnail
mahotas.readthedocs.org
2 Upvotes

r/pythoncoding • • Sep 10 '15

PyPy warmup improvements

Thumbnail
morepypy.blogspot.com
2 Upvotes

r/pythoncoding • • Jul 16 '15

The Art of Subclassing

Thumbnail
youtube.com
2 Upvotes

r/pythoncoding • • Jul 06 '15

Python 3.5.0b3 is out

Thumbnail
python.org
2 Upvotes

r/pythoncoding • • Jan 27 '15

Starting A Python Project The Right Way

Thumbnail
jeffknupp.com
2 Upvotes

r/pythoncoding • • Apr 04 '26

/r/PythonCoding monthly "What are you working on?" thread

1 Upvotes

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 • • Jan 11 '26

Reading CPython bytecode with dis: stack execution walkthrough (Length: 3:43)

Thumbnail
youtu.be
1 Upvotes

r/pythoncoding • • Dec 10 '25

Async web scraping framework on top of Rust

Thumbnail
github.com
1 Upvotes

r/pythoncoding • • Nov 04 '25

/r/PythonCoding monthly "What are you working on?" thread

1 Upvotes

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 • • Oct 17 '25

Cronboard - A terminal-based dashboard for managing cron jobs locally and on servers

Thumbnail
github.com
1 Upvotes

Hello everyone!

I’m excited to introduce my new project: Cronboard.

Cronboard is a terminal application that allows you to manage and schedule cronjobs on local and remote servers. With Cronboard, you can easily add, edit, and delete cronjobs, as well as view their status.

Features

  • Check cron jobs

  • Create cron jobs with validation and human-readable feedback

  • Pause and resume cron jobs

  • Edit existing cron jobs

  • Delete cron jobs

  • View formatted last and next run times

  • Connect to servers using SSH

The project is still early in development, so you may encounter bugs and things that could be improved.

Repo: https://github.com/antoniorodr/cronboard

Your feedback ir very important!

Thanks!


r/pythoncoding • • Jul 27 '25

From Python to Kotlin: Why We Rewrote Our Scraping Framework in Kotlin

Thumbnail
reddit.com
1 Upvotes

r/pythoncoding • • Jul 22 '25

Making 3D videos in under 30 lines of python

Thumbnail
danielhabib.substack.com
1 Upvotes

r/pythoncoding • • Apr 24 '25

Trying to find the most efficient way to sort arbitrary triangles (output of a delaunay tessalation) so I can generate normals. Trying to make the index ordering fast

1 Upvotes

Assume I've got a list of points like this:

((249404, 3, 3),
array([[     2765.1758,      1363.9101,         0.0000],
        [     2764.3564,      1361.4265,         0.0000],
        [     2765.8918,      1361.3191,         0.0000]]))

I want to sort each triangle's set of three points so they're ordered counterclockwise. How do I do this efficiently in numpy?

def ordertri(testri):
    # find x center
    xs = testri[:,0]
    mx = np.mean(xs)

    # find y center
    ys = testri[:,1]
    my = np.mean(ys)

    # calculate angle around center
    degs = np.degrees(np.arctan2(my-ys, mx-xs))

    # sort by angle
    mind = min(degs)
    maxd = max(degs)

    # filter sort
    #mindegs = degs == mind 
    #maxdegs = degs == maxd
    #meddegs = ~(mindegs | maxdegs)
    #offs = np.array([0, 1, 2])
    #pos = np.array([offs[mindegs], offs[meddegs], offs[maxdegs]]).flatten()
    for i in [0, 1, 2]:
        if degs[i] == mind:
            mindegs = i
        elif degs[i] == maxd:
            maxdegs = i
        else:
            middegs = i

    # offsets into testtri for min, mid, max angles
    return [mindegs, middegs, maxdegs]

r/pythoncoding • • Feb 19 '25

OCR-Resistant CAPTCHA Generator Using Pulfrich Effect (Python PoC)

Thumbnail
reddit.com
1 Upvotes

r/pythoncoding • • Jan 16 '25

ChromeDriver Issue

1 Upvotes

I’m trying to run the “chromedriver” command on python (selenium). I have the chrome.exe in a folder that I can successfully path on Python, but I can’t fire the “chromedriver” command. I have it blocked as it gets considered suspicious/malware and can’t find a way to disable the block on it. Hopefully someone can help me ✌🏼


r/pythoncoding • • Jan 11 '25

Open source Flux image generation Discord bot with local LLM-based chat

1 Upvotes

Hello everyone. I wanted to share this Discord bot I've been working on called Soupy. It's basically a fun little project that lets you generate images using Flux, and also engage in LLM-based chat. It's written in Python. I'm just a hobbyist coder doing this for fun, but I'm happy to help if you run into issues. This is my first and only project. It's seen many iterations throughout the years.

The main thing Soupy does is generate images using the Flux model - just type /flux with your prompt and it'll create something for you. There are some neat buttons under each image that let you remix it with a new seed, make the prompt fancier, or edit it in various ways. You can also hit "random" and it'll generate a completely random prompt using a combination of themes, characters, and styles (which you can customize if you want). It does this by combining keywords from included files, and then sends those words to the LLM for elaboration. It works extremely well and just spamming the Random button is fun.

The bot also acts as a chatbot using LM Studio as the backend. You can just say "soup" or "soupy" and start chatting, and it also responds randomly at times. It's pretty sarcastic and sometimes jumps into conversations on its own. The personality is set in the .env. It follows the contents of urls/links in the chat, so it's aware of what's going on in the chat. Currently, it reads the last 25 messages of chat history as context for its responses. In the repo, you can see an example of it in action.

There's also a /search command that scrapes Google (using BeautifulSoup, not Google's API) and summarizes it, plus some fun stuff like magic 8-ball, magic 9-ball (LLM powered and weird). And some other little stuff.

You'll need a decent GPU (ideally 24GB VRAM, but you might get by with less) to run the image generation smoothly. The chat part uses LM Studio - I use Lexi Llama Uncensored but you can use whatever model you want. Setup is pretty straightforward: just clone the repo, set up your .env file with your Discord token and local URLs, install dependencies, and you're good to go.

I've got a few different versions in the repo depending on what you want to do. The main new updated one (soupy-remastered.py) does everything locally, but there's also versions that use OpenAI's API or add different features like user profiles. They use OpenAI's API, so use them if you want. But they're also more complicated to setup.

Here's the repo if you want to check it out: https://github.com/sneezeparty/soupy

Let me know if you try it out! And if you have any ideas for making it better, I'm all ears.


r/pythoncoding • • Jun 22 '24

reladiff: High-performance diffing of large datasets across databases

Thumbnail
github.com
1 Upvotes

r/pythoncoding • • Feb 09 '24

Any working library to get sports real-time data on Python?

1 Upvotes

Hello everyone, I am looking for a python library that allows to fetch data from sports like football, NBA, crickets etc in real-time. I actually need only result. If I can get more stats, better. Thank you all!


r/pythoncoding • • Jan 13 '24

MAC: No fix for TKinter on Sonoma, need new GUI builder.

1 Upvotes

I've stopped programming on my software 1 month ago since that problem with Tkinter on Sonoma has not been fixed yet.

I have going to write a new software this week. I need something to replace Tkinter for y interface.

Any ideas ? What is the best option right now ?

It needs a basic interface, nothing fancy.

Thanks


r/pythoncoding • • Jan 09 '24

Automating Subtitle for Videos

Thumbnail self.learnpython
1 Upvotes

r/pythoncoding • • Dec 07 '23

Hack For Good: $5,000 to Toys for Tots on your behalf - WebAssembly Hackathon

Thumbnail dylibso.com
1 Upvotes

r/pythoncoding • • Oct 08 '23

Seeking Python Friends to Build Projects With

1 Upvotes

Hey everyone!

I've been learning Python for a couple of months now on my own. I created a simple Python projects in the past but I think it'll be awesome to work with someone who is learning too. My coding skills can be improve and maybe you need a coding friend too.

Please reach out and we can create projects together. You can be a beginner or advanced. It doesn't matter.


r/pythoncoding • • Aug 04 '23

I'm building local-first semantic code search engine (local AI alternative to grep)

Thumbnail
github.com
1 Upvotes

stocking crown grey doll paint abounding chop plant edge employ

This post was mass deleted and anonymized with Redact


r/pythoncoding • • Jul 12 '23

Python Anti-Patterns in Authorization

1 Upvotes

Authorization isn't a core Python feature, but the growing usage of Python as an application platform makes it crucial for many apps.

We put together our tips for the best-practices and the way to avoid the common anti-patterns here: https://io.permit.io/python-authz-best-practices

We'll be happy to any thoughts, comments, or more tricks/treats you have in mind.