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
Bagels v0.3 update! Expense tracker that lives in your terminal.

Hi r/Python! I'm excited to share about the launch of Bagels 0.3 - a terminal (UI) expense tracker built with the textual TUI library! Check out the git repo for screenshots!

This new major version adds a whole new manager page, equipped with a display of 3 new plots (spending per day, cummulative spending trajectory and balance over time). The new budget section is designed to assist with saving part of your income and limit unnecessary spending!

The plotting is implemented with plotext!

# Target audience

Pain point: I find it annoying that my mobile budget tracker often gets out of sync with my actual balance when a record is missing, and I have no clue when that was. Also, it was frustrating that the most feature-rich budget trackers require you to pay to export your data.

Bagels is designed for you to conveniently enter your records at the end of each day, and store them in sqlite for easy export and processing if needed!

Comparison: Unlike traditional expense trackers that are accessed by web or mobile, Bagels lives in your terminal. Intended for you to check in and add records for the day, instead of doing so on the go with a mobile app.

#

/r/Python
https://redd.it/1i8xjry
Django + HTMX

I am playing around for a while now with this combo with mixed feelings.
It’s really hard to remain a clear structure when rendering only with partials, snippets and including it then in content…
Do you struggle with that too? Is there any helpful resource how not to lose track with the overall structure?



/r/django
https://redd.it/1i8zs5l
Example large open source rest API?

I started reading Indico, but looks like it is mostly a server rendered app rather than an API and SPA. Are there are other large examples that I can read?

/r/flask
https://redd.it/1i9cewi
Need Help Improving My Resume – Seeking Ideas and Feedback!

I’m currently in the process of updating my resume and could really use some fresh ideas or suggestions to make it stand out. I’m applying for a Python Django Developer/Full Stack Developer role, and I want my resume to effectively highlight my skills and experience.

Here’s a bit about me:

Experience: I have 2 years of experience as a Python Django Trainer, where I’ve taught aspiring developers and built a strong foundation in Python, Django, and web development. I’m now transitioning into Full Stack Development roles to apply my technical and teaching expertise in real-world projects.
Skills: Python, Django, JavaScript, REST APIs, SQL, Git, and front-end tools like Tailwind CSS and Bootstrap. I also have experience with creating and deploying projects using Django, collaborating with teams, and building RESTful applications.
Career Goal: I aim to grow as a Full Stack Developer by contributing to innovative projects, building scalable solutions, and exploring modern web development practices.

If you have any suggestions for improving the structure, format, or content of my resume, I’d really appreciate your input.

Are there specific sections or layouts that work best for tech resumes?
What’s the best way to showcase teaching experience in a way that resonates with recruiters?


/r/djangolearning
https://redd.it/1i8122h
Need Help deploying React + Flask

Hi, flask newbie here


i spent quite a while developing a react and flask application thats pretty simple,

react fronend, sends post requests and get requests to flask backend, uses routing aswell.

i had it up working fine with localhost:5000 and localhost:3000 and now I'm trying to deploy it,
tried to use Dockerfile with render and deploy them both at the same time, ended up being really frustrating so i switched to using a digitalocean droplet, and following a tutorial that got me setup with nginx, but because my flask backed doesnt really display anything i am having trouble debugging - i set up a system service on the droplet (just a linux vm) so a gunicorn process is alway running, but i cant visit it properly. also i have a domain but it doenst seemt o work with nginx.

any advice on deployment?
Thanks

/r/flask
https://redd.it/1i95cz0
Any reason to NOT use Pyright?

Based on this comparison (by Microsoft): https://htmlpreview.github.io/?https://github.com/python/typing/blob/main/conformance/results/results.html

It seems Pyright more or less implements nearly every specification in the Python Type System, while it's competitors are still lagging behind. Is there even any reason to not use Pyright (other than it relying on Node.js, but I don't think it's that big of a deal)? I know MyPy is the so-called 'Reference Implementation' but for a Reference Implementation it sure is lagging behind a lot.

EDIT: I context is which Type Checker is best to use as a Language Server, rather than CI/CD.

/r/Python
https://redd.it/1i8pm2f
blackjack from 100 days of python code.

Wow. This was rough on me. This is the 3rd version after I got lost in the sauce of my own spaghetti code. So nested in statements I gave my code the bird.

