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
[Project] doespythonhaveit: a semantic search engine for Python libraries

Hey folks! I've been working on an open-source project called **doespythonhaveit**, a **semantic search engine for Python libraries** powered by `FastAPI` and `sentence-transformers`.

Basically, you can type something like:

>"machine learning time series"

and it'll (hopefully) suggest things like scikit-learn or darts.

The goal is to make discovering Python libraries faster, smarter, and a little less about keyword guessing.

It's not live *yet* (hosting the model costs a bit), but you can **try it locally**, setup instructions are in the repos:

* API: [github.com/hasboi/doespythonhaveit-api](https://github.com/hasboi/doespythonhaveit-api)
* Web: [github.com/hasboi/doespythonhaveit-web](https://github.com/hasboi/doespythonhaveit-web)

---

# What My Project Does

**doespythonhaveit** lets you search Python libraries *by meaning*, not by exact keywords. Instead of googling *"python library for handling CSVs elegantly"* and clicking through five Stack Overflow posts, you can just search that sentence directly — and it'll understand what you mean using embeddings.

I am also planning a **terminal version**, so you can type something like:

dphi <query> <flags>

and it will suggest relevant libraries **without leaving your code editor or terminal**, basically a semantic library search right where you write code.

---

# Target Audience

Mainly aimed at:

* **Developers** who are tired of remembering exact library names
* **Beginners** who want to discover tools without knowing where to start
* **Open-source enthusiasts** who love browsing cool Python projects

Right now

/r/Python
https://redd.it/1o80g8o
InfoLens - A python based GUI dashboard

Hello everyone!

I’ve been working on a Python project called InfoLens, a CustomTkinter\-based GUI dashboard that fetches and displays personalized information across multiple genres — news, finance, and weather — all in one place.

# What My Project Does:

It pulls live data from credible sources like:

🧪ScienceDaily – for science and innovation headlines

💰Economic Times & Yahoo Finance API – for real-time stock data and trends

🌤️**wttr.in** API – for location-based weather updates

# Purpose:

We live in a world where information surrounds us everywhere. In fact, the average person in 2025 processes about 75-80 GB of information per day up from 34 GB in 2008 and 63 GB in 2012. That includes all the ads, unnecessary clutter that one doesn't even need. However, studies have shown color-coded dashboards improved visual search performance and recall, enhancing both comprehension and memory; exactly what InfoLens does!

# 🔧Built with:

Python

CustomTkinter for the GUI

Web scraping (BeautifulSoup, requests)

APIs (yfinance, wttr.in, etc.)

# Target Audience:

Currently this is a side project, but meant for all python enthusiasts who are eager to provide their invaluable experience in this app.

# Comparison:

As a GUI dashboard, InfoLens focuses highly on data readability. While other tools like Perplexity exist, InfoLens is unique in the problem solving sense, using web scraping to

/r/Python
https://redd.it/1o86n2t
Local deployment and AI assistants

I’m looking for the best deployment strategy for local only django web apps.
My strategy is using Waitress (windows server) whitenoise (staticfiles) APScheduler (tasks)

And which AI assistance you well while building complicated django applications.
I was using cursor with sonnet 4 but lately i stop vibe coding and focussed on building the whole app but it takes forever

Thanks in advance

/r/django
https://redd.it/1o83o37
Anyone care to review my PR?

Just for a fun little experiment, this is a library I wrote a while ago based on Django-ninja and stateless JWT auth.

I just got a bit time to make some improvements, this PR adds the ability to instantiating a User instances statelessly during request handling without querying the database, which is a particularly helpful pattern for micro services where the auth service (and database) is isolated.

Let me know what your thoughts are: https://github.com/oscarychen/django-ninja-simple-jwt/pull/25

/r/django
https://redd.it/1o7nmpo
I built a VS Code extension for uv integration and PEP 723 scripts

Hey folks! I've been working on a VS Code extension that brings uv integration and PEP 723 support directly into your editor — making Python script development way more powerful.

The extension lets you manage packages, run scripts, and handle dependencies without ever leaving VS Code or switching to the terminal. Plus, with PEP 723 support, your scripts become truly portable and shareable.

Here's what a PEP 723 script looks like:

# /// script
# requires-python = ">=3.9"
# dependencies = [
# "cowsay"
# ]
# ///
import cowsay

cowsay.cow("Hello World!")


You can copy this script anywhere, share it with anyone, and it'll just work — no setup instructions needed.

## What My Project Does

My extension provides:
`uv` integration built directly into VS Code
Add, remove, and update packages without touching the terminal
Automatic PEP 723 script metadata detection and management
Complete LSP support (autocomplete, type checking, go-to-definition) for scripts
One-click run and debug for scripts
Smart virtual environment handling behind the scenes

Basically, you get the speed and power of uv with the convenience of never leaving your editor, plus a better way to write and share self-contained Python scripts.

## Target Audience

This is mainly aimed at:
Python developers who want faster package management in their workflow
People

/r/Python
https://redd.it/1o8fz6j
Python as a Configuration Language Using Starlark

I wrote an article about how Pythonic syntax (using Starlark) helps avoids many of the configuration related challenges seen with YAML and other such languages. Let me know any feedback.

/r/Python
https://redd.it/1o8gd22
Automating your heating with Octopus Energy AGILE tariff

Hi all, I've just made a Python tutorial for how you can automate your electric heaters during the Agile Energy Plunge Pricing, in the UK.

Effectively, we're automatically switching on our smart plugs (electric radiators), when the price of electricity is negative. This results in consistent credit back every time there's an Octopus Energy Plunge Pricing, plus a nice warm home.

You just need Tapo smart plugs and a Raspberry pi.

https://youtu.be/ch-9DpZL6Vg

code:

https://github.com/yojoebosolo/AutoHeating/

Hope it's helpful to some of you.

/r/Python
https://redd.it/1o86j5t
D For people who work (as PhD students) in Mila, Quebec, what your experience have been like?

You may know that Mila in Quebec is opening applications for PhD students recently, and I am considering for applying. I have searched relevent key words here, but it seems that there are not so many recent posts on studying and working experience at Mila, so I was wondering how do you like your experience here and/or in Montreal in general? For instance, how do you like your work-life balance, Montreal's winter/weather aspects, supervisors? To be more specific, I am interested in DL/LLM theory, AI / foundational models for (formal) math (e.g., Goedel-Prover-V2), and/or post-training.

Thank you!

/r/MachineLearning
https://redd.it/1o81qlw
Friday Daily Thread: r/Python Meta and Free-Talk Fridays

# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️

Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!

## How it Works:

1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.

## Guidelines:

All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.

## Example Topics:

1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.

Let's keep the conversation going. Happy discussing! 🌟

/r/Python
https://redd.it/1o8meso
TOML is great, and after diving deep into designing a config format, here's why I think that's true

Developers have strong opinions about configuration formats. YAML advocates appreciate the clean look and minimal syntax. JSON supporters like the explicit structure and universal tooling. INI users value simplicity. Each choice involves tradeoffs, and those tradeoffs matter when you're configuring something that needs to be both human-readable and machine-reliable. This is why I settled on TOML.

https://agent-ci.com/blog/2025/10/15/object-oriented-configuration-why-toml-is-the-only-choice

/r/Python
https://redd.it/1o8ors4
Can’t get Django emails to send on Render

I’ve been working on a Django project and I’m currently in the final phase (deployment). I’m trying to deploy it for free on Render for demo purposes, but I can’t get emails to send.

I first tried using Gmail with an app password for authentication, but it didn’t work. Then I switched to SendGrid, but the emails still don’t go through.

Has anyone run into this on Render or found a reliable way to get email working for a Django app in a free deployment?

/r/django
https://redd.it/1o8hndt
Made A Video Media Player that Plays Multi-Track Audio with Python

# Crusty Media Player

I made a media player that was built to be able to take Multi-Track Video Files (ex: If you clip Recordings with separate Audio Tracks like System Audio and Microphone Audio) and give you the ability to play them back with both tracks synced without the use of an external editing software like Premiere Pro! And it's Open Source!

# What This Project Does.

It utilizes ffmpeg bundled in to rip apart audio tracks from multi-tracked video media and PyQt6 to build the application and display video media.

GitHub <---- Repo Here

Crusty Media Player v0.1.1 <---- First Downloadable Release Here

# Why Did I Make This?

It's simple really lol. I like clipping funny and cool parts of when my friends and I play video games and such. I also like sometimes editing the videos as a hobby! To make the video editing simpler I have my recording settings set to record two tracks of audio, my system audio, and my microphone audio separate. The problem lies in that, if I ever want to just pull up a clip to show a friend or something, with any other media player I've used I am only able to select one track or the other! I have to open Premiere

/r/Python
https://redd.it/1o8pn4t
Sanguine — Local Semantic Code Search, No Cloud, No APIs

What My Project Does:
Sanguine is a CLI tool that indexes your code across multiple repos and languages using Tree-sitter. It allows you to search for code by meaning, not just keywords. For example:

> sanguine search "parse http headers"
will find the actual functions that perform that task. It integrates with Git (optional post-commit hook) to keep the index up to date. Everything runs locally — no servers, no APIs, no telemetry.


Link:
https://github.com/n1teshy/sanguine

Would love your feedback.

/r/Python
https://redd.it/1o8un9r
Tkinter freezing after successfully executing the code. Have to force quit the kernel and restart everytime on mac m1.



/r/JupyterNotebooks
https://redd.it/1o8rufk
Turn on Wi-Fi via browser in 7 lines?

What My Project Does

The mininterface project creates dialogs that work everywhere, ex. in the browser.

Here is the app that checks the Wi-Fi status and then turns it on/off. By default, it raises a desktop window with the confirmation dialog. See it here: https://imgur.com/a/20476ZN

#!/usr/bin/env python3
from subprocess import checkoutput, Popen
from mininterface import run

cmd = "nmcli", "radio", "wifi"
state = check
output(cmd, text=True).strip() # -> 'enabled' / 'disabled'

m = run() # shows the dialog
if m.confirm(f"The wifi is {state}. Turn it on?"):
Popen(cmd + ("on",))
else:
Popen(cmd + ("off",))#!/usr/bin/env python3

However when you put the interface="web" parameter in the run function or when use launch the file with the MININTERFACE_INTERFACE=webenvironment variable set like this:

$ MININTERFACE_INTERFACE=web ./wifi.py

it starts listening on the HTTP port 64646. That way, you can turn on/off the Wi-Fi status (or do anything else, it's up to you to imagine all the possibilities) remotely.

Target Audience

Even though opening a port needs a security

/r/Python
https://redd.it/1o8yhuk
Looking for developers

Hi Django community. I’m looking for a freelance developer or two to help me rewrite the backend of an application I have been building. I have a degree in computer science, but have never worked as a professional developer, let alone a Django developer. I have built my proof of concept in Django, and now I am looking to hire a Django expert to help me rewrite my project. My goal here is to get professional input on my architecture, as well as to hopefully learn some do’s and don’ts about enterprise level Django. There is budget and I intend to pay fair market rate, I’m not asking for any favors, just looking for the right person. Send me a message if you are interested.

/r/django
https://redd.it/1o8c307
I was tired of writing CREATE TABLE statements for my Pydantic models, so I built PydSQL to automate

Hey,

I'd like to share a project I built to streamline a common task in my workflow. I've structured this post to follow the showcase rules.

What My Project Does:

PydSQL is a lightweight, no dependencies besides Pydantic utility that converts Pydantic models directly into SQL CREATE TABLE statements.

The goal is to eliminate the manual, error-prone process of keeping SQL schemas synchronized with your Python data models.

For example, you write this Pydantic model:

Python

from pydantic import BaseModel
from datetime import date

class Product(BaseModel):
productid: int
name: str
price: float
launch
date: date
isavailable: bool

And PydSQL instantly generates the corresponding SQL:

SQL

CREATE TABLE product (
product
id INTEGER,
name TEXT,
price REAL,
launchdate DATE,
is
available BOOLEAN


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