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
Advice for Azure VM/deployment

Hello everyone,

I have never worked with deployment side, except 1 time bought VM for bot deployment on a some server provider, 3 years ago.

Now, I have to deploy my company web app to Azure platform. My manager said that I would check and choose platform and plan for our web app.

My knowledge about deployment is very limited especially about Azure platform (never worked).

Could someone give me some advice what Azure product to choose in order to deploy and run web app?

About web app backend: python (in future Go), Django/Flask, work with API , use DB (SQLite or Postgres), Docker(probably), some extra libraries, and I think done . App will show some information on 1 page for the start.
It will be used company employees (200 people) 24/7. App will scale in the future .

Thank you in advance,
Regards,

/r/django
https://redd.it/1o47mqh
[D] Kubernetes maintainers are burning out — The New Stack warns of a possible security disaster

/r/MachineLearning
https://redd.it/1o42pq4
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/1o4ap8i
CSRF Token Verification errors after switching to ASGI

I'm suddenly getting CSRF verification errors POSTing data in my hosted Django (v5.2.7) project after switching over to ASGI (using daphne). No changes were made to the templates/views that are affected. I've also inspected the page to confirm that the CSRF token is being passed to the page.

I did see that there was a report for ASGI applications and HTTP/2 that has since been closed and the related PR has been merged. I'm having a hard time seeing when to expect that change to appear in Django (can't find it mentioned in the release notes for the 5.x versions) But I updated to the latest available version for Django (was using 5.2.5 before), and even tried the alpha build just for kicks and the error still occurs. I also tried changing the config for nginx to set 'off' for http2 and 'on' for http3.

When I was looking into this I saw that some django projects will define an array of domains for CSRF_COOKIE_DOMAIN and CSRF_TRUSTED_ORIGINS. I didn't have those before, but added them in with the same domains as for allowed hosts.

Does anyone have any suggestions or ideas on what could be going on here and what I could try

/r/django
https://redd.it/1o4ci3b
Those who have managed to get into IT in the last couple of years, please share your experiences!

I'm finishing my fourth year of university as a software engineer. Looking at companies' requirements, I realize it's easier to get into IT with your product than to go through a three- or even five-stage interview process for a meager salary.

/r/Python
https://redd.it/1o4hjl6
What’s the best hosting option for a Django + TailwindCSS portfolio site — balancing stability & cost?

I built a dynamic portfolio website using Django (MVT) and TailwindCSS, with a SQLite database.
I’m looking for the best hosting option that offers a good balance between stability and price.

The site is small, gets light traffic, but I still want it to feel reliable and professional.


Any recommendations or experiences with hosting small Django apps like this?

/r/django
https://redd.it/1o4lbwh
[For Hire] Limited Offer: We Build Your Custom Website at a Price You Choose. (15 Days Only)

Hi everyone,

Is a high-quality, custom website the next big step for your business, but the budget is a concern? For the next 15 days, we're trying something different.

**We will build you a professional, custom website, and you set the price.**

We are a team of experienced web developers who believe everyone deserves a great online presence. We're running this "Pay What You Can" promotion to build our portfolio with diverse projects and help out fellow entrepreneurs in the process.

**What you get:**

* A fully custom-designed website (no generic templates).
* Mobile-responsive design that looks great on all devices.
* SEO-friendly structure to help you get found on Google.
* Consultation to understand your brand and business goals.
* Fast turnaround and professional communication.

**How it works:**

1. **DM us** with a brief description of your project and what you need.
2. We'll discuss the details and confirm we're a good fit.
3. You propose a price that you feel is fair for the work.
4. If we agree, we get started right away!

This offer is valid until **October 27, 2025**.

Whether you're a startup, a local shop, or a freelancer needing a portfolio, this is a perfect opportunity to get online without the usual high costs.

Let's build something amazing together. Send us

/r/django
https://redd.it/1o4nk56
Cronboard - A terminal-based dashboard for managing cron jobs

## What My Project Does

