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
Is it possible to make vs code like pycharm pro for django development?

I used to use PyCharm, but I'm finding VS Code to be much better for working with AI tools. There are features from PyCharm Pro when working with django. For example, PyCharm provides autocompletion for queryset filtering for all fields (like __gte, __in, etc.), suggests all URL names when using reverse, and has awareness of context variables in templates.

Is there a way to customize VS Code to replicate these PyCharm Pro features?

/r/django
https://redd.it/1iumhwr
🔴 redpoint - Python library for converting climbing grades between different grading systems

GitHub: [https://github.com/ciszko/redpoint](https://github.com/ciszko/redpoint)

**What my project does**

In rock climbing, various climbing styles (sport, boulder, ice) have their own grading systems. What's more, some systems were initially developed in confined geographical areas, climbing areas, countries or continents. `🔴 redpoint` is a Python library that simplifies climbing grade conversions. It supports a wide range of climbing grade systems (sport, bouldering, and other) from [thecrag.com](http://thecrag.com), allowing users to easily convert between systems (e.g., Yosemitee Decimal System to French), compare the difficulty of grades, and even generate ranges of equivalent grades.

The features include:

* Converting the grades between the systems
* Comparing the difficulty of grades (even between the systems)
* Converting a grade into a range of grades from the different system
* Iterating over grades from specific systems
* Finding X harder or lower grade

I've always wanted to combine programming and climbing. I didn't find any Python library that would cover that many grading systems so I decided to give it a go. Besides that, I had the opportunity to upload my library to pypi which was a new experience.

**Target Audience**
(mostly rock climbers)
I find it hard to to compare the grades in my head, especially when I've never been to a specific climbing area that uses

/r/Python
https://redd.it/1iura9d
New to coding. Is it always this difficult?

I’m transitioning from bartending to data analysis at 37yo through an online course called CareerFoundry and I think I’ve made a huge mistake. I do not feel prepared to enter the job market with my new skills. For example It has taken me 6 full hours today just trying to START a project in VSCode and I don’t understand any of the troubleshooting I’m doing. (I don’t remember learning about virtual environments during the course) we did the whole course in Jupyter and now I find out vscode is the standard and it’s an entirely different platform I can’t figure out. I feel like every step forward is 100 steps back.

Could anyone share their “aha!” Moment with coding? I could really use the encouragement. Or have I made a huge mistake and this just isn’t for me? Thanks for reading this far!! Any advice is appreciated.

/r/Python
https://redd.it/1iuyt0y
First Independently Developed Production Level Website

I have an appointment with a state wide organization about creating a website for them that provides both a public facing landing page and a member exclusive portion which will include location to get resources, calendar of events, requests to the administration, polling, and documentation resources for the legal documents of the organization (not sensitive information).

My experience is in making static websites (I have made two for other smaller organization) which were very well received. Modernizing backends for Spring web applications (also 2 times), and creating a series of smaller web application using lightweight frameworks like Flask. I have never independently created a production level website on a modern framework for an organization with more than 100 members.

This website will not be expected to be tremendously high traffic (at highest surge times, a couple times a year, about 2 thousand concurrent users) (I understand that is high traffic however that will not be login members using it, instead it will be checking the current events tabs)

I plan to develop this using a Django framework. My experience with Django is limited reading only the intro material of documentation and creating a few apps with it. That being said it has been

/r/django
https://redd.it/1iuvexl
Why is return not directly inbuilt into redirect() & render()???

I keep forgetting to include the return before I call redirect and render which is annoying. Curious if there are any situations where you would use redirect() or render() but not use return before it for your views?

/r/djangolearning
https://redd.it/1iuaw8q
Saturday Daily Thread: Resource Request and Sharing! Daily Thread

# Weekly Thread: Resource Request and Sharing 📚

Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!

## How it Works:

1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.

## Guidelines:

Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.

## Example Shares:

1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.

## Example Requests:

1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.

Share the knowledge, enrich the community. Happy learning! 🌟

/r/Python
https://redd.it/1iv5pd3
I'm unemployed developer

I know web development with mern stack, python django and mobile application development with react native.

Is there any freelance clients or software agencies who can help me?

/r/django
https://redd.it/1iv9c7n
Django/vite/scss

Has anybody had any success with Django-vite and using scss and maybe have a repo I could look at? Currently trying to get this set up and running into a few issue. Not using any FE frameworks. Using a main.js file as the entry point currently this just has main.scss as an import. It works fine in dev but in production on Heroku the browser is trying to read the .scss file and therefore getting a MIME failure and the rest of the js won’t run. CSS file does work though that vite build from the scss.

/r/django
https://redd.it/1iv1a7f
D Dimensionality reduction is bad practice?

I was given a problem statement and data to go along with it. My initial intuition was "what features are most important in this dataset and what initial relationships can i reveal?"

I proposed t-sne, PCA, or UMAP to observe preliminary relationships to explore but was immediately shut down because "reducing dimensions means losing information."

which i know is true but..._____________

can some of you add to the ___________? what would you have said?

/r/MachineLearning
https://redd.it/1iuwgcu
Authentication to the Swagger UI

Hello flask folks,

Creating endpoints in the flask and integrated with the Swagger UI (flasgger).

I wanna add authentication to the Swagger UI?

I newbie to reddit.if any mistakes said by me, feel free to forgive. 😁😁

/r/flask
https://redd.it/1iv9xxl
Tinyprogress 1.0.1 released

# What My Project Does:

It is a lightweight console progress bar that weighs only 1.21KB.

# What Problem Does It Solve?

It aims to reduce the dependency size in certain programs.

# Comparison with Other Available Modules for This Function:

* **progress** \- 8.4KB
* **progressbar** \- 21.88KB
* **tinyprogress** \- 1.21KB

# GitHub and PyPI:

Check out the project on GitHub for full documentation:
[https://github.com/croketillo/tinyprogress](https://github.com/croketillo/tinyprogress)

Available on PyPI:
[https://pypi.org/project/tinyprogress/](https://pypi.org/project/tinyprogress/)

# Target Audience:

Python developers looking for lightweight dependencies.

/r/Python
https://redd.it/1ivclq9
Pixerise v0.12 Released: Introducing Ray Casting and Improved Rendering Features

The release v0.12 is out!

Pixerise is a high-performance 3D software renderer implemented in Python. Designed for educational purposes and systems without GPU access, Pixerise provides a complete CPU-based rendering pipeline optimized with NumPy and Numba JIT compilation:

https://github.com/enricostara/pixerise

This version introduces some major improvements and new features:

New Features: 

 Ray Casting \- Precise 3D object selection with mouse interaction

🎨 Group Colors \- Assign and manage colors for model groups

👁️ Visibility Toggles \- Right-click to show/hide model groups

Performance: 

1/z depth interpolation for more accurate triangle rasterization

🎯 Optimized ray casting with bounding sphere culling

Developer Experience: 

🧹 Implemented Ruff for code formatting

📚 Improved documentation with architecture diagrams and API docs

/r/Python
https://redd.it/1ivdslk
My Ever-Expanding Python & Django Notes

Hey everyone! 👋

I wanted to share a project I've been working on: **Code-Memo** – a personal collection of coding notes. This is NOT a structured learning resource or a tutorial site but more of a living reference where I document everything I know (and continue to learn) about Python, Django, Linux, AWS, and more.

Some pages:
📌 **Python Notes**
📌 **Django Notes**

The goal is simple: collect knowledge, organize it, and keep expanding. It will never be "finished" because I’m always adding new things as I go. If you're a Python/Django developer, you might find something useful in there—or even better, you might have suggestions for things to add!

Would love to hear your thoughts.

/r/djangolearning
https://redd.it/1itzsds
Hello, I made a small webapp with Streamlit, FastAPI and docker to convert my images to PDFs

Hi!

I started my self-hosted journey a couple of days ago, and this is my first webapp in a docker container.
It converts images to PDFs and merge PDFs together based on existing libraries.

It taught me how to use FastApi with streamlit, and how to make them speak to each other with docker. I hope it can help you too! ;)

https://github.com/LittleYellowPanda/MakeItPrivate.git

If you have any questions, or advice, feel free to comment!



/r/Python
https://redd.it/1iuy6kg
NEW! Time travel debugger for python

Hello everybody,

Recently I have been working on a time travel debugger for python that has VS code integration out of the box. I plan on posting a few demos here before production, and would appreciate any constructive criticism on it.

The main features include:

* Take a full trace of the program by vscode
* Control trace position using timline
* Taint analysis - track variable value history


I was also wondering whether you have some suggestions for features for the product. Also, if you need early access to it, please do let me know and I'll see what I can do, mention your use case and what were you trying to achieve with the product.

I will appreciate any suggestions!

/r/Python
https://redd.it/1iurwd3
Pykomodo – A Parallel Code Chunker

What My Project Does
pykomodo is a Python-based tool that parallelizes code chunking for large codebases. It supports both traditional line-based splitting and an AST-based “semantic” approach for .py files—so top-level functions and classes don’t get split across multiple chunks. When i made pykomodo a while back, this feature was still in the works.

What Problem Does It Solve?
When dealing with huge repositories (especially if you’re feeding them into large language models or other analysis), it’s helpful to chunk the files into more manageable pieces.

Comparison With Other Available Chunkers

repomix: Another open-source code chunker that focuses on certain features

GitHub and PyPI

GitHub: https://github.com/duriantaco/pykomodo
PyPI: [https://pypi.org/project/pykomodo/](https://pypi.org/project/pykomodo/)

Install with:

`pip install pykomodo==0.0.4`


Target Audience

Python developers who need to chunk large codebases for LLM input, archiving .. etc
Projects that want to preserve function/class blocks within Python files.

Additional Highlights

Semantic (AST-based) chunking for .py files (at least for now): big single functions remain un-split.
Dry-run mode: see which files would be chunked
Ignore/unignore patterns: skip entire folders like **/node_modules/** or re-include specific files.
Threaded chunking: speeds up scanning and file reading for large repos.
Enhanced chunker (optional) can remove redundancy or calculate relevance scores for LLM usage.

Feel free to

/r/Python
https://redd.it/1ivlrys
What are some of the challenges that you experience?

Keen to learn what pain points others experience when it comes to using Django for API development.

/r/django
https://redd.it/1ivto1r
Livedocs – a modern, real-time collaborative Python notebook. Improving ergonomics for Python

Hi everyone, we (me and two other Python/Rust/Typescript devs) just built a collaborative Python notebook. We built it from the ground up, but are still using Jupyter at the core, but stripped away everything else that slows it down. Livedocs lives in your browser, and lets you experiment in a notebook and share your work as an app.

Our plan is to make it the fastest, most ergonomic Python notebook around. A few things we’ve shipped:

Added lots of new cell types like charts, SQL (powered by DuckDB), tables, inputs, database saves, and even interacting with LLMs directly via a cell
Notebook is internally represented as a DAG, for reactivity 
Re-built most internals with rust
Added support for user-supplied secrets, built-in vars

We’re looking to improve the Python editing experience by connecting the editor to an LSP and adding AI generation to help produce code. 

We’re looking for feedback on the notebook from Pythonistas on the ergonomics of the notebook. We want to keep the experience as close to a local development environment as possible. 

/r/Python
https://redd.it/1ivt2df
Database Backup

What's your go-to solution for a Postgres database backup? I would like to explore some options, I am using docker compose to Postgres container and Django. I have mounted the Postgres data.

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