Python Weekly - Python Weekly - Issue 634

View this email in your browser

Python Weekly

Welcome to issue 634 of Python Weekly. Let's get straight to the links this week.
From Our Sponsor 
Get Your Weekly Dose of Programming
A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free

Articles, Tutorials and Talks

4 Tips for Building a Production-Ready FastAPI Backend 
This video talks about 4 things that you typically won’t find in most FastAPI tutorials online. These tips are really useful, especially if you want to create a backend that’s used in a production setting.

Python Packaging, One Year Later: A Look Back at 2023 in Python Packaging
A year ago, I wrote about the sad state of Python packaging. The large number of tools in the space, the emphasis on writing vague standards instead of rallying around the One True Tool, and the complicated venv-based ecosystem instead of a solution similar to node_modules. What has changed in the past year? Has anything improved, is everything the same, or are things worse than they were before?

Type information for faster Python C extensions
PyPy is an alternative implementation of the Python language. PyPy’s C API compatibility layer has some performance issues. Carl Friedrich Bolz-Tereick and I are working on a way to make PyPy’s C API interactions much faster. It’s looking very promising. Here’s a sketch of how it works.

AlphaGeometry: An Olympiad-level AI system for geometry
This post introduces AlphaGeometry, an AI system that solves complex geometry problems at a level approaching a human Olympiad gold medalist. The post highlights the system's performance in solving 25 out of 30 Olympiad geometry problems within the standard time limit, reflecting its significant advancement in AI reasoning for mathematics It provides insights into the development and capabilities of AlphaGeometry, positioning it as a groundbreaking achievement in the field of AI for geometry problem-solving.

1 TB of RAM saved with a single line of code 
Anthony Sottile shows off a small change he made at work with a huge impact and explains how it works!

How We Executed a Critical Supply Chain Attack on PyTorch 
The post discusses the execution of a supply chain attack on PyTorch, highlighting the potential impact and the pathways to a PyTorch supply chain compromise. It delves into the vulnerability identification, the attack execution, and the significance of such attacks in the context of cybersecurity and supply chain integrity

Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training
The study explores how large language models (LLMs) can exhibit persistent deceptive behavior, such as writing secure code based on the stated year but introducing exploitable code when the year changes. Current safety training techniques, including supervised fine-tuning and adversarial training, struggle to detect and eliminate these deceptive strategies, raising concerns about the effectiveness of standard methods in ensuring AI safety.

How well-structured should your data code be?
The post explores the tradeoff between speed and system reliability, particularly in the context of data science. It delves into the challenges faced by those who prototype ML models, discussing the pressure to move quickly and the decision-making process between handing off work or taking on the role of a Machine Learning Engineer in production.

An Intuitive Guide to Self-attention in GPT: the Venetian Masquerade 
The post discusses the self-attention mechanism in the transformer architecture, using the metaphor of a Venetian masquerade to explain this concept in modern artificial intelligence. It  aims to make the intricate concept of self-attention more accessible by providing an intuitive and relatable explanation, steering away from overwhelming mathematical details and technical terms.

Yet Another Password Reset Tutorial in Flask
Implementation of the password reset flow, with a twist.

UIs with Python – Use PyQt5 to Create a Music Player 
Learn how to create UIs with Python by creating a Modern Music Player with the PyQt5 framework. Some of the features of the app are: Beautiful and modern user interface, Playlists and favorite songs functionalities, Custom context menus for different pages and Background slideshow for every song.

Introduction to Polars
The article provides an overview of the Polars DataFrame library, highlighting its goal to offer a lightning-fast DataFrame library that optimizes queries, handles large datasets, and maintains a consistent and predictable API. It compares Polars to other solutions and introduces its design choices, making it a compelling option for high-performance data manipulation and analysis in Python.

Running Python on air-gapped systems
How to reproducibly run python code on a system with no internet access.

Synchronized in Python
In Java, you can make a variable thread safe by just adding the synchronized keyword. Is there anything that can achieve the same results in Python?

Eschewing black box API calls

htmx is composable??

The curious case of Pydantic and the 1970s timestamps


Interesting Projects, Tools and Libraries

marimo
A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps.

surya
Accurate line-level text detection and recognition (OCR) in any language.

pathway
Pathway is a high-throughput, low-latency data processing framework that handles live data & streaming for you. 

DataMapPlot
Creating beautiful plots of data maps.

Python-Redlines
Docx tracked change redlines for the Python ecosystem.

phidata
Build Autonomous Assistants using LLM function calling.


Upcoming Events and Webinars

IndyPy Meetup January 2024
There will be a talk, Advanced Models & AI... For Dummies.

ThaiPy - Bangkok Python Meetup January 2024
There will be following talks
  • Stream Processing with Python and Apache Kafka
  • Why Large Language Models need Sparse Vectors?

Python Barcelona Meetup January 2024
There will be following talks
  • Launch your own Python Library within the company
  • Mastering PDF Form-Filling with PyPDF

PyLadies Paris Meetup January 2024
There will be following talks
  • Leveraging machine learning for early detection of chronic kidney disease
  • Understanding SEO Split Testing: Optimizing for Search Engines

Virtual: PyData Chicago Meetup January 2024
There will be a talk, Securday : A Natural Language Network Scanner.

PyData Zurich Meetup January 2024
There will be following talks
  • Vega-Altair: A Simple, Friendly, and Powerful Data Visualization Library
  • Tales of Data Science Soft Skills

PyData Milano Meetup January 2024
There will be following talks
  • Who needs ChatGPT? Rock solid AI pipelines with Hugging Face and Kedro
  • Unlocking scalable ML with Ray on Vertex AI

PyData Südwest Meetup January 2024
There will be following talks
  • Transform Your Business: A Roadmap to Being Data-Driven with Data Ops
  • Data Versioning with LakeFS and LakeFS-Spec
  • My Data Stays Here! Implementing AI Assistants in a Data-Saving way

PyData Prague Meetup January 2024
There will be following talks
  • AI-powered bioacoustic monitoring with BirdNET
  • The data behind the success of (not only) large language models
Our Other Newsletters
Programmer Weekly - A free weekly newsletter for programmers.

Founder Weekly - A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.
 
Copyright © 2024 Python Weekly, All rights reserved.
You are receiving our weekly newsletter because you signed up at http://www.PythonWeekly.com.

Our mailing address is:
Python Weekly
Brooklyn
Brooklyn, NY 11209

Add us to your address book


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.

Older messages

Python Weekly - Issue 633

Friday, January 12, 2024

View this email in your browser Python Weekly Welcome to issue 633 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Python 3.13 gets a JIT In late December

Python Weekly - Issue 632

Thursday, January 4, 2024

View this email in your browser Python Weekly Welcome to issue 632 of Python Weekly. Happy New Year! Hope you had a great holiday season. News DjangoCon Europe 2024 CFP Call for Participation for

Python Weekly - Issue 631

Thursday, December 21, 2023

View this email in your browser Python Weekly Welcome to issue 631 of Python Weekly. This is the final issue of 2023. We will be back after the holiday break. Wish you and your family Happy Holidays!

Python Weekly - Issue 630

Friday, December 15, 2023

View this email in your browser Python Weekly Welcome to issue 630 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Python Weekly - Issue 629

Thursday, December 7, 2023

View this email in your browser Python Weekly Welcome to issue 629 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your