Cronboard is a terminal-based application built with Python that lets you manage and schedule cron jobs both locally and on remote servers. It provides an interactive way to view, create, edit, and delete cron jobs, all from your terminal, without having to manually edit crontab files.

Python powers the entire project: it runs the CLI interface, parses and validates cron expressions, manages SSH connections via paramiko, and formats job schedules in a human-readable way.

## Target Audience

Cronboard is mainly aimed at developers, sysadmins, and DevOps engineers who work with cron jobs regularly and want a cleaner, more visual way to manage them.
## Comparison

Unlike tools such as crontab -e or GUI-based schedulers, Cronboard focuses on terminal usability and clarity. It gives immediate feedback when creating or editing jobs, translates cron expressions into plain English, and will soon support remote SSH-based management out of the box using ssh keys (for now, it supports remote ssh using hostname, username and password).

## Features
- Check existing 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

/r/Python
https://redd.it/1o4jul0
I built dataspot to find fraud patterns automatically Open Source


After years detecting fraud, I noticed every fraud has a data concentration somewhere.

Built a tool to find them:

pip install dataspot

from dataspot import Dataspot

ds = Dataspot()
hotspots = ds.find(your_data)


What My Project Does
Automatically finds data concentrations that indicate fraud, bot networks, or coordinated attacks. No manual thresholds needed.

Target Audience
Fraud analysts, data scientists, security teams working with transactional or behavioral data.

Comparison
Unlike scikit-learn's anomaly detection (needs feature engineering) or PyOD (requires ML expertise), dataspot works directly on raw data structures and finds patterns automatically.

Full story:
https://3l1070r.dev/en/2025/01/24/building-dataspot.html

Used it in production to detect attacks and anomalies.

- GitHub: https://github.com/frauddi/dataspot
- PyPI: https://pypi.org/project/dataspot/
- Docs: https://frauddi.github.io/dataspot/

Questions welcome.


/r/Python
https://redd.it/1o4gvj5
Running Celery at Scale in Production: A Practical Guide

I decided to document and blog my experiences of running Celery in production at scale. All of these are actual things that work and have been battle-tested at production scale. Celery is a very popular framework used by Python developers to run asynchronous tasks. Still, it comes with its own set of challenges, including running at scale and managing cloud infrastructure costs.

This was originally a talk at Pycon India 2024 in Bengaluru, India.

Substack

Slides can be found at GitHub

YouTube link for the talk

/r/django
https://redd.it/1o4nw6y
without formdata=None explicitly written it will create everything as a formdata? is that normal behaviour? when instantiating the form thing?

I was trying to figure out why a python list wouldn't be validated like a normal python list of strings and it turned out I had to write formdata=None like

form = PackingListForm(formdata=None,data=packing_list_form, meta={'csrf': False})

but this below here was silently giving me an empty list?

form = PackingListForm(data=packing_list_form, meta={'csrf': False})

but the documentation says if u dont pass formdata it will use data? but then it acted like it was formdata then? I dont get it. I know I sound confusing as hell but maybe. someone has an answer or idk if someone ever has this problem they now know what kinda weird obscure thing this is. or hell maybe I am just using it for the wrong purposes entirely. just spent 2 hours and a bunch of llms and documentations and stuff. idk. weird. weird.


/r/flask
https://redd.it/1o4tt81
Advice on logging libraries: Logfire, Loguru, or just Python's built-in logging?

Hey everyone,

I’m exploring different logging options for my projects (fastapi backend with langgraph) and I’d love some input.

So far I’ve looked at:

Python’s built-in `logging` module
Loguru
Logfire

I’m mostly interested in:

Clean and beautiful output (readability really matters)
Ease of use / developer experience
Flexibility for future scaling (e.g., larger apps, integrations)

Has anyone here done a serious comparison or has strong opinions on which one strikes the best balance?
Is there some hidden gem I should check out instead?

Thanks in advance!

/r/Python
https://redd.it/1o4uyrv
What is considered truly advanced in Django?

Hello community,

