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
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
Currex - Pythonic currency calculator with exchange rates

Repo: [https://github.com/stared/currex](https://github.com/stared/currex)
Demo: [try in Google Colab without installing anything](https://colab.research.google.com/github/stared/currex/blob/main/currex.ipynb)

I often use Python as a command-line calculator. However, I frequently found myself going back to Google Search to convert between currencies. So, I created this library to make adding, multiplying, and converting between currencies easy. One of its core features is autocasting - when working with multiple currencies, it automatically converts them to match the first currency used.

# What My Project Does

Currex is a Pythonic currency calculator that makes working with currencies and exchange rates simple and smooth. It allows you to:

- Add, subtract, multiply, and divide currencies as if they were numbers
- Easily convert between currencies (e.g., USD to EUR)
- Autocast when mixing multiple currencies (they automatically convert to the first currency referenced)
- Fetch exchange rates from [HexaRate](https://hexarate.paikama.co/) in real-time

Here's a simple example:

```python
from currex import *

# use currencies as if they were numbers
100 * USD # USD(100.00)
12 * USD(100) # USD(1200.00)

# convert currencies to other currencies
USD(100).to(EUR) # EUR(85.30)
USD(100).to(PLN) # PLN(430.50)

# this syntax is also supported
PLN(EUR(12)) # PLN(51.33)


/r/Python
https://redd.it/1i9sn69
Best AI for python programming?

I've been using Chatgpt, but it isn't up to the mark. Like it can code but when I prompt it to code without this module/function, it fails most of the time. Would love to get to know which AI does the best.



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