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
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
Flask SocketIO with Gunicorn

I'm at my wits end.

Basically, my flask webapp allows users to upload videos, then the DeepFace library processes the videos and detects the facial expressions of the people in the videos. I used ProcessPoolExecutor to run the facial recognition classes that I created for DeepFace. I use socketio to track the progress of video processing.

Now I'm at the deployment phase of the project using gunicorn and nginx, and I'm running into some issues with gunicorn. For some reason, a gunicorn timeout error causes my app to fail when processing the video, this never happens during development.

**Server:

OS - Ubuntu

CPU - Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz

RAM - 32GB

**Here are some gunicorn logs:

config: ./gunicorn.conf.py

wsgi_app: None

bind: ['0.0.0.0:8050'\]

backlog: 2048

workers: 1

worker_class: eventlet

threads: 1

worker_connections: 1000

max_requests: 0

max_requests_jitter: 0

timeout: 30

graceful_timeout: 30

keepalive: 2

limit_request_line: 4094

limit_request_fields: 100

limit_request_field_size: 8190

reload: False

reload_engine: auto

reload_extra_files: [\]

spew: False

check_config: False

print_config: False

preload_app: False

sendfile: None

reuse_port: False

chdir: /home/flaskuser/flask_webapp

daemon: False

raw_env: [\]

pidfile: None

worker_tmp_dir: None

user: 1002

group: 1003

umask: 0

initgroups: False

tmp_upload_dir: None

secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}

forwarded_allow_ips: ['127.0.0.1'\]

accesslog: None

disable_redirect_access_to_syslog: False

access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"

errorlog: /tmp/gunicorn_log

loglevel: debug

capture_output: False

logger_class: gunicorn.glogging.Logger

logconfig: None

logconfig_dict: {}

logconfig_json: None

syslog_addr: udp://localhost:514

syslog: False

syslog_prefix: None

syslog_facility: user

enable_stdio_inheritance: False

statsd_host: None

dogstatsd_tags:

statsd_prefix:

proc_name: None

default_proc_name: main:app

pythonpath: None

paste: None

on_starting: <function OnStarting.on_starting at 0x7f9871a3ba30>

on_reload: <function OnReload.on_reload at 0x7f9871a3bb50>

when_ready: <function WhenReady.when_ready at 0x7f9871a3bc70>

pre_fork: <function Prefork.pre_fork at 0x7f9871a3bd90>

post_fork: <function Postfork.post_fork

/r/flask
https://redd.it/1din4ly
Saas targeting finance entity and banks.

I'm planning to build my SaaS product the approach the banking and finance sector. What is pushing me back is the security issues.
I'm afraid client won't trust me app in this matter if I build it myself from scratch. What I mean registration, authentication authorization and security.

Is there any away that I can use a well développed platform where I only need to attach my part of coding to it and this sector still trust it?



/r/flask
https://redd.it/1dikvdw
select dropdown with infinite scroll

Hi, basically I'm trying to do a drop-down menu where all the option are filled with the info of the database, the problem is that there are so many options and the template crash, so I figured out using Ajax or pagination may work, but what i want is that the options work like an infinite scroll, so user see 10/15 options and while scrolling down more options appear, but it doesn't work. What can I do?

/r/django
https://redd.it/1dlaky5
I've created a book which contains everything you need to know about Python

Hello Reddit!

I've created a Python book called "Your Journey to Fluent Python." This book is ideal for everyone who wants to learn programming, and even for those who are already at an intermediate or expert level.

Additionally, I have created a Discord server to gather our Python community! The book doesn't stretch the material you need to learn, and that's what I find lacking in other books.

I look forward to hearing your feedback! Put a star if you find it interesting and useful!

https://github.com/pro1code1hack/Your-Journey-To-Fluent-Python/

Thanks a lot!

/r/Python
https://redd.it/1dlewme