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
Backend Development

Need to learn backend dev and no course is there to help me out with understanding the basic concepts and understanding how to create a server
Prefer me some pages with backend dev that I can use with my react application .
I would prefer learning backend in javascript but I can also prefer django as well.


/r/django
https://redd.it/1di46ll
Open source Python projects with great software design that is worth studying

I am looking for a software project that is well-structured and uses good design patterns and software design practices so I can study them and improve my skills hands-on.

/r/Python
https://redd.it/1di5sfy
How difficult is it to land a role as a “new” developer in this job market?

About a year ago, I committed to learning web development full time. Since then, I’ve accumulated intermediate / advanced front and backend skills. I also have a few years of experience working in a software engineering team for a well known company. So, while I’ve never been a developer I have the experience working with developers and knowing the common processes associated with software engineering practices.

I’m going on my third Django project of intermediate / advanced skill but also have a some projects that are pure front-end.

I knew full well this market wasn’t strong when I made this decision but I’m looking for insight from hiring managers and other leaders as to what I can expect in the short-long term about landing a role as a Django dev.

/r/django
https://redd.it/1didjaj
Problem with accessing cookies and custom headers in Django Rest

Hello. So these past few days I've been trying to solve a problem with no avail - I do not receive cookies or custom headers from my react frontend to my django backend, even though when I try with postman it works.

This is my relevant react code: https://pastebin.com/1iemmgAD
And this is my relevant django code: https://pastebin.com/pebfH2Yd

Plus my settings.py: https://pastebin.com/4Lyp3H3e

/r/django
https://redd.it/1di3hfz
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/1dicxw6
Aurora: An extensible Python static site generator

What My Project Does

Aurora is a fast, extensible Python static site generator. With Aurora, I can generate my personal website (\~1,700 files, with multiple layers of jinja2 templates for each page) in < 4 seconds. Aurora generated 292,884 pages from a Hacker News post dataset in 2m:20s.

Aurora supports incremental static regeneration, where pages can be regenerated in under 400ms, with hot reloading. I documented how this works on my blog.

Target Audience

I'm building Aurora to help me run my website, but it is built to be general so you can use it for your own projects. I would love feedback!

I want this to be a tool for running static sites in production, at scale.

Comparison

Aurora is inspired by the folder structure of Jekyll, but is written in Python. It has a hooks API that lets you define custom Python functions that manipulate the state of a page. This allows you to implement custom behaviours in isolation of the engine itself. I use this to open link previews from a cache that I plan to use on my website, among other things.

/r/Python
https://redd.it/1di1v8c
Load Tests Python Task Queues

What My Project Does

While looking for task queues, I found that there are many options available in the Python ecosystem, making it really hard to choose the right one. To get a sense of how each library performs and to help make an informed decision, I conducted a load test on some of the most popular ones: Python-RQ, ARQ, Celery, Huey, and Dramatiq.

Target Audience

I hope my findings can help those who are also looking for a task queue solution in Python.

Comparison

Most articles out there seem to focus on comparing the features of these libraries but rarely discuss performance. While there could be a lot of improvements on my tests, I think it still provide some different insights into how each library handles heavy loads and concurrency.

Links:

You can read my findings on my blog

Check out the source code: on Github


Thanks

/r/Python
https://redd.it/1digyfg
Is there a package that simplifies the CRUD process in django

I've been using Django for the past three years and one of the parts that if l could simplify l would be very happy will be the CRUD process because it could save a lot of time. Imagine having 10 models and you need to create a CRUD process for all of them. I hope you feel me. So if there is, fine, if not, then l will start working on something like that, if you are interested too, you let me know. Thanks.

/r/django
https://redd.it/1dilbip
rug 0.10.4 released

What's rug library:

Library for fetching various stock data from the internet (official and unofficial APIs).

Source code:

https://gitlab.com/imn1/rug

Releases including changelog:

https://gitlab.com/imn1/rug/-/releases

/r/Python
https://redd.it/1dilsv3
I just made my first API wrapper: beachwatch

Source code: https://github.com/ben-n93/beachwatch


What my Project Does
In NSW, Australia the government provides an API with daily updates on beaches' pollution and water quality forecast.

I thought I'd make a simple wrapper in Python to make it easier to get data from the API.

Target Audience
Most likely Australian data scientists/analysts/developers interested in beach data.

/r/Python
https://redd.it/1diovo8
Scrapegraph AI Tutorial; Scrape Websites Easily With LLaMA AI

I'm going to show you how to get Scrapegraph AI up and running, how to set up a language model, how to process JSON, scrape websites, use different AI models, and even turning your data into audio. Sounds like a lot, but it's easier than you think, and I'll walk you through it step by step.

https://www.scrapingbee.com/blog/scrapegraph-ai-tutorial-scrape-websites-easily-with-llama-ai/

/r/Python
https://redd.it/1dip146
Website with dynamic pages

For something like a discussion website (like reddit).

