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
Learn Restful API with Flask

🚀 Mastering RESTful APIs with Python and Flask 🚀

Are you ready to take your skills to the next level? I'm excited to announce the launch of my new Udemy course, designed to help you achieve your goals and excel in your field!🎓 Course Highlights:

* Comprehensive, easy-to-follow lessons
* Practical exercises and real-world examples
* Learn at your own pace, from anywhere

💡 Why Enroll?Whether you're a beginner looking to get started or a seasoned professional seeking to refine your skills, this course has something for everyone. Gain in-depth knowledge, practical skills, and the confidence to succeed.

🔗 Enroll Now: [https://www.udemy.com/course/mastering-restful-apis-a-comprehensive-guide/?referralCode=727DF5F0596A9494D3B5](https://www.udemy.com/course/mastering-restful-apis-a-comprehensive-guide/?referralCode=727DF5F0596A9494D3B5)

Join me on this exciting learning journey and unlock your full potential. See you in the course!

#Udemy #Python #flask #OnlineLearning #SkillDevelopment #Education #CourseLaunch #LearnFromHome

/r/flask
https://redd.it/1dnamd8
I Created the Definitive AUTOMATIC Shiny Hunter for Pokémon BDSP in Python

What My Project Does: Hey everyone! I am Dinones! I coded a Python program using object detection that lets my computer hunt for shiny Pokémon on my physical Nintendo Switch while I sleep. So far, I’ve automatically caught shiny Pokémon like Giratina, Dialga or Azelf, Rotom, Drifloon, all three starters, and more in Pokémon BDSP. Curious to see how it works? Check it out! The program is available for everyone! Obviously, for free; I'm just a student who likes to program this stuff in his free time :)

The games run on a Nintendo Switch (not emulated, a real one). The program gets the output images using a capture card, then, it process them to detect whether the pokemon is shiny or not (OpenCV). Finally, it emulates the joycons using bluetooth (NXBT) and control the Nintendo.

I also want to know what do you think about it: Is it fair to use it in singleplayer? And multiplayer?

Target Audience: All Pokémon BDSP gamers.
Comparison: As far as I know, nobody did this before.

📽️ Youtube: https://www.youtube.com/watch?v=84czUOAvNyk
🤖 Github: https://github.com/Dinones/Nintendo-Switch-Pokemon-Shiny-Hunter

/r/Python
https://redd.it/1evng2g
Master the python logging module

As a consultant I often find interesting topics that could warrent some knowledge sharing or educational content.
To satisfy my own hunger to share knowledge and be creative I've started to create videos with the purpose of free education for junior to medior devs.

My first video is about how the python logging module works and hopes to demystify some interesting behavior.

Hope you like it!

https://youtu.be/A3FkYRN9qog?si=89rAYSbpJQm0SfzP


/r/Python
https://redd.it/1eyn4n7
Manim : package for maths animation

I recently explored Manim, an open-sourced python package for generating animated videos for explaining maths. It includes animations for shapes, equations, codes, graphs, etc. The repo is trending on GitHub as well. The demo also looks very impressive. Check it out here : https://youtu.be/QciJxVjF4M4?si=Bk_gU4Tj5f6gPpiq

/r/Python
https://redd.it/1gbldgk
Should I go for Django?

Hey everyone, I am in 2nd Year of My bachelor's degree in Computer Science. I have been using Flask for the past 1 year. Many people have told me that there is no future of Flask. I know that Django is feature rich whereas Flask provides a minimalist approach where you only install what you need. But the problem arises is that I am concerned about my skills in the long run. Is Flask used at the production level? My goal is to crack Big Tech company. Is it really worth the hassle to move towards Django or should I move with Flask?

I hope to hear from the community.


#django #learndjango #python #drf #rest #api

/r/django
https://redd.it/1hsi5cz
Keyboard shortcut to clear code shell output in Jupyter notebook not working

Hi everyone!
Can anyone help with the keyboard shortcut to clear the cell output in Jupyter notebook v7.2.2?
A simple Google search yields the shortcut as "O" / "Shift+O" as per different articles, but none of them works in v7.2.2 and the only way to go about it now seems as "right click -> clear cell output", which isn't optimal.

#jupyternotebook #python

/r/IPython
https://redd.it/1i0zwrk
Introducing AirDoodle – I built an application to make presentations with Hand Gestures! 👌#python

I believe presentations should be seamless, interactive, and futuristic—so I built AirDoodle to make that happen! No clickers, no keyboards—just hand gestures powered by programming. 🖐️

https://youtu.be/vJzXBaDmKYg

/r/Python
https://redd.it/1izzw4t
Flask Async Mail

🚀 Introducing Flask-Async-Mail! 📧

Hey everyone! I just released Flask-Async-Mail, a lightweight and flexible asynchronous email-sending library for Flask apps using Celery. 🎉

🔹 Features:
Supports both synchronous & asynchronous email sending
Works with Celery & Redis
Supports plaintext & HTML emails
Simple setup & easy integration with Flask

👉 Try it out & contribute!
📦 PyPI: https://pypi.org/project/flask-async-mail/
💻 GitHub: https://github.com/manitreasure1/flas-async-mail.git

I’d love your feedback, contributions, and stars on GitHub! Let’s build something awesome together. 🚀🔥

\#Flask #Python #Async #Email #OpenSource

/r/flask
https://redd.it/1j10wib
5 Things You Wish You Knew Before Starting Django



https://preview.redd.it/lmb92qul68ve1.png?width=1280&format=png&auto=webp&s=ccaeeb6b1e2419a9c50744b0d5ad0930da71edc7

After 5 years as a backend developer, here's what I really wish someone told me when I started learning Django 👇

1️⃣ Django is NOT just the Admin panel
Many people think Django is only for quick CRUD apps because of its admin interface. But the real power lies in custom apps, APIs, signals, middleware, and reusable architecture.

2️⃣ Class-Based Views (CBVs) are powerful—but confusing at first
CBVs feel overwhelming initially, but once you master ListView, DetailView, and mixins, they save tons of code.

3️⃣ Use Django REST Framework (DRF) early
If you're building APIs, DRF is your best friend. Master Serializers, ViewSets, and Routers early. It’ll make you a 10x backend dev.

4️⃣ Project structure matters
Splitting apps properly, separating services, utils, and permissions, and planning for scale early saves massive refactoring pain later.

5️⃣ Signals and Middleware are game-changers
Want to trigger actions automatically or customize request/response flow? Learn signals and middleware to level up.

💡 Bonus Tip: Learn Django the right way. Don’t just follow CRUD tutorials—build real-world systems (accounting, HR, booking, dashboards, etc.)

🔥 I’m building a full real-world Django backend course (no repetitive clones, pure architecture + business logic).
Follow me if you're interested 💬

\#django #python

/r/django
https://redd.it/1k0oyxr
Microsoft layoffs hit Faster CPython team - including the Technical Lead, Mark Shannon

From Brett Cannon:

> There were layoffs at MS yesterday and 3 Python core devs from the Faster CPython team were caught in them.

> Eric Snow, Irit Katriel, Mark Shannon

IIRC Mark Shannon started the Faster CPython project, and he was its Technical Lead.

/r/Python
https://redd.it/1kmwdbu
Mopad: Gamepad support for Python is finally here!

What my project does:

Browsers have a gamepad API these days, but these weren't exposed to Python notebooks yet. Thanks to mopad, you can now use a widget (made with anywidget!) to control Python with a game controller. It's more useful that you might initially think because this also means that you can build labelling interfaces in your notebook and add labels to data with a device that makes everything feel like a fun video game.

Target audience:

It's mainly meant for ML/AI people that like to work with Python notebooks. The main target for the widget is marimo but because it's made with anywidget it should also work in Jupyter/VSCode/colab.

Comparison:
I'm not aware of other projects that add gamepad support, but one downside that's fair to mention is that this approach only works in browser based notebook because we need the web API. Not all gamepads are supported by all vendors (MacOS only allows for bluetooth gamepads AFAIK), but I've tried a bunch of pads and they all work great!

If you're keen to see a demo, check the YT video here: https://www.youtube.com/watch?v=4fXLB5\_F2rg&ab\_channel=marimo
If you have a gamepad in your hand, you can also try it out on

/r/Python
https://redd.it/1l269h7
How are you using just (Justfile) local workflows for Python projects?

Hynek Schlawack just put out another great video on uv (https://youtu.be/TiBIjouDGuI?si=lBfoBG8rgUFcS3Sx), this time also discussing how he uses the just tool to store commands in a cross-platform portable way to do everyday tasks like installing/refreshing virtual environments, running tests/code checks, and development tasks like sending requests.

Is this getting common in Python land? I know it is among Rustaceans (where I first saw it a few months ago), anyone have good examples they wrote/saw, or experiences? Very curious to hear more: Hynek’s style of usage is quite different to how I have been using them. Links to example Justfiles welcome!

I am mainly using them for pre-commit/pre-push checks and to make CI setup ‘self-documenting’ (i.e. clear what is run, from where)

/r/Python
https://redd.it/1ltr3n1
Need Career Advice: Stuck in .NET Web Forms, Should I Switch to Python Flask?

Hi everyone,

I’ve been working at a company for the past 4 months. I was hired to work on a .NET Web Forms project, but the pace of work is extremely slow. For the last 3 months, I haven’t written any real code — I’ve just been learning about Web Forms.

The company is saying they’ll give me actual work on an ERP project starting next week, but honestly, I’m not feeling confident. I’ve been told there will be no proper mentorship or guidance, and I find ERP systems really hard to grasp.

On the other hand, I’m passionate about innovation and working with new technologies. I really enjoy Python and I’ve been considering switching over to Flask development instead, since it aligns more with what I want to do in the future.

I’m feeling a lot of stress and confusion right now. Should I stick it out with this company and the ERP/.NET stuff, or should I start focusing on Python Flask and make a shift in that direction?

Any advice from experienced developers would be really appreciated. Thanks!

\#CareerAdvice #DotNet #Python #Flask #ERP #WebForms #JuniorDeveloper #ProgrammingHelp

/r/flask
https://redd.it/1mbebbe
I created a playground to my python UI framework DARS

I'm excited to share the new Dars Playground! I have been working on this project for a long time now and I am expanding its ecosystem as much as I can. Now I have just launched a playground so that everyone can try Dars on the web without installing anything, just reading a little documentation and using bases from other frameworks. The next step will be to implement a VDom (virtual dom) option to the framework itself and a signals (hooks) system, all of this optional for those who want to use the virtual dom and those who do not, so use the export or hot reload that is already integrated.

The playground allows you to experiment with Dars UI code and preview the results instantly in your browser. It's a great way to learn, prototype, and see how Dars turns your Python code into static HTML/CSS/JS.

Key Features:

• Write Dars Python code directly in the editor.
• Instant preview with a single click (or Ctrl + Enter).
• Ideal for experimenting and building UI quickly.

Give it a try and tell me what you think!

Link to Playground: https://dars-playground.vercel.app
Dars GitHub repository: https://github.com/ZtaMDev/Dars-Framework

#Python #UI #WebDevelopment #DarsFramework

/r/Python
https://redd.it/1n69tas
Oxidized Python/Django packages?

Hey, I’m building own project using Django and many packages use Rust under the hood.

Interesting what people use.

My list of all I’ve used so far:

Django:
- django-minify-html

Logging:
- logly

Web:
- robyn

Database:
- psqlpy

Date time:
- whenever

JSON:
- orjson

Audio:
- sphn

Files:
- opendal

Web server:
- granian
- ferron

Templates:
- minijinja

Code checking:
- ruff

Venv:
- uv

#python #rust

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