Python Daily – Telegram
Python Daily
2.56K subscribers
1.49K photos
53 videos
2 files
39.1K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Oh wow, you built us an admin interface too?

/r/django
https://redd.it/1fxzud1
Built an AI Engineer to Help with Django – Try it Out!

Hey r/Django,
I’ve been building an AI engineer designed to help with Django coding. It’s connected to the codebase, so you can ask technical questions and get help with issues. It’s not just an LLM, but an agent that thinks through your questions and steps to resolve them.

As a fellow Django dev, I know how frustrating it is to sift through documentation, log files and forums to find answers. I trained it on the Django open-source repo, so whether you’re exploring features, checking issues, or troubleshooting your code, Remedee is ready to go.
Try it here: chat.remedee.ai
I’d love your feedback – let me know what you think!

/r/django
https://redd.it/1fy3ss4
D Simple Questions Thread

Please post your questions here instead of creating a new thread. Encourage others who create new posts for questions to post here instead!

Thread will stay alive until next one so keep posting after the date in the noscript.

Thanks to everyone for answering questions in the previous thread!

/r/MachineLearning
https://redd.it/1fxif7x
How to find remote world wide jobs?

I'm currently working at a small company in my hometown. Python and especially django are not common here. Where I'm working modern technologies like microservices architecture, Test-Driven Development (TDD), or cutting-edge tools aren't used. I'm eager to work on high-load projects. Additionally, I'm looking for opportunities with a higher salary. Are there any other platforms besides Upwork where I can find worldwide remote jobs or roles that offer relocation?

/r/django
https://redd.it/1fy7jhf
Python 3.13 released

https://www.python.org/downloads/release/python-3130/

> This is the stable release of Python 3.13.0
>
> Python 3.13.0 is the newest major release of the Python programming language, and it contains many new features and optimizations compared to Python 3.12. (Compared to the last release candidate, 3.13.0rc3, 3.13.0 contains two small bug and some documentation and testing changes.)
>
> Major new features of the 3.13 series, compared to 3.12
>
> Some of the new major new features and changes in Python 3.13 are:
>
> New features
>
> - A new and improved interactive interpreter, based on PyPy's, featuring multi-line editing and color support, as well as colorized exception tracebacks.
> - An experimental free-threaded build mode, which disables the Global Interpreter Lock, allowing threads to run more concurrently. The build mode is available as an experimental feature in the Windows and macOS installers as well.
> - A preliminary, experimental JIT, providing the ground work for significant performance improvements.
> - The locals() builtin function (and its C equivalent) now has well-defined semantics when mutating the returned mapping, which allows debuggers to operate more consistently.
> - A modified version of mimalloc is now included, optional but

/r/Python
https://redd.it/1fybncq
Tuesday Daily Thread: Advanced questions

# Weekly Wednesday Thread: Advanced Questions 🐍

Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.

## How it Works:

1. **Ask Away**: Post your advanced Python questions here.
2. **Expert Insights**: Get answers from experienced developers.
3. **Resource Pool**: Share or discover tutorials, articles, and tips.

## Guidelines:

