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
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
Textual Serve - Serve TUIs in the browser

Textual Serve (https://github.com/Textualize/textual-serve) is a project which serves TUIs (built with Textual) in the browser.

This is self-hosted, so you don't need to rely on any external service.

/r/Python
https://redd.it/1djk6u8
[P] [D] Updated On: Hi I'm a senior machine learning engineer, looking for for buddies to build cool stuff with!

**Old Post**: [https://www.reddit.com/r/MachineLearning/comments/1dj8pg6/p\_d\_hi\_im\_a\_senior\_machine\_learning\_engineer/](https://www.reddit.com/r/MachineLearning/comments/1dj8pg6/p_d_hi_im_a_senior_machine_learning_engineer/)

**Wow, I wasn't expecting this post to gain so much attention!**

I've created a Google form for those who are serious about working on projects, Kaggle competitions, or Leetcode challenges. Please take a moment to fill it out.
Form: [https://forms.gle/k3jzCfNJy3rgz4ec6](https://forms.gle/k3jzCfNJy3rgz4ec6)

Here's how it will work:

* I will create groups based on your goals and expertise.
* Each group will have a team leader to assist with progress, alongside my support.
* It will take some time to organize everyone into teams, so please be patient. I'll reach out to you soon.

Thank you!

/r/MachineLearning
https://redd.it/1djmpwx
N Ilya Sutskever and friends launch Safe Superintelligence Inc.

With offices in Palo Alto and Tel Aviv, the company will be concerned with just building ASI. No product cycles.

https://ssi.inc

/r/MachineLearning
https://redd.it/1djrs3n
Python Project Management Primer

This article explores how to manage Python project environments and dependencies, as well as how to structure projects effectively.

/r/Python
https://redd.it/1djp1gw
Friday Daily Thread: r/Python Meta and Free-Talk Fridays

# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️

Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!

## How it Works:

1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.

## Guidelines:

All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.

## Example Topics:

1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.

Let's keep the conversation going. Happy discussing! 🌟

/r/Python
https://redd.it/1dkqdsg
How do you organize your flask projects?

Do you mimic the structure of a django project? Something else? Would like to hear what other people here do as I am pretty used to opinionated frameworks for web like aforementioned django and spring (boot) and feel a little disorganized with how I have my projects right now.

/r/flask
https://redd.it/1dkoh6r
Open source Python projects with good software design that is worth studying

What are some software projects written in python that are well-structured and use good code design practices that are worth spending time to study?




/r/Python
https://redd.it/1dkrfgh
Should all Python projects have type hinting?

I recently released a very simple API wrapper and in my efforts to become a better programmer I asked in a Python Discord for feedback.


One bloke was very adamant I should use type hints. I understand the need/desire for type hints but this commentator basically was implying that all Python code should be written with type hints.

For a simple project I didn't think it was necessary but I'm curious as to what this community thinks.

How do you make the decision as to when to use type hints? Do you do it for all projects, regardless of size? What are your general thoughts?

/r/Python
https://redd.it/1djxqnp
phone repair order notification

hello , I'm making a website for my iPhone repair business, how can I write a script that will email the details of an order once submitted

/r/flask
https://redd.it/1dkt6rz
I need help and advice on using google pay API for obtaining transaction history/list for making my smart expense tracker Web App (Using Python and Flask).

So, as mentioned in the title I am making a smart expense tracker web app using python and flask, is obtaining transaction history from Google Pay safe using API, if Yes How should i proceed with that and if No what is a better way to obtain the transaction history so that the user's privacy and safety in not compromised.

/r/flask
https://redd.it/1dk3uqu
Terrified of Security Risks: How to Safeguard My Django Backend for Public Deployment

I've become very proficient in developing useful, intuitive, powerful applications in React + Django + Postgres, and "deployed" a handful of apps that get used by hundreds of people - but all on a company server behind a company VPN.

Now I'm working at a much smaller company, and need staff and crew members to be able to access it from anywhere they have web access. I'm terrified to deploy the apps to the web where anyone could try to hack it, and private data gets leaked.

FWIW, the app will have a web and a React Native app, so I have to use JWT for auth. I'm using strawberry-django-auth.

I've deployed personal projects to a Digital Ocean droplet and followed every best practice article I could find for securing Ubuntu Server and Postgres. But it was used by 3 people and held no information of consequence.

How have you all become proficient in authentication, securing server and databases, and backups, so you can build and deploy apps with minimal risk? I wish there was a Django as a service where I had the full code control as on my dev environment, and it just handled all the production considerations.

/r/django
https://redd.it/1dkm7jg
{% ssi ..%} {% include ..%} tag is slow, why?

I have 8 include tags in a page, causing it take 34 seconds to load. How to resolve this? I tried ssi parsed tag as well, both are taking same time to render the page.

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