Things I learned:
write your pseudo code. if you don't know **how** you'll do your pseudo code, research on the front end.
always! debug before writing a block of something
if you don't understand what you wrote when you wrote it, you wont understand it later. Breakdown functions into something logical, then test them step by step.

good times. Any pointers would be much appreciated. Thanks everyone :)

from random import randint
import art

def checkscore(playerlist, dealerlist): #get win draw bust lose continue
if len(player
list) == 5 and sum(playerlist) <= 21:
return "win"
elif sum(player
list) >= 22:
return "bust"
elif sum(playerlist) == 21 and not sum(dealerlist)

/r/Python
https://redd.it/1i8xqld
Zoho's ZeptoMail has released a Django integration pip package.

/r/django
https://redd.it/1i9jh9n
Django Ninja vs DRF for Async ? Seeking Advice

Hey everyone,

We’re building an API for our app, and while we really want to use Django, we need robust async capabilities since we’ll be making external API requests (e.g., OpenAI, LLMs).

We’re torn between Django REST Framework (DRF) and Django Ninja. While Django Ninja supports async out of the box and looks very developer-friendly, we’re concerned about its long-term support and community size compared to DRF. Future-proofing our app is important since this API will be a core part of our project.

For those who have used Django Ninja in production, would you recommend it? What are your experiences with its stability and scalability?

If not Django Ninja, how would you approach incorporating async functionality into a DRF-based API? Any advice or recommendations would be greatly appreciated! We will definitely use Celery for some tasks but rn we're looking for a solution for immediate responses.

Thanks in advance! 🙏


P.S. We also need robust permission handling since we need to be HIPAA compliant.

/r/django
https://redd.it/1i9f9bb
Help Needed: Unable to Update Field Values in Web App (304 Not Modified Issue)

Hi All,

Hi everyone,
I'm working on a small project involving web application development. While I can successfully create records for users, I'm running into trouble updating field values. Every time I try to update, I encounter a 304 Not Modified status response.

I suspect there's something wrong in my code or configuration, but I can't pinpoint the exact issue.

Here’s what I’d like help with:

Understanding why I might be receiving a `304 Not Modified` status.
Identifying the part of the code I should focus on (frontend or backend).

Below is a brief overview of the technologies I’m using and relevant details:

Frontend: \[HTML, CSS, JavaSCript\]
Backend: [Python\]
Database: \[SQLAlchemy, MySQL\]
HTTP Method for Update: POST, GET
Error Details:
127.0.0.1 \- - [25/Jan/2025 12:03:07\] "GET /static/css/style.css HTTP/1.1" 304 -
[127.0.0.1](http://127.0.0.1) \- - \[25/Jan/2025 12:03:07\] "GET /static/js/profile\_details.js HTTP/1.1" 304 -
127.0.0.1 \- - [25/Jan/2025 12:03:07\] "GET /static/images/default_placeholder.png HTTP/1.1" 304 -
[127.0.0.1](http://127.0.0.1) \- - \[25/Jan/2025 12:03:07\] "GET /static/js/calendar\_availability.js HTTP/1.1" 304 -
127.0.0.1 \- - [25/Jan/2025 12:03:23\] "GET /static/css/style.css HTTP/1.1" 304 -

I’d appreciate any guidance or suggestions. If needed, I can share snippets of the relevant code. Thank you in

/r/flask
https://redd.it/1i9uqpw
Possibility of Django being helpful to land a job

Hey guys I am an aspiring software engineer who has made and launched a live website using Django. I really like Django but I don’t see that many career opportunities that Django can give me, so I am thinking if I should focus on data science/analytics. What are your honest thoughts about this?

/r/django
https://redd.it/1ia5gbk
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/1ia0tm7
A technical intro to Ibis: The portable Python DataFrame library

We recently explored Ibis, a Python library designed to simplify working with data across multiple storage systems and processing engines. It provides a DataFrame-like API, similar to Pandas, but translates Python operations into backend-specific queries. This allows it to work with SQL databases, analytical engines like BigQuery and DuckDB, and even in-memory tools like Pandas. By acting as a middle layer, Ibis addresses challenges like fragmented storage, scalability, and redundant logic, enabling a more consistent and efficient approach to multi-backend data workflows. Wrote up some learnings here: https://blog.structuredlabs.com/p/a-technical-intro-to-ibis-the-portable?r=4pzohi&utm\_campaign=post&utm\_medium=web&showWelcomeOnShare=false

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