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

Recording: 'Data Storytelling: What Organizations Need to Know Going Into 2025'

Friday, November 22, 2024

Thank you for your interest in our latest webinar. As promised here is your recording of the event. View email in browser Recording Now Available Thank you for your interest in receiving a recording of

💻 Issue 437 - Introducing local Azure Service Bus Emulator

Thursday, November 21, 2024

This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 437 Release Date Nov 21, 2024 Your weekly report of the most popular .NET news, articles and projects

💎 Issue 444 - Why did people rub snow on frozen feet? (2017)

Thursday, November 21, 2024

This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 444 Release Date Nov 21, 2024 Your weekly report of the most popular Ruby news, articles and

💻 Issue 444 - JavaScript Dos and Donts

Thursday, November 21, 2024

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 444 Release Date Nov 21, 2024 Your weekly report of the most popular JavaScript news, articles

📱 Issue 438 - Reverse Engineering iOS 18 Inactivity Reboot

Thursday, November 21, 2024

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 438 Release Date Nov 21, 2024 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 362 - React Anti-Pattern: Stop Passing Setters Down the Components Tree

Thursday, November 21, 2024

This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 362 Release Date Nov 21, 2024 Your weekly report of the most popular React news, articles and projects

💻 Issue 444 - Building simple event-driven applications with Pub/Sub

Thursday, November 21, 2024

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 444 Release Date Nov 21, 2024 Your weekly report of the most popular Node.js news, articles and

📱 Issue 441 - Shift Left Is the Tip of the Iceberg

Thursday, November 21, 2024

This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 441 Release Date Nov 21, 2024 Your weekly report of the most popular Swift news, articles and projects

💻 Issue 439 - Async/Await Is Real And Can Hurt You

Thursday, November 21, 2024

This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 439 Release Date Nov 21, 2024 Your weekly report of the most popular Rust news, articles and projects

📲 Why I Ditched Linux for Samsung DeX — Buy This Instead of a Gaming Headset

Thursday, November 21, 2024

Also: Taking Instagram Stories to the Next Level, and More! How-To Geek Logo November 21, 2024 Did You Know Thurl Ravenscroft was both the voice behind the Christmas song "You're a Mean One,