Python Weekly (Issue 658 July 11 2024)

Python Weekly - Issue 658

Python Weekly

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

Articles, Tutorials and Talks

PySkyWiFi is a tool that allows free internet access on planes by exploiting a vulnerability in airline loyalty program websites. It works by sending HTTP requests through an airline account's name field, relaying them to a ground computer that makes the actual web requests, and sending responses back through the same channel.

Expose the OpenAI streaming API with server-sent-events.

This video provides a tutorial on creating a Command Line Interface (CLI) tool in Python using the Click package. The project involves building a simple note-taking tool with functionalities to write, read, update, and delete notes. Additionally, it explores some lesser-known features of Click that enhance tool functionality.

Using ptrace to intercept and modify a process's getrandom syscall.

The article explores the complexities and inconsistencies of text input in terminal environments, discussing various modes from basic input to advanced systems like readline and custom solutions. It provides insights into how different programs handle text input, offers tips for users, and explains the origins and features of common keyboard shortcuts used in terminal text editing.

In this video, we cover the biological science that inspired neural networks, that mathematical functions that make them possible, topics like backpropagation and gradient descent and we do it all from scratch! 

The article provides an in-depth exploration of angr, a powerful binary analysis framework, focusing on its core components and functionalities. It offers practical examples and insights into using angr for various tasks such as symbolic execution, constraint solving, and program analysis, making it a valuable resource for both beginners and experienced users in the field of binary analysis.

Porting from Django+React to a Django+HTMX based stack.

Run many iterations of Django across Docker Compose or Raspberry Pis to handle large amounts of time series data.

The article explains how a decorator without functools.wraps caused a Flask app to crash by assigning the same name to multiple endpoints. It demonstrates the importance of using functools.wraps to maintain function metadata, thus preventing such errors.

Couldn't attend PyCon US 2024? The videos of the talks have started trickling down.

Interesting Projects, Tools and Libraries

Modern datetime library for Python, written in Rust.

Integrate AI Assistants with Django to build intelligent applications.

X-Ray vision for Linux systems.

Fast, Accurate, Lightweight Python library to make State of the Art Embedding.

A modern Jupyter client for Mac.

Make one portrait alive!

Easily share data across your company via SQL queries.

An opensource incident management platform integrating with Slack.

Maelstrom is a fast Rust and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.

A web scraping and browser automation library for Python to build reliable crawlers. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with BeautifulSoup, Playwright, and raw HTTP. Both headful and headless mode. With proxy rotation.

A powerful HTTP client that lives in your terminal.

Cute DI framework with scopes and agreeable API.

The open-source behavioural auditor for backend code.

New Releases

Upcoming Events and Webinars

There will be following talks

  • Supercharging Real-time Applications with Vector and Graph

  • New Machine Learning Paradigm with DSPy: No Prompt Engineering Required

There will be following talks

  • Another Bot Story: A Valentine’s Day Gift to My Girlfriend Using Github Copilot Workspace

  • How I use generative AI and ML in my work and side projects and why I think you should too!

  • Prompt Engineering: Emerging Techniques from Recent Research Papers

There will be following talks

  • Introduction to MongoDB

  • Leveraging MongoDB and the Document Model in the GenAI Revolution

There will be following talks

  • Kafka Kickstart: Simplifying Messaging Queues with Python and Upstash

  • Appeasing fandoms by dissecting books for RAG with Google Gemini

There will be following talks

  • Python contribution in Today's Cybersecurity field

  • Using Python to create PPT and few tips and Tricks of using Python

Our Other Newsletters

 - A free weekly newsletter for programmers.

- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.