Python Weekly - Python Weekly - Issue 617

View this email in your browser

Python Weekly

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

Vector Embeddings Tutorial – Create an AI Assistant with GPT-4 & Natural Language Processing 
Learn about vector embeddings and how to use them in your machine learning and artificial intelligence projects. Learn how to create an AI assistant with vector embeddings.

How the Python Dataframe Interchange Protocol Makes Life Better
In this article, we answer three questions about the Python Dataframe Interchange Protocol: What it is + what problems it solves; how it works; and how extensively it's been adopted.

Introducing flake8-logging
This article introduces flake8-logging, a Flake8 plugin that helps you to improve the logging in your Python code. Flake8 is a linter that checks Python code for errors and style violations. flake8-logging extends Flake8 by adding rules for checking logging code.

How We're Building AI Search Engines using LLM Embeddings 
Demo and explanation of how to use the Python sentence-transformers library to generate, store, and query LLM embeddings using the Django ORM and pgvector. This video demonstrates a prototype application that enables "AI-powered search" for job descriptions using an unstructured, English-language description of a job seeker.

Debugging Catastrophic Backtracking for Regular Expressions in Python
This post discusses the problem of catastrophic backtracking in regex, and it provides some tips on how to avoid it. It also discusses the different ways that regex engines can handle backtracking, and the trade-offs between different approaches.

Processing a 250 TB dataset with Coiled, Dask, and Xarray
The authors successfully processed 250TB of geospatial cloud data in 20 minutes using Xarray, Dask, and Coiled, highlighting the challenges and optimizations involved, all while keeping the cost at approximately $25. This achievement demonstrates the feasibility of large-scale data processing, exposes scalability issues, and explores cost-efficient strategies for such tasks.

Deploying Django with Kamal (mrsk)
If you just want to deploy containers on a remote machine, Kamal might be a nice addition to your toolbelt. It automates many common steps when deploying containers to one or more remote machines, without introducing the complexity of something like Kubernetes or having to use a managed service.

Add database search with Django and HTMX
We'll create a fast and simple database search using Django and HTMX. It's easy and fast to do with HTMX. There'll be 6 steps.

When to use classes in Python? When you repeat the same functions
In this article, we look at another heuristic for using classes in Python, with examples from real-world code, and some things to keep in mind.

Towards a new SymPy: Part 1 - Outline
This first post will outline the structure of the foundations of a computer algebra system (CAS) like SymPy, describe some problems SymPy currently has and what can be done to address them. Then subsequent posts will focus in more detail on particular components and the work that has been done and what should be done in the future.
  • Part 2 - Polynomials - This post will describe SymPy’s computational algebra system for polynomials and how each of these steps could be applied to speed up SymPy. I will talk a bit about FLINT and python-flint but I will also write a separate post about those because I know that some people will be more interested in using python-flint than SymPy itself and I hope to encourage them to contribute to python-flint.

How to Use Apple Vision Framework via PyObjC for Text Recognition
THis article discusses how to use the Vision framework via PyObjC, which allows you to use Objective-C frameworks from Python. The Vision framework is a machine learning framework that can be used to perform tasks such as face detection, object detection, and text recognition.

Visualizing the CPython Release Process

Altering Python attribute handling for modules

How to model a following system similar to Twitter and Instagram with Python and Django


Interesting Projects, Tools and Libraries

Litestar
Litestar is a powerful, flexible yet opinionated ASGI framework, focused on building APIs, and offers high-performance data validation and parsing, dependency injection, first-class ORM integration, authorization primitives, and much more that's needed to get applications up and running.

InstaGraph
Converts text input or URL into knowledge graph and displays.

Prompt flow
Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.

kr8s
A batteries-included Python client library for Kubernetes that feels familiar for folks who already know how to use kubectl.

Pyflyby
A set of productivity tools for Python.

pai
A Python REPL with a built in AI agent and code generation.

view.py
Lightning-fast, modern web framework.

django-send-sms
Send SMS from Django application using any SMS service provider just writing a single line of code.

WhatsApp-Llama
Finetune a LLM to speak like you based on your WhatsApp Conversations.

textual-web
Run TUIs and terminals in your browser.

LiteLLM
Call all LLM APIs using the OpenAI format [Anthropic, Huggingface, Cohere, TogetherAI, Azure, OpenAI, etc.]

blip-caption
Generate captions for images with Salesforce BLIP.

Vanna
Personalized AI SQL Agent.

Medusa
Simple Framework for Accelerating LLM Generation with Multiple Decoding Heads.


New Releases

Python in Visual Studio Code – September 2023 Release
This release includes the following announcements:
  • “Recreate” or “Use Existing” options added to the Python: Create Environment command
  • Experimental terminal activation using environment variables
  • Community-contributed yapf extension


Upcoming Events and Webinars

PyData Berlin Meetup September 2023
There will be following talks
  • Stochastic Gradient Langevin Dynamics - Motivation , foundation and what DL can gain
  • OpenAI’s Whisper: State of the Art Speech Transcription and the Voice Interface Revolution

PyData Zurich Meetup September 2023
There will be following talks
  • How (Not) to Use Fairness Metrics in ML
  • Can We Squeeze() More Out of Python’s Type System? The Challenge of Tensor Shape Annotations
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 © 2023 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 616

Thursday, September 7, 2023

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

Thursday, August 31, 2023

View this email in your browser Python Weekly Welcome to issue 615 of Python Weekly. Let's get straight to the links this week. News The Python Software Foundation has been authorized by the CVE

Python Weekly - Issue 614

Thursday, August 24, 2023

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

Thursday, August 17, 2023

View this email in your browser Python Weekly Welcome to issue 613 of Python Weekly. Let's get straight to the links this week. Articles, Tutorials and Talks How to write Python code people

Python Weekly - Issue 612

Monday, August 14, 2023

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