Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
I built QRPorter — local Wi-Fi file transfer via QR (PC Mobile)

Hi everyone, I built **QRPorter**, a small open-source utility that moves files between desktop and mobile over your LAN/Wi-Fi using QR codes. No cloud, no mobile app, no accounts — just scan & transfer.

# What it does

* **PC → Mobile file transfer:** select a file on your desktop, generate a QR code, scan with your phone and download the file in the phone browser.
* **Mobile → PC file transfer:** scan the QR on the PC, open the link on your phone, upload a file from the phone and it’s saved on the PC.

# Target audience

* Developers, students, and office users who frequently move screenshots, small media or documents between phone PC.
* Privacy-conscious users who want transfers to stay on their LAN/Wi-Fi (no third-party servers).
* Anyone who wants a dead-simple cross-device transfer without installing mobile apps.

# Comparison

* **No extra mobile apps / accounts** — works via the phone’s browser and the desktop app.
* **Local-first** — traffic stays on your Wi-Fi/LAN (no cloud).
* **Cross-platform** — desktop UI + web interface works with modern mobile browsers (Windows / macOS / Linux / iOS / Android).

# Requirements & tested platforms

* **Python 3.12+** and `pip`.
* Tested on **Windows 11** and **Linux**; macOS should work.
*

/r/Python
https://redd.it/1nfupw4
Sunday Daily Thread: What's everyone working on this week?

# Weekly Thread: What's Everyone Working On This Week? 🛠️

Hello /r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!

## How it Works:

1. Show & Tell: Share your current projects, completed works, or future ideas.
2. Discuss: Get feedback, find collaborators, or just chat about your project.
3. Inspire: Your project might inspire someone else, just as you might get inspired here.

## Guidelines:

Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.
Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.

## Example Shares:

1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!
2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.
3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!

Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟

/r/Python
https://redd.it/1ngcnn7
midi-visualiser: A real-time MIDI player and visualiser.

Hi all, I recently revisited an old project I created to visualise MIDI music (using a piano roll) and after some tidying up and fixes I've now uploaded it to PyPI! The program allows single MIDI files or playlists of MIDI files to be loaded and visualised through a command-line tool.

It's fairly simple, using Pygame to display the visualiser window and provide playback control, but I'm pretty proud of how it looks and the audio-syncing logic (which uses Mido to interpret MIDI events). More details on how to use it are available in the project repository.

This is the first project I've used uv for, and I absolutely love it - check it out if you haven't already. Also, any suggestions/comments about the project would be greatly appreciated as I'm very new to uploading to PyPI!

To summarise;
- What My Project Does: Plays MIDI files and visualises them using a scrolling piano roll
- Target Audience: Mainly just a toy project, but could be used by anyone who wants a simple & quick way to view any MIDI file!
- Comparison: I can't find any alternatives that have this same functionality (at least not made in Python) - it obviously can't compete with mega fancy MIDI visualisers, but

/r/Python
https://redd.it/1ng9en6
Tea Tasting: t-testing library alternatives?

I dont feel this repo is Pythonic nor are their docs sufficient: https://e10v.me/tea-tasting-analysis-of-experiments/ (am i missing something or stupid?)

Looking for good alternatives - I havent found any

/r/Python
https://redd.it/1ng8qg0
Building My Django Portfolio - Offering to Build Real Projects (Free or Low-Cost)

I’m currently a Python/Django developer in the making, working through my BCA degree and building my career path toward backend development. I’ve done several projects (REST APIs, dashboards, hackathon apps), but I want to strengthen my portfolio with real-world projects that solve actual problems for people.

That’s why I’m offering to:

* Build small-to-medium Django projects **for free** (or at a very low cost if the scope is bigger).
* Handle the **full stack if needed** (Django backend + React/HTML/CSS frontend).
* Learn and implement **deployment/hosting** , and if you prefer, I can even manage hosting for you at a minimal fee.

Why am I doing this?

* To gain **real client experience** beyond personal projects.
* To practice **hosting, deployment, and maintenance**.
* To create a **stronger portfolio** that helps me land Python/Django roles.

If you’ve been thinking: *“I’d like a small app for my idea / side project / workflow, but don’t have a developer yet”,* this could be a great match.

⚠️ Just to set expectations:

