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
D Time Series Forecasting with Less Data ?

Hey everyone, I am trying to do a time series sales forecasting of ice-cream sales but I have very less data only of around few months... So in order to get best results out of it, What might be the best approach for time series forecasting ? I've tried several approach like ARMA, SARIMA and so on but the results I got are pretty bad ...as I am new to time series. Can anyone experienced in this give suggestions ? Thank you 🙏

/r/MachineLearning
https://redd.it/1lf72cl
Django + Metronic Tailwind Integration Guide

Hi,

Just dropped a guide for integrating Keenthemes Metronic v9 Tailwind templates with Django.

Sidebar layout + Header layout with full implementations.

The guide: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/django

Get the code: https://github.com/keenthemes/metronic-tailwind-html-integration

Also working on Flask, Symfony, and Laravel versions. Let me know if there is a specific framework integration you'd love to see next.

/r/django
https://redd.it/1lf4c16
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!

# Weekly Thread: Professional Use, Jobs, and Education 🏢

Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.

---

## How it Works:

1. Career Talk: Discuss using Python in your job, or the job market for Python roles.
2. Education Q&A: Ask or answer questions about Python courses, certifications, and educational resources.
3. Workplace Chat: Share your experiences, challenges, or success stories about using Python professionally.

---

## Guidelines:

- This thread is not for recruitment. For job postings, please see r/PythonJobs or the recruitment thread in the sidebar.
- Keep discussions relevant to Python in the professional and educational context.

---

## Example Topics:

1. Career Paths: What kinds of roles are out there for Python developers?
2. Certifications: Are Python certifications worth it?
3. Course Recommendations: Any good advanced Python courses to recommend?
4. Workplace Tools: What Python libraries are indispensable in your professional work?
5. Interview Tips: What types of Python questions are commonly asked in interviews?

---

Let's help each other grow in our careers and education. Happy discussing! 🌟

/r/Python
https://redd.it/1lewl21
Design Patterns You Should Unlearn in Python-Part1

Blog Post, no paywall:

Design Patterns You Should Unlearn in Python-Part1

When I first learned Python, I thought mastering design patterns was the key to writing “professional” code.

So I did the approach many others do: searched “design patterns in Python” and followed every Gang of Four tutorial I could find. Singleton? Got it. Builder? Sure. I mimicked all the class diagrams, stacked up abstractions, and felt like I was writing serious code.

Spoiler: I wasn’t.

The truth is, many of these patterns were invented to patch over limitations in languages like Java and C++. Python simply doesn’t have those problems — and trying to force these patterns into Python leads to overengineered, harder-to-read code.

I wrote this post because I kept seeing tutorial after tutorial teaching people the way to “implement design patterns in Python” — and getting it completely wrong. These guides don’t just miss the point — they often actively encourage bad practices that make Python code worse, not better.

This post is Part 1 of a series on design patterns you should unlearn as a Python developer. We’re starting with Singleton and Builder — two patterns that are especially misused.

And no, I won’t just tell you “use a module” or “use default arguments”

/r/Python
https://redd.it/1lfcmky
What Python GUI Lib do you like the most?

Do you like...
Tkinter
CustomTkinter
Kivy
Dear PyGUI
PySide/PyQT6
Toga
Edifice
WinUp (Probably haven't heard of it but check it out it's really cool find it **Here**)
Please explain why and which feature you like and dislike!

/r/Python
https://redd.it/1lffudq
Flask + Metronic Tailwind Integration Guide

Hi,

I have created a guide for integrating Keenthemes Metronic v9 Tailwind templates with Flask.

With working code examples, a complete project structure you can use.

Check it out: https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/flask

Get the code: https://github.com/keenthemes/metronic-tailwind-html-integration

Also working on Django, Symfony, and Laravel versions. Let me know if there is a specific framework integration you'd love to see next.

/r/flask
https://redd.it/1lf47ln
Modelling Vasculature through BARWs

Hey guys, I need some advice about modelling branching and annihilation random walks (BARWs) in python. I use VS Code for my coding and I'm just a beginner at python. How do people usually model random walks and what are some parameters that people include? Also, there's a lot of math related to branching, growth and termination. How do people usually add ordinary differential equations as boundary conditions and such on python ?

/r/Python
https://redd.it/1lf4djo
Early publish: django-bootyprint

Hey,

this is an early release.

I discovered this week that weasyprint (pdf generation) is capable of flex display. I have a lot of table based layouts for weasyprint, and i thought about a "weasyprint bootstrap" for a long time.

So while i got some spare time this week, i worte BootyPrint a sass css framework for weasyprint that has bootstrap in mind.

Here comes django into play - as a companion, i published django-bootyprint, which is nothing more as a weasyprint renderer with the current version of BootyPrint.

This project will grow in the next days, i'm planning to add simple font loading, as is use this package for my fantasy rpg book creation: https://public.phasesix.org/media/rulebookpdf/bookpdfenlHaGBdw.pdf

Any hint what a pdf rendering library for django could do to make our lifes easier is appreciated!


/r/django
https://redd.it/1lfmnfh
P I built a self-hosted Databricks

Hey everone, I'm an ML Engineer who spearheaded the adoption of Databricks at work. I love the agency it affords me because I can own projects end-to-end and do everything in one place.

However, I am sick of the infra overhead and bells and whistles. Now, I am not in a massive org, but there aren't actually that many massive orgs... So many problems can be solved with a simple data pipeline and basic model (e.g. XGBoost.) Not only is there technical overhead, but systems and process overhead; bureaucracy and red-tap significantly slow delivery.

