Python Weekly - Python Weekly - Issue 659

View this email in your browser

Python Weekly

Welcome to issue 659 of Python Weekly. Let's get straight to the links this week.
News

Binary secret scanning helped us prevent (what might have been) the worst supply chain attack you can imagine
The JFrog Security Research team identified the leaked secret and immediately reported it to PyPI’s security team, who revoked the token within a mere 17 minutes! This post will explain how we found a GitHub PAT that provided access to the entire Python infrastructure and prevented a supply chain disaster. Using this case, we will discuss the importance of (also) shifting right in secrets detection – searching for secrets in binaries and production artifacts, not just on source code.


Articles, Tutorials and Talks

SE Radio 624: Marcelo Trylesinski on FastAPI 
Marcelo Trylesinski, a senior software engineer at Pydantic and a maintainer of open-source Python tools including Starlette and Uvicorn, joins host Gregory M. Kapfhammer to talk about FastAPI. Their conversation focuses on the design and implementation of FastAPI and how programmers can use it to create web-based APIs. They also explore how to create and deploy a FastAPI implemented in the Python programming language. Brought

Bloat beneath Python’s Scales: A Fine-Grained Inter-Project Dependency Analysis
Modern programming languages facilitate software reuse via package managers, but this leads to dependency bloat, which increases security risks, maintenance costs, storage requirements, and slows load times. A detailed analysis of 1,302 Python projects and 3,232 dependencies in the PyPI ecosystem found over 50% of dependencies are bloated, with 15% of security defects residing in these bloated areas, highlighting the need for improved debloating techniques and practices.

Free-threaded CPython is ready to experiment with!
An overview of the ongoing efforts to improve and roll out support for free-threaded CPython throughout the Python open source ecosystem.

Finding Simple Rewrite Rules for the JIT with Z3 
The article discusses using Z3, an SMT solver, to find and verify simple rewrite rules for PyPy's JIT compiler operations. It demonstrates how to encode JIT operations into Z3 formulas and use the solver to prove the correctness of simplifications, as well as synthesize constants for more complex rewrite patterns.

A Python Epoch Timestamp Timezone Trap
This is an article about a Python epoch timestamp timezone trap. It discusses how epoch timestamps can be tricky to work with in Python, especially when dealing with timezones. The author provides a few tips for avoiding the trap.

A debugging story
This is an article about debugging a Jupyter Echo Kernel ported to Deno using deno-python. The author encountered a segmentation fault and used gdb to identify the problem. The issue stemmed from the creation of the pyMethodDef buffer, and adding 4 bytes of padding resolved it. However, the kernel still exits unexpectedly.

Instrumenting Python GIL with eBPF
This is an article about using eBPF to analyze the Python GIL (Global Interpreter Lock), a potential performance bottleneck. It explains how to measure the GIL's impact and provides a guide on using eBPF for instrumentation.

PyTorch Lightning: A Comprehensive Hands-On Tutorial
This comprehensive, hands-on tutorial teaches you how to simplify deep learning model development with PyTorch Lightning. Perfect for beginners and experienced developers alike, it covers environment setup, model training, and practical examples.

Build a search index in Python
How can search engines be so fast? While there are many parts of a search system, one of the key concepts to know is the inverted index.

Transcribing Audio with Python on Your Local Machine
If you don't want to pay for a service to transcribe your audio, you can generate it easily on your own machine with a little setup. Here's how.

Resource management and generators in Python
The article explores resource management and cleanup behavior in Python generators, highlighting unexpected issues when generators are not fully consumed. It demonstrates various scenarios, including the use of context managers and the finally clause, to ensure proper cleanup and resource management in generator functions.


Interesting Projects, Tools and Libraries

exo
Run your own AI cluster at home with everyday devices.

Korvus
Korvus is a search SDK that unifies the entire RAG pipeline in a single database query. Built on top of Postgres with bindings for Python, JavaScript, Rust and C.

MobileLLM
MobileLLM Optimizing Sub-billion Parameter Language Models for On-Device Use Cases. In ICML 2024.

vectorlite
A fast and tunable vector search extension for SQLite.

kaskade
kaskade is a text user interface for kafka, which allows you to interact and consume topics from your terminal in style!

AI Dialer
A full stack app for interruptible, low-latency and near-human quality AI phone calls built from stitching LLMs, speech understanding tools, text-to-speech models, and Twilio’s phone API.