* I’m focusing on **Django-based apps** (CRUD systems, dashboards, APIs, authentication, etc.).
* I’ll provide clear timelines and revisions, but I won’t be able to support endless scope creep.
* All projects will be added to my portfolio/GitHub (unless you’d like it private).

If

/r/django
https://redd.it/1nghsxo
D which papers HAVEN'T stood the test of time?

As in title! Papers that were released to lots of fanfare but haven't stayed in the zeitgeist also apply.

Less so "didn't stand the test of time" but I'm thinking of KANs. Having said that, it could also be that I don't work in that area, so I don't see it and followup works. I might be totally off the mark here so feel free to say otherwise

/r/MachineLearning
https://redd.it/1ng6dsf
Do anyone used JWT here ?

So I am using this JWT in Django because its stateless.

Earlier i was sending it in login response so client can store it and use it .

But since refresh token can be misused . Where to store it on client side? Not in localstorage i guess but how to store and use it securely?

Just needed some advice on this.

/r/django
https://redd.it/1ngpv71
P Convolutional Neural Networks for Audio -- the full story behind SunoAI

Last week i wrote a reddit post, about my project SunoAI and it sorta blew up for my standards. People in the replies were really curious about Convolutional Neural Networks and why I decided to go with them for Audio Classification. So, I decided to write an in depth blog that explains everything there is to know about CNNs from pooling to dropouts to batch normalization. I also go in depth about my results with the CNN I built, and how CNNs see audio, Mel Spectograms and much more.

Checkout this blog for more details https://medium.com/@tanmay.bansal20/mastering-cnns-for-audio-the-full-story-of-how-i-built-sunoai-c97617e59a31?sk=3f247a6c4e8b3af303fb130644aa108b

https://preview.redd.it/kcu0n3eui3pf1.png?width=847&format=png&auto=webp&s=0fae2651a12849dd021176ac706b7f0aa64ca2a9

Also check out the visualiser I built around this CNN, it includes feature maps, waveforms, spectrograms, everything to the last detail https://sunoai.tanmay.space

/r/MachineLearning
https://redd.it/1ngmgxh
D No Google or Meta at EMNLP 2025?

I was going through the EMNLP 2025 sponsors page and noticed something odd. Google and Meta aren’t listed this year. Link here.

Is it that they’re really not sponsoring this time? Or maybe it’s just not updated yet?

For those of us who are PhD students looking for internships, this feels a bit concerning. These conferences are usually where we get to connect with researchers from those companies. If they are not sponsoring or showing up in an official way, what’s the best way for us to still get on their radar?

Curious if others are thinking about this too.

/r/MachineLearning
https://redd.it/1ngsn3g
Weird Issue

I'm using Django with the rest framework (but I don't think that matters here) and just added a new URL to my site. When making a call to it I get the error:

Forbidden (Origin checking failed - [http://localhost:3000](http://localhost:3000) does not match any trusted origins.

My other urls are all working fine. Does any one have any hints of why this would be happening with just the one URL? I copied and pasted my react axios code and just changed the URL. When I purposefully put a typo into the URL it gives a different error message so I know that that's not it.

Edit: To confirm, I already have the following in my [settings.py](http://settings.py) file

CORS_ALLOWED_ORIGINS = [
    'http://localhost:3000'
]

and other URL post calls are working.



UPDATE - Figured it out.

In my url I had

    path('set_facility_patient_id/',OnePatientFacilityIDAPI),    

when I fixed it to

    path('set_facility_patient_id/',OnePatientFacilityIDAPI.as_view()),    

it worked.


That wasn't the error message I was expecting for a goof up like this which is why it took me so long to figure it

/r/django
https://redd.it/1ngu7do
Another free Python 3 book - Files and Directories

If you are interested, you can click the top link on my landing page and download my eBook, "Working with Files and Directories in Python 3" for free: https://tr.ee/MFl4Mmyu1B

I recently gave away a Beginner's Python Book and that went really well

So I hope this 26 page pdf will be useful for someone interested in working with Files and Directories in Python. Since it is sometimes difficult to copy/paste from a pdf, I've added a .docx and .md version as well. The link will download all 3 as a zip file. No donations will be requested. Only info needed is a name and email address to get the download link. It doesn't matter to me if you put a fake name. Enjoy.

/r/Python
https://redd.it/1ngy2ha
As a Django beginner dev, which open source repository is great to contribute to gain real world experience?

I was looking into several repositories on git after a got a short term break from building my portfolio for my first job/intern. I believe some online contribution can help me achieve my goal of being ready for jobs without getting a job, but the terrifying part as a beginner is there's no one to guide you on the way cuz you're not earning anyone's money and no one cares.
From your experience, which online repositories or other contributing platforms would you recommend for someone trying to understand real-world tech workflow and gain experience. I would like to hear what would you do if you were in my place and wanna achieve what I mentioned. Thanks.

/r/django
https://redd.it/1ng4vdu
System recommendation in Django

What is the name of this algorithm that can be used for recommendations when there are similar data between two users, and how can I use it with Django?

/r/django
https://redd.it/1ngltd7
D Recent paddleocr version accuracy

Has anyone tried using the paddleocr latest version 3.2.0, I could observe the recognition accuracy has decreased compared to previous version which I was using (2.10.0)

/r/MachineLearning
https://redd.it/1nhbxwk
Monday Daily Thread: Project ideas!

# Weekly Thread: Project Ideas 💡

Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.

## How it Works:

1. **Suggest a Project**: Comment your project idea—be it beginner-friendly or advanced.
2. **Build & Share**: If you complete a project, reply to the original comment, share your experience, and attach your source code.
3. **Explore**: Looking for ideas? Check out Al Sweigart's ["The Big Book of Small Python Projects"](https://www.amazon.com/Big-Book-Small-Python-Programming/dp/1718501242) for inspiration.

## Guidelines:

* Clearly state the difficulty level.
* Provide a brief description and, if possible, outline the tech stack.
* Feel free to link to tutorials or resources that might help.

# Example Submissions:

## Project Idea: Chatbot

**Difficulty**: Intermediate

**Tech Stack**: Python, NLP, Flask/FastAPI/Litestar

**Description**: Create a chatbot that can answer FAQs for a website.

**Resources**: [Building a Chatbot with Python](https://www.youtube.com/watch?v=a37BL0stIuM)

# Project Idea: Weather Dashboard

**Difficulty**: Beginner

**Tech Stack**: HTML, CSS, JavaScript, API

**Description**: Build a dashboard that displays real-time weather information using a weather API.

**Resources**: [Weather API Tutorial](https://www.youtube.com/watch?v=9P5MY_2i7K8)

## Project Idea: File Organizer

**Difficulty**: Beginner

**Tech Stack**: Python, File I/O

**Description**: Create a script that organizes files in a directory into sub-folders based on file type.

**Resources**: [Automate the Boring Stuff: Organizing Files](https://automatetheboringstuff.com/2e/chapter9/)

Let's help each other grow. Happy

/r/Python
https://redd.it/1nh6ydt
I made a terminal-based game that uses LLMs -- Among LLMs: You are the Impostor

I made this game in Python (that uses **Ollama** and local `gpt-oss:20b` / `gpt-oss:120b` models) that runs directly inside your terminal. TL;DR **above** the example.

>Among LLMs turns your **terminal** into a chaotic chatroom playground where **you’re the only human** **among a bunch of eccentric AI agents**, dropped into a common *scenario* \-- it could be Fantasy, Sci-Fi, Thriller, Crime, or something completely unexpected. Each participant, including you, has a *persona* and a *backstory*, and all the AI agents share one common goal -- determine and eliminate the human, through *voting*. **Your mission: stay hidden, manipulate conversations, and turn the bots against each other with edits, whispers, impersonations, and clever gaslighting**. Outlast everyone, turn chaos to your advantage, and make it to the final two.

>Can you survive the hunt and *outsmart* the AI ?

Quick Demo: [https://youtu.be/kbNe9WUQe14](https://youtu.be/kbNe9WUQe14)

Github: [https://github.com/0xd3ba/among-llms](https://github.com/0xd3ba/among-llms) (refer to `develop` branch for latest updates)

(Join the discord community (link in repository's README) if you have any bug reports, issues, feature- requests, suggestions or anything, as the subreddit I made for this got banned immediately along with my other account getting banned from Reddit for no apparent reason)

* **What my project does:** Uses local Ollama gpt-oss models uniquely in a game setting; Built

/r/Python
https://redd.it/1nhdt04