I've been working professionally with Django for 4 years, building real-world projects. I'm already comfortable with everything that's considered "advanced" in most online tutorials and guides: DRF, complex ORM usage, caching, deployment, etc.

But I feel like Django has deeper layers, those that there are very few tutorials around (djangocon and those kind of events have interesting stuff).

What do you consider the TOP tier of difficulty in Django?

Are there any concepts, patterns, or techniques that you consider truly separate a good developer from an expert?

/r/django
https://redd.it/1o52kon
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/1o54sdj
What's the highest # of open source libraries you've ever packaged into a single application?

Hey everyone,

I was going down a dependency rabbit hole this morning for a new project and it got me curious. We all know the node_modules memes, but I think we sometimes lose sight of just how much incredible, free work our applications are built on.

I just ran a check on the open-source AI agent I've been building, and the number that came back was genuinely mind-boggling to me: nearly 250 open-source libraries.
It's an autonomous agent that does self-tuning for LLMs, so it needs a whole stack to work: vector databases, search indexes, SLM inference, observability and tracing, the web framework, etc. But seeing it all laid out... it's a humbling reminder that my "project" is really just a thin layer of orchestration on top of decades of work from thousands of developers I'll never meet.

It really reinforces the whole "standing on the shoulders of giants" thing. It feels like a responsibility to contribute back.
So, it made me wonder: what's your number? What's the deepest you've ever gone down the dependency rabbit hole, and what kind of project was it?

/r/Python
https://redd.it/1o4vn5m
rovr v0.4.0: an update to the modern terminal file explorer

source code: [https://github.com/nspc911/rovr](https://github.com/nspc911/rovr)

what my project does:

* it's a file manager in the terminal, made with the textual framework

comparison:

* as a python project, it cannot compete in performance with yazi at all, nor can it compete with an ncurses-focused ranger. superfile is also catching up, with its async-based preview that was just released.
* the main point of rovr was to make it a nice experience in the terminal, and also to have touch support, something that lacked, or just felt weird, when using other file explorers.

hey everyone, this follow-up on [https://www.reddit.com/r/Python/comments/1mx7zzj/rovr\_a\_modern\_customizable\_and\_aesthetically/](https://www.reddit.com/r/Python/comments/1mx7zzj/rovr_a_modern_customizable_and_aesthetically/) that I released about a month ago, and during the month, there have been quite a lot of changes! A shortcut list was added in #71 that can be spawned with `?`, so if you are confused about any commands, just press the question mark! You can also search for any keybinds if necessary. rovr also integrates with [fd](https://github.com/sharkdp/fd), so you can simply enable the `finder` plugin and press `f` to start searching! yazi/spf style `--chooser-file` flag has also been added. An extra flag `--cwd-file` Also exists to allow you to grab the file if necessary (I'm planning to remove cd on quit to favour this instead) cases where opening

/r/Python
https://redd.it/1o4q4vt
🚀 Blinter The Linter - A Cross Platform Batch Script Linter

Yes, it's 2025. Yes, people still write batch scripts. No, they shouldn't crash.

## What It Does
158 rules across Error/Warning/Style/Security/Performance
Catches the nasty stuff: Command injection, path traversal, unsafe temp files
Handles the weird stuff: Variable expansion, FOR loops, multilevel escaping
10MB+ files? No problem. Unicode? Got it. Thread-safe? Always.

## Get It Now
pip install Blinter

Or grab the standalone .exe from GitHub Releases

## One Command
python -m blinter script.bat


That's it. No config needed. No ceremony. Just point it at your .bat or .cmd files.

---

The first professional-grade linter for Windows batch files.
Because your automation scripts shouldn't be held together with duct tape.

📦 PyPI⚙️ GitHub

What My Project Does
A cross platform linter for batch scripts.

Target Audience
Developers, primarily Windows based.

Comparison
There is no comparison, it's the only batch linter so theres nothing to compare it to.

/r/Python
https://redd.it/1o4sswc
Built this Django-Unfold showcase — thinking to extend it into a CRM project

/r/django
https://redd.it/1o4psg7