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
Meet OctaProbe - Yet another security assessment tool

Hey guys, I made this tool for my final year computer science project!

Built entirely using Python, and Streamlit

What My Project Does:

Enables even a layman to use advanced security toolset, like generating file checksums, verifying file integrity, chat with a tailored AI assistant, interact with external APIs, perform security scanning on networked devices, etc.

Target Audience:

Designed for students, computer security enthusiasts and cybersecurity analysts

Check out the presentation on Youtube: https://youtu.be/r6W2UaIsYzw?si=EzCQ3B71sSZpZT14

Link to source: https://github.com/NONAN23x/Octaprobe.git

Try out the demo app: https://octaprobe.streamlit.app/

/r/Python
https://redd.it/1ks0gs4
Django Admin/YouNameIt for frontend development?

Hi all,

As sysadmin and freelancer I am trying to find something that makes my life easier in the development of applications while having a nice look and feel for the application's frontend but also flexible to fullfill any project requirement.

Despite I know angular, I want to keep myself as far as possible from any "pure frontend framework" (react, angular, svelte, vue, etc).

I had a look to django unfold, jazzmin, jet, grapelly, adminlte, and some others but even when they usually fit most of the standard application usages, seems there is a consensous that use them as the frontend of your applications a very bad idea (eventhough I am using carefully the standard user/group/perms to restrict usage).

There is anything out there like those admin/templates that can be used confidently as a framework for my applications and help me improve my delivery times?

As an extra I would like to understand what are those good reasons why them are not recommended for frontend usage.

/r/django
https://redd.it/1ks1skr
Just launched Davia — like Lovable, but wired straight into your Python FastAPI backend

Hello,

I wanted to share a project I've working on that's called davia ai. I created it because I build all kinds of things with Python : functions, algorithms, bits of logic that do something useful. But then comes the hard part as a Python dev: letting other people actually use them - creating a frontend.

* **What My Project Does**

davia empowers developers to transform their Python applications—especially AI agents and internal tools—into interactive web apps with a dev mode on your local machine made for Python folks like us. The package integrates seamlessly with FastAPI, so all your existing endpoints, middleware, and practices still apply.