* This thread is for **advanced questions only**. Beginner questions are welcome in our [Daily Beginner Thread](#daily-beginner-thread-link) every Thursday.
* Questions that are not advanced may be removed and redirected to the appropriate thread.

## Recommended Resources:

* If you don't receive a response, consider exploring r/LearnPython or join the [Python Discord Server](https://discord.gg/python) for quicker assistance.

## Example Questions:

1. **How can you implement a custom memory allocator in Python?**
2. **What are the best practices for optimizing Cython code for heavy numerical computations?**
3. **How do you set up a multi-threaded architecture using Python's Global Interpreter Lock (GIL)?**
4. **Can you explain the intricacies of metaclasses and how they influence object-oriented design in Python?**
5. **How would you go about implementing a distributed task queue using Celery and RabbitMQ?**
6. **What are some advanced use-cases for Python's decorators?**
7. **How can you achieve real-time data streaming in Python with WebSockets?**
8. **What are the

/r/Python
https://redd.it/1fymjo9
Just Released Version 0.5.0 of Django Action Triggers!

First off, a huge thank you to everyone who provided feedback after the release of version 0.1.0! I've taken your input to heart and have been hard at work iterating and improving this tool. I’m excited to announce the release of version 0.5.0 of django-action-triggers.

There’s still more to come in terms of features and addressing suggestions, but here’s an overview of the current progress.

# What is Django Action Triggers

Django Action Triggers is a Django library that lets you trigger specific actions based on database events, detected via Django Signals. With this library, you can configure actions that run asynchronously when certain triggers (e.g., a model save) are detected.

For example, you could set up a trigger that hits a webhook and sends a message to AWS SQS whenever a new sale record is saved.

# Supported Integrations?

Here’s an overview of what integrations are currently supported:

Webhooks
RabbitMQ
Kafka
Redis
AWS SQS (Simple Queue Service)
AWS SNS (Simple Notification Service)
AWS Lambda (New in version 0.5.0)
GCP Pub/Sub (New in version 0.5.0)

# Comparison

The closest alternative I've come across is Debezium. Debezium allows streaming changes from databases. This project is different and is more suited for people who want a Django integration in the form of a library. Debezium on

/r/django
https://redd.it/1fyn1vo
Flask Ecomm project

Hi all, I made this ecomm project using Flask! I could use some help listing some features I could add and some more general feedback. Also if someone wants to look/use the repo please DM me and I'll share the link once I upload it to GitHub just make sure to leave a star lol ;)

https://reddit.com/link/1fy34of/video/6l1piixvsatd1/player



/r/flask
https://redd.it/1fy34of
Just Released Version 0.5.0 of Django Action Triggers!

First off, a huge thank you to everyone who provided feedback after the release of version 0.1.0! I've taken your input to heart and have been hard at work iterating and improving this tool. I’m excited to announce the release of version 0.5.0 of django-action-triggers.

There’s still more to come in terms of features and addressing suggestions, but here’s an overview of the current progress.

# What is Django Action Triggers

Django Action Triggers is a Django library that lets you trigger specific actions based on database events, detected via Django Signals. With this library, you can configure actions that run asynchronously when certain triggers (e.g., a model save) are detected.

For example, you could set up a trigger that hits a webhook and sends a message to AWS SQS whenever a new sale record is saved.

# Supported Integrations?

Here’s an overview of what integrations are currently supported:

Webhooks
RabbitMQ
Kafka
Redis
AWS SQS (Simple Queue Service)
AWS SNS (Simple Notification Service)
AWS Lambda (New in version 0.5.0)
GCP Pub/Sub (New in version 0.5.0)

# Comparison

The closest alternative I've come across is Debezium. Debezium allows streaming changes from databases. This project is different and is more suited for people who want a Django integration in the form of a library. Debezium on

/r/djangolearning
https://redd.it/1fyn2vt
Python 3.13's best new features

Everyone has their own take on this topic and here is mine as both a video and an article.

I'm coming with the perspective of someone who works with newer Python programmers very often.

My favorite feature by far is the new Python REPL. In particular:

- Block-level editing, which is a huge relief for folks who live code or make heavy use of the REPL
- Smart pasting: pasting blocks of code just works now
- Smart copying: thanks to history mode (with F2) copying code typed in the REPL is much easier
- Little niceities: exit exits, Ctrl-L clears the screen even on Windows, hitting tab inserts 4 spaces

The other 2 big improvements that many Python users will notice:

- Virtual environments are now git-ignored by default (they have their own self-ignoring .gitignore file, which is brilliant)
- PDB got 2 fixes that make it much less frustrating: breakpoints start at the breakpoint and not after and running Python expressions works even when they start with help, list, next, or another PDB command

These are just my takes on the widely impactful new features, after a couple months of playing with 3.13. I'd love to hear your take on what the best new features are.

/r/Python
https://redd.it/1fyeo1g
I love Django! I don't use any third party django extensions, am I missing out?

Hello everyone,
Django has been really good lately for the different applications I use. Beyond the code, even the philosophy of Django has helped me structured my thinking. I also started using Cookie Cutter, that stuff is awesome. I have been tempted to use certain django extensions such as Django Markdown (for supporting markdown) and Django Ledger (for accounting stuff I knew now much about).

In the end, I didn't implement neither because I found alternative solutions. I would really love hearing from the community?
1. Do you stand by any specific django extensions that you use in your projects?
2. How is your experience like as a someone who contributes to extensions?
3. What were some of your negative experiences with extensions?



/r/django
https://redd.it/1fyspu3
Pylon: A Web-Based GUI Library for Desktop Applications

# 💎 What is Pylon?

Pylon is a web-based GUI library designed for desktop applications, providing a Python-powered alternative to frameworks like Electron and Tauri. It simplifies desktop app development by integrating Python features with a modern web-based interface, making it ideal for AI-driven applications.

# 🎯 Target Audience

Pylon is designed for both beginners and experienced developers who want to build desktop applications using Python. It's particularly suited for those seeking an easy-to-use, Python-centric framework to develop robust desktop apps, especially those incorporating AI functionalities.

# 🔍 Comparison with Existing Alternatives

Unlike general-purpose frameworks such as Electron and Tauri, Pylon is tailored specifically for Python developers. It offers native support for Python's ecosystem and includes optimizations for building AI-powered desktop applications, making it a great choice for developers integrating machine learning models into their apps.

# Key Features 🚀

* **Web-Based GUI**: Build UIs for desktop apps using HTML, CSS, and JavaScript.
* **System Tray Support**: Integrate system tray icons with ease.
* **Multi-Window Management**: Create and manage multiple windows seamlessly.
* **Python-JavaScript Bridge API**: Effortlessly bridge Python and JavaScript functionality.
* **Single Instance Support**: Prevent multiple instances of the app from running.
* **Comprehensive Desktop Features**: Includes monitor management, desktop capture, notifications, shortcuts, and clipboard access.
* **Clean Code Structure**: Simplified

/r/Python
https://redd.it/1fysjpn
Niquests v3.9.0 Released

We are proud to announce our latest advancement for Niquests. Since last time we published in
this community, a lot of things happened.

We landed for you:

- Post-Quantum Security for QUIC
- QUIC v2
- Integrated WebSocket Support
- HTTP Trailers
- Early Responses like "103 Early Hints"
- Happy EyeBalls

The project reached 800+ stars with half a million downloads since the beginning.
We are grateful to Microsoft and involved parties for funding our work through the Microsoft FOSS Fund program.

What My Project Does

Niquests is a HTTP Client. It aims to continue and expand the well established Requests library.
For many years now, Requests has been frozen. Being left in a vegetative state and not evolving,
this blocked millions of developers from using more advanced features.

Target Audience

It is a production ready solution. So everyone is potentially concerned.

Comparison

Niquests is the only HTTP client capable of serving HTTP/1.1, HTTP/2, and HTTP/3 automatically.
The project went deep into the protocols (early responses, trailer headers, etc...) and all related
networking essentials (like DNS-over-HTTPS, advanced performance metering, etc..)

You may find the project at: https://github.com/jawah/niquests


/r/Python
https://redd.it/1fyv8uh
ZMAG (ZeroMQ & GraphQL)

Hi everyone,

# Docs:

[https://hlop3z.github.io/zmag/](https://hlop3z.github.io/zmag/)

# GitHub:

[https://github.com/hlop3z/zmag/](https://github.com/hlop3z/zmag/)

# What My Project Does:

ZMAG is a framework designed for building **network APIs** rather than traditional web applications, leveraging the unique combination of **GraphQL** and **ZeroMQ**. With **ZeroMQ** you can create different system. Examples:

* **Request / Response**
* **Push / Pull**
* **Publish / Subscribe**

# Target Audience:

Currently is a toy project, I’m going to use it to manage projects internally, which I made with Django and FastAPI.

# Comparison:

As far as I know there’s nothing that combines **GraphQL** and **ZeroMQ** into a framework. Something similar I know that exist but not with GraphQL is [https://www.zerorpc.io/](https://www.zerorpc.io/)

/r/Python
https://redd.it/1fyu9v6
Loading private key of a certificate in local windows machine store

To use Microsoft graph API we use a service principal and a certificate. I can retrieve the certificate if it’s in azure key vault and use it to get an MSAL token for authentication. I am unable to do that if the certificate is in local windows machine certificate store.
Has anyone ever did this? I can’t find any working samples on the internet.
Would really appreciate a solution.

/r/Python
https://redd.it/1fz0ud0
How to configure celery?

I am currently running a flask backend server that is used for various features and one of the features I have added is a model for prediction that takes about 5 to 10 minutes to train on hitting an api on frontend which works fine but the api itself timesout after 2 minutes although the model still gets trained and stored for each user. Now issue is to prevent a mad user experience I wanted to train the model in background and came across celery with redis which I was already for storing sessions so thought to use it and everything runs only just when I use @shared_task decorator to run my task it give Error 61 of connection refused although on running the celery command and backend it says celery is connected. Can someone help me here?

Edit - I used rabbitmq as the broker and redis as result backend and everything worked smoothly. Thanks everyone

/r/flask
https://redd.it/1fyajiz
Production level project help..

I am using boto3 with flask to convert video files (wth mediaConverter), after job done then only saving the video related data in mongodb, but how can I get to know the job is done, so I used sqs and SNS of AWS is it good in production level
Or u have some other approaches..

I want different scenarios and solutions instead of sns and sqs help with this please 🥺


/r/flask
https://redd.it/1fy7fi7
2024 Python Developers Survey

The 2024 Python Developers Survey run by the Python Software Foundation in partnership with JetBrains is now open!

Survey Link - 10-15 minutes to complete

Blog post

/r/Python
https://redd.it/1fz1siq
I make a python library for use as wrapper and transform a pdf in html without lose format

Hello everyone, how are you? I recently created a library wrapper for PDF2HTMLEX for use in Python, this library can transform PDF files to HTML and also convert all PDF files in a folder to HTML semi-automatically.

I would appreciate your feedback by using it, making pull requests or stars if you like:



Repository URL:

https://github.com/gabriel-batistuta/pypdf2htmlEX



The library can be downloaded from PYPI as well:

https://pypi.org/project/pypdf2htmlex/

/r/Python
https://redd.it/1fz9ynu
I just wanna tell you guys that I did it!

I'm sorry oif this is not the right space but I didn't have someone to share this and would actually understand my happiness.

I was finally able to deploy my Django application on Digital Ocean with Postgres, Nginx, and Gunicorn on its Ubuntu machine. I also pointed my domain to the IP and set up the SSL certification. This took me days and I had to destroy the machine multiple times. Oh I also configured redis and celery with different workers.

I'm so hyped 😂😂

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