Python Weekly - Python Weekly - Issue 663

View this email in your browser

Python Weekly

Welcome to issue 663 of Python Weekly. Let's get straight to the links this week.
Articles, Tutorials and Talks

From Boring Object-Oriented to INSANE Functional Code 
This video demonstrates that there's a place for both object-oriented and functional code. In Python, these two approaches can be combined effectively, allowing you to leverage the strengths of each for the best results.

Approximating sum types in Python with Pydantic
The article demonstrates how to approximate sum types in Python using Pydantic's tagged unions feature, providing a way to represent complex data structures with type safety. It explains the concept of sum types, shows how to implement them using Pydantic models, and discusses the benefits and limitations of this approach in Python programming.

Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython
How costly it is to call functions and builtins in your python code? Does inlining help? How have the recent CPython releases improved performance in these areas?

FlexAttention: The Flexibility of PyTorch with the Performance of FlashAttention 
FlexAttention is a new PyTorch API that allows implementing various attention variants using idiomatic PyTorch code, which is then lowered into optimized FlashAttention kernels through torch.compile. It provides a flexible score_mod function for modifying attention scores and a mask_mod function for leveraging sparsity, enabling researchers to easily experiment with different attention mechanisms while maintaining high performance.

Crawling Pages with Infinite Scroll using Scrapy and Playwright
This post provides a detailed guide on how to scrape infinite scroll websites using Scrapy and Playwright in Python. It covers the setup process, explains how to implement a custom downloader middleware to handle JavaScript rendering, and demonstrates how to extract data from dynamically loaded content, offering a practical solution for web scraping challenges posed by modern web applications.

CSVs Are Kinda Bad. DSVs Are Kinda Good.
The article argues that CSVs (Comma-Separated Values) are problematic due to various edge cases involving delimiters, quotes, and newlines, and proposes using Delimiter-Separated Values (DSV) with ASCII control characters as a more robust alternative. It demonstrates how DSVs can handle complex data without escaping or quoting issues, but acknowledges that the lack of widespread tool support for this format is a significant drawback.

Automating Boolean-Based SQL Injection with Python
How to be efficiently lazy at finding hidden gems in predictable places – Database Edition.

Cloudflare R2 x Django. Static Files. User uploads, css, images, js and more. Production-ready. 
The video covers setting up and managing Django files, including static and user-uploaded files, using Cloudflare's R2 object storage. It emphasizes best practices for configuring environment variables, securing API keys, and managing static and media files in Django with advanced validation and customization options.

Django: create sub-commands within a management command 

Optimizing PyTorch Docker images: how to cut size by 60%


Interesting Projects, Tools and Libraries

Deep-Live-Cam
Real time face swap and one-click video deepfake with only a single image.

pgai
Bring AI models closer to your PostgreSQL data.

emval
emval is a blazingly fast Python email validator written in Rust.

DeltaDB
DeltaDB is a lightweight, fast, and scalable database built on polars and deltalake. 

Unstract
No-code LLM Platform to launch APIs and ETL Pipelines to structure unstructured documents.

LinkedIn_AIHawk
LinkedIn_AIHawk is a tool that automates the jobs application process on LinkedIn. Utilizing artificial intelligence, it enables users to apply for multiple job offers in an automated and personalized way.

AgentK
An autoagentic AGI that is self-evolving and modular.

llm_aided_ocr
Enhance Tesseract OCR output for scanned PDFs by applying Large Language Model (LLM) corrections.

EDSL
Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.


Upcoming Events and Webinars

Virtual: PyMunich Meetup August 2024
There will be following talks
  • Creating Domain Specific Languages with Python
  • Code Detective: Uncovering Complexity with Python’s Importlib and AST

PyLadies Oslo Meetup August 2024
There will be following talks
  • Containerizing and running a Python-based GenAI App
  • Hosting a Streamlit App on AWS
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 662

Thursday, August 8, 2024

View this email in your browser Python Weekly Welcome to issue 662 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks FINALLY Python is Getting Rid of the

Python Weekly - Issue 661

Thursday, August 1, 2024

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

Thursday, July 25, 2024

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

Thursday, July 18, 2024

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)

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,

You Might Also Like

💻 Issue 435 - Microsoft Introduces Modern Web App Pattern for .NET: Accelerating App Modernization to the Cloud

Thursday, November 7, 2024

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

💎 Issue 442 - Low-poly image generation using evolutionary algorithms in Ruby

Thursday, November 7, 2024

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

💻 Issue 437 - Feds: Critical Software Must Drop C/C++ by 2026 or Face Risk

Thursday, November 7, 2024

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

💻 Issue 442 - JavaScript's ??= Operator

Thursday, November 7, 2024

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

📱 Issue 436 - iOS 18.1: Take a Hearing Test with AirPods Pro 2

Thursday, November 7, 2024

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

📱 Issue 439 - GitHub Copilot for Xcode is now available! ✈️ Am I late to talk about this ? 😅

Thursday, November 7, 2024

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

💻 Issue 360 - Why Virtual DOM: Faster Rendering and Performance

Thursday, November 7, 2024

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

💻 Issue 442 - Node.js Frameworks Roundup 2024 — Elysia / Hono / Nest / Encore — Which should you pick?

Thursday, November 7, 2024

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

💻 Why I Still Buy Hard Drives for My PC — Avoid Filling Your iPhone Up With Screenshots

Thursday, November 7, 2024

Also: Perfecting Your PlayStation 5 Remote Play Setup, and More! How-To Geek Logo November 7, 2024 Did You Know It's not the coloration or flavor that gives grapefruit its name, but the way that

JSK Daily for Nov 7, 2024

Thursday, November 7, 2024

JSK Daily for Nov 7, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Unveiling the New Angular 3D Circular Charts Component The Angular 3D Circular Charts