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

Final Chance to Claim Your Bonus Gift 🎁

Tuesday, December 31, 2024

Just sign up to VC+ by January 1st and we'll include a free gift. View email in browser OFFER ENDS JANUARY 1ST Last Chance to Claim Your Free Gift! The Global Forecast Series, presented by Inigo,

Top 5 of 2024, Ninja, Deploying on AWS, and More

Tuesday, December 31, 2024

\#1: Build Captivating Display Tables With Great Tables #662 – DECEMBER 31, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo A lot has happened in the Python ecosystem in 2024 and with our final

Daily Coding Problem: Problem #1654 [Hard]

Tuesday, December 31, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. Word sense disambiguation is the problem of determining which sense a word takes

🐶 Robot Pets Are Making a Comeback — Blu-ray Players Will Soon Be Almost Gone

Tuesday, December 31, 2024

Also: The Issue With EVs Is That They're Doing Too Much, and More! How-To Geek Logo December 31, 2024 Did You Know In Western nations, people celebrate the New Year at the start of the Gregorian

Charted | What Made the News in America in 2024 📊

Tuesday, December 31, 2024

Election-related events and crime dominated the news according to Google's yearly search data drop. View Online | Subscribe | Download Our App FEATURED STORY What Made the News in America in 2024

️🚨 New Windows security bug - what to know

Tuesday, December 31, 2024

LG's AI laptops; Free Apple TV+; Life-saving smartwatch -- ZDNET ZDNET Tech Today - US December 31, 2024 Windows 11 updates New Windows 11 24H2 bug could block future security updates - see

End of Year Sale

Tuesday, December 31, 2024

Discount for the end of the year Sébastien Dubois DeveloPassion's Newsletter End of Year Sale By Sebastien Dubois • 31 Dec 2024 View in browser View in browser I'm launching a sale for the end

Post from Syncfusion Blogs on 12/31/2024

Tuesday, December 31, 2024

New blogs from Syncfusion What's New in WPF Diagram: 2024 Volume 4 By Sarathkumar V This blog explains the new features and enhancements added in the Syncfusion WPF Diagram Library for the 2024

Get Organized for the New Year With This Updated Calendar App

Tuesday, December 31, 2024

Informant 5 is a complete planner in your pocket. Manage Calendars, Tasks, Projects, and Tags in a single app. This app is one of the few that combines both your calendar AND your tasks into a singe

Chinese APT Exploits BeyondTrust API Key to Access U.S. Treasury Systems and Documents

Tuesday, December 31, 2024

THN Daily Updates Newsletter cover Full Stack Web Development ($54.99 Value) FREE for a Limited Time This book offers a comprehensive guide to full stack web development, covering everything from core