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
CustomTkinter Snippets v3.0.0: Enhance Your Python GUI Workflow!

Excited to announce CustomTkinter Snippets v3.0.0! This Visual Studio Code extension turbocharges your Python GUI development with intuitive code snippets. With a wide range of components covered and customization options available, coding sleek GUIs has never been easier.

**What's New:**

* Expanded snippet coverage
* Enhanced customization options
* Bug fixes for smoother development

**TODO:**

* Addition of special events and binds as snippets
* Addition of object based snippets

Give it a try and supercharge your GUI development today!

**Links:**

Repository Link: [CustomTkinter Snippets](https://github.com/AshhadDevLab/CustomTkinter-Snippets)

Extension Link: [CustomTkinter Snippets VSCode Extension](https://marketplace.visualstudio.com/items?itemName=AshhadDevLab.customtkinter-snippets)

**Credit:**

Credits to [Tom Schimansky](https://github.com/TomSchimansky) for the awesome [CustomTkinter](https://github.com/TomSchimansky/CustomTkinter) library!

Don't forget to star the repo!

`#Python` `#GUI` `#Development` `#VisualStudioCode`

/r/Python
https://redd.it/1am0hp0
Magnus - a simplified workflow definition language which works in local to Argo without any change



[Link to the repo](https://github.com/AstraZeneca/magnus-core)

Magnus is a simplified workflow definition language that helps in:

* **Streamlined Design Process:** Magnus enables users to efficiently plan their pipelines with [stubbed nodes](https://astrazeneca.github.io/magnus-core/concepts/stub), along with offering support for various structures such as [tasks](https://astrazeneca.github.io/magnus-core/concepts/task), [parallel branches](https://astrazeneca.github.io/magnus-core/concepts/parallel), and [loops or map branches](https://astrazeneca.github.io/magnus-core/concepts/map) in both [yaml](https://astrazeneca.github.io/magnus-core/concepts/pipeline) or a [python SDK](https://astrazeneca.github.io/magnus-core/sdk) for maximum flexibility.



* **Incremental Development:** Build your pipeline piece by piece with Magnus, which allows for the implementation of tasks as [python functions](https://astrazeneca.github.io/magnus-core/concepts/task/#python_functions), [notebooks](https://astrazeneca.github.io/magnus-core/concepts/task/#notebooks), or [shell scripts](https://astrazeneca.github.io/magnus-core/concepts/task/#shell), adapting to the developer's preferred tools and methods.



* **Robust Testing:** Ensure your pipeline performs as expected with the ability to test using sampled data. Magnus also provides the capability to [mock and patch tasks](https://astrazeneca.github.io/magnus-core/configurations/executors/mocked) for thorough evaluation before full-scale deployment.



* **Seamless Deployment:** Transition from the development stage to production with ease. Magnus simplifies the process by requiring [only configuration changes](https://astrazeneca.github.io/magnus-core/configurations/overview) to adapt to different environments, including support for [argo workflows](https://astrazeneca.github.io/magnus-core/configurations/executors/argo).


* **Efficient Debugging:** Quickly identify and resolve issues in pipeline execution with Magnus's local debugging features. Retrieve data from failed tasks and [retry failures](https://astrazeneca.github.io/magnus-core/concepts/run-log/#retrying_failures) using your chosen debugging tools to maintain a smooth development experience.


Along with the developer friendly features, magnus also acts as an interface to production grade concepts such as [data

/r/Python
https://redd.it/1ar66d5
I created a video on why you should be careful when using Python dictionaries as function parameter

This talks about mutability as Changes inside a function affect the original dictionary which could lead to unexpected behaviors and hard to debug issues.


Here is a link to the video

https://www.youtube.com/watch?v=zTTDQePffxU

/r/Python
https://redd.it/1d9upsj
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