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

This Week's Daily Tip Roundup

Sunday, May 5, 2024

Missed some of this week's tips? No problem. We've compiled all of them here in one convenient place for you to enjoy. Happy learning! iPhoneLife Logo View In Browser Your Tip of the Day is

NativePHP now supports Windows! - №511

Sunday, May 5, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Maybe Two Big Research Breakthroughs or Maybe Nothing

Sunday, May 5, 2024

Multi-token prediction and a multi-layer perceptron alternative. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Dot Leap 2024-8: Paragraph + DGCM = decentralized newsletter?

Sunday, May 5, 2024

Thank you for taking the Dot Leap!We cover Polkadot, Kusama, Polkadot-SDK, and all related Web 3.0 projects! Want your content featured? X ... ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Card Buddy/Bread Book/Pocket Translator

Sunday, May 5, 2024

Recomendo - issue #409 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Kotlin Weekly #405

Sunday, May 5, 2024

ISSUE #405 5th of May 2024 Hello Kotliners! We're already in May and getting closer to KotlinConf. Any predictions for the keynote announcements? Check out our selection of links for the upcoming

📈 Why Is My Ping So High While Gaming? — How to Keep Your Android From Overheating

Saturday, May 4, 2024

Also: Using ChatGPT to Craft a Resume, and More! How-To Geek Logo May 4, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your inbox by

JSK Daily for May 4, 2024

Saturday, May 4, 2024

JSK Daily for May 4, 2024 View this email in your browser A community curated daily e-mail of JavaScript news The Power of React's Virtual DOM: A Comprehensive Explanation Modern JavaScript

Daily Coding Problem: Problem #1431 [Medium]

Saturday, May 4, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by MongoDB. Given a list of elements, find the majority element, which appears more than

Ranked | The World's Top Media Franchises by All-Time Revenue 📊

Saturday, May 4, 2024

From Pokémon to Star Wars, some media franchises are globally recognizable. How do media franchises compare in terms of all-time revenue? View Online | Subscribe Presented by Voronoi: The App Where