Anyway, I decided to try and address this myself by developing FlintML. Basically, Polars, Delta Lake, unified catalog, Aim experiment tracking, notebook IDE and orchestration (still working on this) fully spun up with Docker Compose.

I'm hoping to get some feedback from this subreddit. I've spent a couple of months developing this and want to know whether I would be wasting time by contuining or if this might actually be useful.

Thanks heaps

/r/MachineLearning
https://redd.it/1lfbq3m
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/1lfpxzq
Django Email

What Email Service Provider do you use for your Django Apps?

Any noticeable pros/cons with using them?

/r/django
https://redd.it/1lfk4xe
Build a search engine using Django

I build a search engine using Django and deployed yesterday. My platform vastvids is the only url that’s been added to be scraped so only results from it pop up. I was wondering if you guys could check it out and add your sites to be indexed as well.

URL:
vastwebscraper

/r/django
https://redd.it/1lf7i3j
Free University Course: Python

Want a Python course for FREE? 🐍 Here are 5 elite university courses you can start today:

- Harvard’s CS50 Python

- MIT’s Intro to CS with Python

- Stanford’s Programming Methodology

- Michigan’s Python for Everybody

- CMU’s Principles of Computation

/r/Python
https://redd.it/1lflhjk
Best books for learning Django + React

Please tell if any other frontend is more popular for jobs.

/r/djangolearning
https://redd.it/1lfxjq7
I am new to django

Ok so same as the title , i am new to django but i have some prior experience of backend using node.js . But now i am confused what to do and from where i can go ahead . I have been following a django 10hr lecture video from freecodedamp but now i am confused what to do ahead of it . Also im a pre junior year student so i really need to go in depth for this as i need an internship in this domain .

/r/djangolearning
https://redd.it/1lg1poq
Looking for Chemistry Enthusiasts for NeurIPS Open Polymer Prediction 2025 (Kaggle)

Hi everyone,

I'm participating in the NeurIPS - Open Polymer Prediction 2025 competition on Kaggle and looking to team up with folks who have a strong background in chemistry or materials science.

If you're into polymer behavior, molecular properties, or applied ML in materials, this could be a great opportunity to collaborate and learn together.

Drop a comment or DM if you're interested to participate🔬💥

/r/Python
https://redd.it/1lg1m6g
New fastest HTML parser

Hello there, I've created a python bindings to html c library reliq.

https://github.com/TUVIMEN/reliq-python

It comes in pypi packages that are compiled for windows, x86 aarch64 armv7 linux, and macos.

# What My Project Does

It provides a HTML parser with functions for traversing it.

Unfortunately it doesn't come with standardized selector language like css selectors or xpath (they might get added in the future). Instead it comes with it's own, which you can read about in the main lib (full documentation is in a man page).

Code example can be seen here.

# Target Audience

This project has been used for many professional projects e.g. forumscraper, 1337x-scraper, blu-ray-scraper, all of which are scrapers, and thats it's main use.

# Comparison

You can see benchmark with other python libraries here.

For anyone wondering where does the speed and memory efficiency come from - it creates parsed structure in reference to original html string provided. If html string changes, entire structure has to be reparsed to match it.

This comes with limitation unique only to this library - although possible, any functions changing html structures aren't implemented. This however is useful only for browsers ;)

/r/Python
https://redd.it/1lganqg
I learnt to send notifications from django. Does anyone need a tutorial?

I had posted a question about how to setup notifications in django a month ago.

After reading the documentation in detail and using chatgpt while doing steps, I found a way to do it. So now I'm able to send notifications from shell, and save tokens.

The point is, it's a complicated process, good tutorials for the same are 4-5 years old, and methods of doing it are changed. I asked chatgpt, GitHub copilot to do it for me but didn't work.

Hence I think, I can make an English tutorial on that topic on youtube if people need it. Let me know in the comments.

P.S. By notifications I mean push notifications, and tokens mean firebase cloud messaging (fcm) tokens.

/r/django
https://redd.it/1lg1rv0
Social login recommendations

Hi! I wanna implement social login for my API (DRF). Initially will start with google, latter Apple. Which package would you recommend? Any good tutorial? Many thanks

/r/django
https://redd.it/1lgiclj
Flask sqlalchemy Lost Connection error driving me crazy!

So I've been bumping into this issue for months now, I've researched and tried so many methods online, but still no luck! I use flask_login, sqlalchemy to control my user logins. But frequently I get an "Internal Error", with the exception:

(pymysql.err. OperationalError) (2013, 'Lost connection to MySQL server during query') [SQL: SELECT users_1dap. id AS users_Idap_id, users_ ldap. username AS users_ ldap_username, users_ 1dap. name AS users_ ldap_name, users_ ldap. email AS users_ldap_email, users_ 1dap. role AS users_Idap_role, users_ 1dap. status AS users_Idap_status, users_1dap. atype AS users_ 1dap_atype, users_ ldap. group_name AS users_Idap_group_name, users_Idap. created_on AS users_ 1dap_created_on, users_1dap. last_ login AS users_1dap_last_ login

I didn't write this query, it's being used by Flask-Login I think.

MySQL version: 8.0
SQLAlchemy: 2.0.37
PyMySQL: 1.1.1
Flask-Login: 0.6.3
Flask-SQLAlchemy: 3.1.1

I also tried to change SQLALCHEMY_POOL_RECYCLE to 100, the wait_timeout is 1800 on the server.

Any advice would help :(



/r/flask
https://redd.it/1lg8hts