When the user makes a post. whats the best way to create the page.

Right now, i have 1 html file in the statics folder. It works as a template for all posts. When a user clicks on a specific post. It populates that template with all the respective data for that post.

The only thing im thinking is since there is no specific page for each post. lets say someone was to search directly for a post using its title through google. they wouldnt find it since there is no designated html page.

Im thinking. would it be a good idea to change the way the posts are made and instead - make a specific html page for each post. This will end up taking up a lot more space in the static folder as more and more html pages are added.

/r/flask
https://redd.it/1ditod2
u really need to try this admin panel

so i found this django admin panel , it is amazing

https://unfoldadmin.com/

/r/djangolearning
https://redd.it/1dgkulo
Wednesday Daily Thread: Beginner questions

# Weekly Thread: Beginner Questions 🐍

Welcome to our Beginner Questions thread! Whether you're new to Python or just looking to clarify some basics, this is the thread for you.

## How it Works:

1. Ask Anything: Feel free to ask any Python-related question. There are no bad questions here!
2. Community Support: Get answers and advice from the community.
3. Resource Sharing: Discover tutorials, articles, and beginner-friendly resources.

## Guidelines:

This thread is specifically for beginner questions. For more advanced queries, check out our [Advanced Questions Thread](#advanced-questions-thread-link).

## Recommended Resources:

If you don't receive a response, consider exploring r/LearnPython or join the Python Discord Server for quicker assistance.

## Example Questions:

1. What is the difference between a list and a tuple?
2. How do I read a CSV file in Python?
3. What are Python decorators and how do I use them?
4. How do I install a Python package using pip?
5. What is a virtual environment and why should I use one?

Let's help each other learn Python! 🌟

/r/Python
https://redd.it/1dj5f2u
Flask App Deployment w/ SocketIo, SQLAlchemy, Requests + BS4

Hi, i'm very new to deployment and have made a flask app that works well locally. It has a chatroom function that uses flask socketio and a database visualiser that uses requests + bs4 to populate a sqlalchemy database from a website.

I'm trying to find a deployment platform that can handle all of this but i'm getting issues.

On pythonanywhere, the database pulling + displaying works through requests, but the socketio doesn't work for the chat function.

On heroku, neither of them work, but the databasing works only for user account creation.


What recommendations do people have for the best way to deploy this? I'm happy to provide my code also.

/r/flask
https://redd.it/1dj7f6h
A JIT compiler for CPython

Brandt Bucher talks on JIT compiler for Python at CPython Core Developer Sprint. Brandt is a member of the Faster CPython project, which is working on making the reference implementation of the language faster via a variety of techniques.

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



/r/Python
https://redd.it/1djdy0z
The worst Python-Django backend refactoring mission of all time?

Are you looking to refactor some horrible messy code?

Let's do it together. 🎉

Evaboot in few words:

remote-only company.
bootstrapped.
2M€ ARR in 2.5 years with 2 people.

We are building software to help sales teams create prospecting databases from Linkedin.

Here is a demo of the tool:

[
https://www.youtube.com/watch?v=khYgyDlo2Iw](https://www.youtube.com/watch?v=khYgyDlo2Iw)

# Roadmap of the job

→ For the next 2 months, you will refactor the Python-Django backend code of Evaboot. It will not be a rebuild, but a continuous refactoring of the existing codebase.

→ After that, you'll dive right into new features development: we got many pain points to solve for our users ❤️‍🩹.

How: You will work directly with [Robin](
https://www.linkedin.com/in/zrobin/)

Where: anywhere on the planet — we are remote since day one.

# Requirements

→ Serious experience in Python, Django & Celery.

→ You have eaten a lot of spaghetti code before 🍝 (and not just your own).

# Bonus points

→ you worked with the Heroku Cloud ecosystem.

→ you worked with Django REST framework.

→ you worked on scraping projects.

# What's guaranteed

→ Intense execution pace & exponential learning curve.

→ Zero bullshit environment. We focus mostly on results and KPIs.

→ No wasted code. We take user pain seriously, code is here to solve it.

# How To Apply

\
*Apply right here:** https://docs.google.com/forms/d/e/1FAIpQLScdHbxUA64x7L7dkpWtC\_aT5XI9hSUBw2uhaUka7detFJFUPQ/viewform

Don’t be shy —

/r/django
https://redd.it/1djcbu5
I'm looking for a comparison with a Python developer ITA.

I am a high school student and I wanted to look for someone who works as a Python developer from Italy, I don't know where else I can look for some Italian developers, if you know of places where I can get some advice I thank you.

/r/Python
https://redd.it/1djh9ri
Looking for a mentor or project

Hi everyone I’m a recent graduate and I’ve been looking for an internship for a while with no luck.

I’ve built my own projects but I’d love to have a reference on my resume to a person.

If there’s anyone out there that can let me help them out with their SAAS or small project they have I would work for free and be more than grateful.

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