Upcoming Events and Webinars

PyLadies Amsterdam Meetup July 2024
Join us for an interactive workshop where we’ll dive into the world of LLM Guardrails. Discover the mechanisms that ensure applications produce reliable, robust, safe, and ethical outputs, and understand their crucial role in LLMs.

PyBerlin 48
There will be following talks
  • Low effort configurable python: type hints and dependency injection
  • From Cronjobs to Apache Airflow: Enhancing Our Data Infrastructure
  • Exploring Creative Fusion: Robotics, 3D Printing, and Python with OpenCV, TensorFlow, and Beyond

PuPPy Meetup July 2024
There will be following talks
  • Scraping for fun and (no) profit
  • Python can do ANYthing: unit-testing in sql
  • Code Reviews: The Art and the Science

PyCologne #1
There will be following talks
  • Evaluating RAG applications
  • Estimagic: a package for difficult numerical optimization problems
  • Intro to OSSci + AI Alliance

Portland Python User Group Meetup July 2024
There will be a talk, Let's Talk Databases in Python: SQLAlchemy and Alembic.

PyData Chicago Meetup July 2024
There will be a talk, Using Bayesian Regression to Link Biochemical and Cellular Efficacy of the Coronavirus Main Protease.
 
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 658

Thursday, July 11, 2024

View this email in your browser Python Weekly Welcome to issue 658 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks PySkyWiFi: completely free,

Python Weekly - Issue 657

Thursday, July 4, 2024

View this email in your browser Python Weekly Welcome to issue 657 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 656

Thursday, June 27, 2024

View this email in your browser Python Weekly Welcome to issue 656 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks pgvector for Python developers Learn

Python Weekly - Issue 655

Thursday, June 20, 2024

View this email in your browser Python Weekly Welcome to issue 655 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 654

Thursday, June 13, 2024

View this email in your browser Python Weekly Welcome to issue 654 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks Let's reproduce GPT-2 (124M) In

You Might Also Like

Daily Coding Problem: Problem #1648 [Medium]

Wednesday, December 25, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Quora. Given an absolute pathname that may have . or .. as part of it, return the

🎮 The Best Games to Go With Your New Console — Streaming Services Could Learn From YouTube

Wednesday, December 25, 2024

Also: Don't Throw Christmas Gift Boxes on the Curb, and More! How-To Geek Logo December 25, 2024 Did You Know Years before The Nightmare Before Christmas, Tim Burton was sprinkling references to

Charted | Global Economic Confidence in 2025, by Country 🌎

Wednesday, December 25, 2024

While emerging markets in Asia have the strongest confidence in the global economy looking ahead, European countries are most pessimistic. View Online | Subscribe | Download Our App FEATURED STORY

Top Tech Deals 🎅 Sony Headphones, iPhone Cases, 4K Projector, and More!

Wednesday, December 25, 2024

The season of giving is upon us. How-To Geek Logo December 25, 2024 Top Tech Deals: Sony Headphones, iPhone Cases, 4K Projector, and More! The season of giving is upon us. Happy Holidays! If you're

Why the Race to AGI is Humanitys Defining Moment

Wednesday, December 25, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 25, 2024? The

Iran's Charming Kitten Deploys BellaCPP: A New C++ Variant of BellaCiao Malware

Wednesday, December 25, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Software Testing Weekly - Issue 251

Wednesday, December 25, 2024

GitHub Copilot is free! 🤖 View on the Web Archives ISSUE 251 December 25th 2024 COMMENT Welcome to the 251st issue! In case you missed it — GitHub Copilot is free! The free version works with Visual

Daily Coding Problem: Problem #1647 [Medium]

Tuesday, December 24, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. In front of you is a row of N coins, with values v 1 , v 1 , ..., v n . You are

Sentiment Analysis, Topological Sort, Web Security, and More

Tuesday, December 24, 2024

Exploring Modern Sentiment Analysis Approaches in Python #661 – DECEMBER 24, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Modern Sentiment Analysis Approaches in Python What are the

🤫 Do Not Disturb Mode Is My Secret to Sanity — 8 Gadgets I Want To See Nintendo Make

Tuesday, December 24, 2024

Also: The Best Christmas Movies to Watch on Netflix, and More! How-To Geek Logo December 24, 2024 Did You Know Their association with the Christmas season might make you think poinsettias hail from a