**The link is here** [https://github.com/davialabs/davia](https://github.com/davialabs/davia)

* **Comparison** (A brief comparison explaining how it differs from existing alternatives.)

**Streamlit / Gradio:** Great for quick ML demos but limited in flexibility—Davia gives you real FastAPI power with just as much ease.
**Flask / Django:** Powerful but heavy; Davia offers a lighter, faster path from Python script to full app without boilerplate.

* **Target Audience** (e.g., Is it meant for production, just a toy project, etc.)

Anyone building in Python that wants to create an appealing frontend.

Would love your feedbacks or comments on this, what could be improved.


Best,

/r/Python
https://redd.it/1ks1gck
I published my first official Python package RIDE-CLI that lets you analyze your CSV in the terminal

Hey everyone,

Recently, I published my first-ever Python package, and it's open source. It's called ride-cli - command-line tool for data analysis that lets you perform data preprocessing, exploration, and machine learning without writing any code.

### What my project does
- Menu Driven Interactive Interface: User-friendly terminal interface for data analysis
- Data Loading: Support for CSV, Excel, and Parquet files
- Data Exploration: Comprehensive statistical analysis and visualization
- Data Preprocessing: Missing value imputation, feature scaling, encoding
- AutoML: Automatic model selection and evaluation
- Visualization: Terminal-based histogram and scatter plots
- Export Options: Save processed data in multiple formats

### Why Did I create it?

In 2023, I took a statistical investigation class in my university and part of the course was to test multiple CSV files to basic info such as metadata, Descriptive stats, Summary stats, and perform Data Preprocessing for further analysis. I was tired of writing redundant code that's when I decided to write the code where I can just plug the csv files and get all the info displayed directly to me from the terminal. Suddenly most of my classmates wanted to use the same code. That's when I decided to write a package where I can use terminal flags to interact with the

/r/Python
https://redd.it/1kri32f
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/1ksd1ba
Flask app gives HTTP 403

Flask app gives HTTP 403 Forbidden on localhost (127.0.0.1:5000) – why?

I'm running a simple Flask app on my Mac using:

bashKopiérRedigerpython app.py


It starts normally, no errors in terminal. But when I open `http://127.0.0.1:5000` in my browser (Chrome or Safari), I get:

403 Forbidden – You don’t have permission to view this page.

I've disabled macOS firewall and checked that Bitdefender is not blocking anything. The app uses app.run(debug=True) and has worked before.

Why would a local Flask app return a 403 error like this? What else could block access to localhost?

/r/flask
https://redd.it/1ks2l81
D Google already out with a Text- Diffusion Model

Not sure if anyone was able to give it a test but Google released Gemeni Diffusion, I wonder how different it is from traditional (can't believe we're calling them that now) transformer based LLMs, especially when it comes to reasoning. Here's the announcement:

https://blog.google/technology/google-deepmind/gemini-diffusion/


/r/MachineLearning
https://redd.it/1ksdn9b
doc2dict: parse documents into dictionaries fast

What my project does

Converts html and pdf files into dictionaries preserving the human visible hierarchy. For example, here's an excerpt from Microsoft's 10-K.

"37": {
            "title": "PART I",
            "standardizedtitle": "parti",
            "class": "part",
            "contents": {
                "38": {
                    "title": "ITEM 1. BUSINESS",
                    "standardized
title": "item1",
                    "class": "item",
                    "contents": {
                        "39": {
                            "title": "GENERAL",
                         

/r/Python
https://redd.it/1ksgnmb
Computer for app development

Appreciating any recommendation/insights on buying a computer that is suitable for developing an app. This is a new area for me. I tried using Dell XPS with 16 GB RAM and WSL2. It was not workable. At one point, I was able to install a Android virtual device (AVD) on the Android Emulator using Android Studio, but it was way too slow to do anything. My app won't even load up. My computer does meet the recommended specs for such task, at least based on my research. Not sure the problem was on my setup or the computer. Has anyone used MacBook with 16GB RAM to do something similar? Want to get a computer that will work. Thanks.

/r/flask
https://redd.it/1krzeul
How do I annotate the results of a Django query set before filters are applied?

I have a table. I want to annotate each value in the table with a relative ordering based on a \`created\` field. I then want to further filter the table, but I want to \*preserve\* the original annotation. So for example, if something is created second, it should remain annotated as second even if additional filters are applied.

The desired SQL I want to produce is something like the following:

SELECT
"my_table"."id",
numbered_subquery.number
FROM
"my_table"
INNER JOIN (
SELECT
id,
ROW_NUMBER() OVER (ORDER BY U0."created") AS "number"
FROM "app_test" U0
WHERE (
AND U0."org" = 'xxx'
)


/r/django
https://redd.it/1ksgofq
Do you really use redis-py seriously?

I’m working on a small app in Python that talks to Redis, and I’m using redis-py, what I assume is the de facto standard library for this. But the typing is honestly a mess. So many return types are just Any, Unknown, or Awaitable[T] | T. Makes it pretty frustrating to work with in a type-safe codebase.

Python has such a strong ecosystem overall that I’m surprised this is the best we’ve got. Is redis-py actually the most widely used Redis library? Are there better typed or more modern alternatives out there that people actually use in production?

/r/Python
https://redd.it/1ksicim
I made Model Version Control Protocol for AI agents

I've been working on MVCP (Model Version Control Protocol), inspired by the Model Context Protocol (MCP), a lightweight Git-compatible tool designed specifically for AI agents to track their progress during code transformations, built using Python.

What my project does?

MVCP creates a unified, human-readable system for AI agents to save, restore, and diff checkpoints as they transform code. Think of it as specialized version control that works alongside Git, optimized for LLM-based coding assistants.

Key features:

Save checkpoints with metadata like which tools were used

Restore to previous checkpoints when things go wrong

Compare diffs between agent steps

MCP-compatible API for direct AI agent tool calling

What makes it special:

MVCP enables multiple AI agents to collaborate on the same codebase while maintaining a clear audit trail of who did what. This is particularly useful for autonomous development workflows where multiple specialized agents (coders, testers, reviewers, etc.) work toward building a repo together.All feedback welcome! The repo is open for contributions too and its under the MIT license

Target Audience:

AI agents and developers who use them

Its very early in development so please take it easy on me haha :D

Link To Repository: https://github.com/evangelosmeklis/mvcp

/r/Python
https://redd.it/1kskw3y
appending Pivot tables side by side using Excelwriter without deleting existing sheets

So I'm a New Novice to Python. I'm currently trying to replace data on an existing spreadsheet that has several other sheets. The spreadsheet would have 7 pandas pivot tables side by side, and textual data that I'm also trying to format. The code that I produce below does replace the data on the existing sheet, but only appends the first Pivot table listed , not both. I've tried using mode'w' which brings all the tables in, but it deletes the remaining 4 sheets on the file which I need. So far I've tried concatenating the pivot tables into a single DataFrame and adding spaces between (pd.concat([pivot_table1,empty_df,pivot_table2\]) ) but that produce missing columns in the pivot tables and it doesn't show the tables full length. I would love some advice as I've been working on this for a week or so. Thank you.

file_path ="file_path.xlsx"
with pd.ExcelWriter(fil_path, engine='openpyxl',mode='a', if sheet_exists='replace'

pivot_table1.to_excel(writer, sheet_name="Tables",startrow=4, startcol=5,header=True)

pivot_table2.to_excel(writer, sheet_name="Tables",startrow=4, startcol=10,header=True)


workbook= writer.book

sheet=workbook['Tables'\]

sheet['A1'\].value = "My Title"

writer.close()

/r/Python
https://redd.it/1ksnzm2
Hiring Remote India – Sr. AI/ML Engineer

D3V Technology Solutions is looking for a Senior AI/ML Engineer to join our remote team (India-based applicants only).

Requirements:

🔹 2+ years of hands-on experience in AI/ML

🔹 Strong Python & ML frameworks (TensorFlow, PyTorch, etc.)

🔹 Solid problem-solving and model deployment skills

📄 Details: https://www.d3vtech.com/careers/

📬 Apply here: https://forms.clickup.com/8594056/f/868m8-30376/PGC3C3UU73Z7VYFOUR

Let’s build something smart—together.

/r/Python
https://redd.it/1ksp1mx
Article series on how to deploy Django with Celery on AWS with Terraform

Hello guys, I am creating this series that is taking waaaaay too much time and would like to validate with you if there is even the need for it. I could not find much information when I had to deploy django, celery, flower to ECS with a Load balancer, connection to S3 and Cloud front with terraform, so I decided to create a series of articles explaining it. The bad thing is that its taking me way too long to explain all the modules of terraform and would really like to gather feedback from the community to check if its something that people really want or its irrelevant. Please feel very free on giving feedback and claps to the article if you like it

General AWS Architecture of the project

https://medium.com/@cubode/how-to-deploy-ai-agents-using-django-and-celery-on-aws-with-terraform-full-guide-part-1-ad4bdb37b863

Terraform structure

https://medium.com/@cubode/how-to-deploy-ai-agents-using-django-and-celery-on-aws-with-terraform-full-guide-part-2-fa3ff3369516

VPS and Security Groups

https://medium.com/@cubode/how-to-deploy-ai-agents-using-django-and-celery-on-aws-with-terraform-full-guide-part-3-vps-18c69fa1963c

ALB, RDS, S3, and Elastic Cache
https://medium.com/@cubode/how-to-deploy-ai-agents-using-django-and-celery-on-aws-with-terraform-full-guide-part-4-load-c6c53136a462



/r/django
https://redd.it/1ksq1xa
Aperture Convert: A simple GUI based image converter

---

Wanted to share my first project. I've been learning for only a few weeks, so I kinda expect some bugs I havent even thought about testing for. Any feedback would be greatly appreciated. Link to the github repo **HERE**

---

# Aperture Convert

---

- ## What My Project Does

- Takes images of a supported type (JPEG, PNG, TIFF, WEBP, HEIF/HEIC, CR2, ICO)
- Converts those images into a selected format (JPEG, PNG, TIFF, HEIF, BMP, ICO)
- Saves the converted images into a new folder under the same folder as the original image

---

- ## How to use:

- Add files by pressing the 'Locate Image(s)' or by dragging and dropping the images in the box
- Once images have been added, they will be displayed within the box
- Navigate through the que by pressing the arrow buttons
- Remove an image from the que by navigating to it an pressing the 'Remove' button
- Clear the full que in one click by pressing the 'Clear' button
- Press 'Convert' to start the conversion

/r/Python
https://redd.it/1ksx55v
Is it really possible to make money freelancing Django?

Man, I really have this doubt, I'm currently studying 2 frameworks Django (kind of obvious lol) and Laravel (Php) with the objective of doing freelance work, and honestly I'm liking Django more, but I would like to know generally how much those who already work with this earn per project or how much they charge per hour.

I saw some comments where people say that it is more worthwhile to have your own client network.

If anyone can answer this question of mine, I would be very grateful.

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