Python Weekly - Python Weekly - Issue 655

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 newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free

Articles, Tutorials and Talks

Parsing Python ASTs 20x Faster with Rust
The post describes how the integration of Rust can significantly speed up the parsing of Python Abstract Syntax Trees (ASTs). By rewriting critical components in Rust, the process can be made up to 20 times faster compared to the original Python implementation, offering substantial performance improvements for developers working with ASTs in Python.

Do These 5 Things if You Don’t Want to Write Crappy Code 
In this video, I'll share 5 key things you should do to avoid writing crappy code. These tips, drawn from my own experience, will help you write clean code.

Joining Strings in Python: A "Huh" Moment
The article discusses the performance implications of using generators vs list comprehensions when joining strings with str.join() in Python. Contrary to expectations, using a generator expression with str.join() is slower than a list comprehension because the CPython implementation converts the generator to a list internally before joining the strings, negating the memory efficiency benefits of generators.

Ruff: Internals of a Rust-backed Python linter-formatter - Part 1
Ruff is an extremely fast Python linter written in Rust, deriving its speed from parsing Python code and implementing linting rules natively in Rust rather than Python. The article provides insights into Ruff's internals, including its initial implementation using RustPython's parser, the evolution to a hand-written recursive descent parser, and its caching and parallelization mechanisms.

Semantic search with Django, PostgreSQL, & pgvector 
In this talk we will see how to add semantic search functionality to an existing Python-based web project, in particular Django, with data storage on PostgreSQL.

A Beautiful and Timely Python Multi-page Streamlit Application
Showcasing historical summer Olympic data through multiple data visualizations.

React + Django + Ninja: Full-stack app in 15 mins 
We'll build a React and Django app fast, using Django Ninja - aiming for under 15 minutes.

Uncensor any LLM with abliteration
In this article, we will explore a technique called "abliteration" that can uncensor any LLM without retraining. This technique effectively removes the model's built-in refusal mechanism, allowing it to respond to all types of prompts.

How Narwhals and scikit-lego came together to achieve dataframe-agnosticism
And how your Python library can become dataframe-agnostic too.

An Empirical Study on the Energy Usage and Performance of  Pandas and Polars Data Analysis Python Libraries 
The study investigates the energy usage of Pandas and Polars in data analysis tasks to provide insights on energy-efficient software tools. Results show that Polars is more energy-efficient than Pandas, especially with large dataframes, and recommends Polars for energy-efficient and fast data analysis, highlighting the importance of CPU core utilization in library selection.

Boosting AI with Python: Using Click, Jinja2, and GPT Libraries 
This talk explores enhancing AI projects using Python with tools like Click CLI for command-line interfaces, Jinja2 for dynamic content generation, and GPT libraries for language model integration. Attendees will see a practical project demonstration and gain skills to build functional AI applications, along with opportunities to connect with other Python developers.

How to Move From pandas to Polars
Considering replacing pandas with Polars? Learn how to make the switch, what to keep in mind, and how PyCharm can help.


Interesting Projects, Tools and Libraries

warp
NVIDIA Warp is a Python framework for writing high-performance simulation and graphics code. Warp takes regular Python functions and JIT compiles them to efficient kernel code that can run on the CPU or GPU.

pdf-to-podcast
Convert any PDF into a podcast episode!

Aurora
Aurora is a static site generator implemented in Python.

Alga
CLI for remote controlling LG webOS TVs.

Amphi
Open-Source Python ETL. Extract, transform and load data with low-code. Generate native Python code you can deploy anywhere.

textual-serve
Serve Textual apps locally.

django-render
Build fast, user-friendly applications with Django and React.

TokenCost
Easy token price estimates for 400+ LLMs. 

AI-Math-Notes
AI Math Notes is an interactive drawing application that allows users to draw mathematical equations on a canvas. Once an equation is drawn, the application uses a multimodal LLM to calculate and display the result next to the equals sign.


New Releases

NumPy 2.0.0
NumPy 2.0.0 is the first major release since 2006. It is the result of 11 months of development since the last feature release and is the work of 212 contributors spread over 1078 pull requests. It contains a large number of exciting new features as well as changes to both the Python and C APIs.


Upcoming Events and Webinars

PyLadies Amsterdam Meetup June 2024
There will be a talk, Introduction to LLM Agents with LangChain.

PuPPy Meetup June 2024
There will be following talks
  • Scientific programming techniques for improving trustworthiness and reproducibility applied to nuclear fusion data
  • Garbage In, Garbage Out: AI without Intentional Data Engineering

PyBerlin 47 Meetup June 2024
There will be following talks
  • Pickle: everybody hates it, everybody uses it
  • API Quality Framework 

PyData Milano Meetup June 2024
There will be a talk, ScrapeGraphAI: You Only Scrape Once.

PyData Calgary Meetup June 2024
There will be a talk, Exploring the Magic of Command Line Tools and TUI's for Python Developers, Data Science Pros, and DevOps professionals.

PyData Chicago Meetup June 2024
There will be a talk, The Good, the Bad, and the Ugly: Navigating 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 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

Python Weekly - Issue 653

Thursday, June 6, 2024

View this email in your browser Python Weekly Welcome to issue 653 of Python Weekly. Let's get straight to the links this week. News Trojan Embedded in crytic-compilers Python Package Targets

Python Weekly - Issue 652

Monday, June 3, 2024

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

Thursday, May 23, 2024

View this email in your browser Python Weekly Welcome to issue 651 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Learn how you can containerize and run your GenAI

Python Weekly - Issue 650

Friday, May 17, 2024

View this email in your browser Python Weekly Welcome to issue 650 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Learn how you can containerize and run your GenAI

You Might Also Like

New Blogs on ThomasMaurer.ch for 10/22/2024

Tuesday, October 22, 2024

View this email in your browser Thomas Maurer Cloud & Datacenter Update This is the update for blog posts on ThomasMaurer.ch. Azure Hybrid Cloud Pre-Day at Microsoft Ignite 2024 By Thomas Maurer on

BetterDev #270 - Should We Chat, Too? Security Analysis of WeChat’s MMTLS Encryption Protocol

Tuesday, October 22, 2024

Better Dev #270 Oct 21, 2024 Hi all, Welcome to another issue of BetterDev! This week I come across Colmi, a smart ring where you can write your own software to interact with it. It's also have a

JSK Daily for Oct 21, 2024

Monday, October 21, 2024

JSK Daily for Oct 21, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Getting Started with Piecesjs: Building Native Web Components with a Lightweight Framework

📑 Microsoft Word Helps Me Overcome Writer's Block — VR Mods That'll Make You Want a Headset

Monday, October 21, 2024

Also: How to Check Your iPhone's Battery Health, and More! How-To Geek Logo October 21, 2024 Did You Know The brand name "Crayola" was created by Alice (Stead) Binney, the wife of the

Daily Coding Problem: Problem #1585 [Easy]

Monday, October 21, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. The Sieve of Eratosthenes is an algorithm used to generate all prime numbers

Off to the AI Races

Monday, October 21, 2024

Apple's XR and AI Fight -- A New OpenAI Offshoot -- An OpenAI Co-Founder Nears Return -- Google Play Stay -- Trump and Cook Chat -- Disney's Succession Off to the AI Races Apple's XR and AI

THN Cybersecurity Recap: Top Threats, Tools and News (Oct 14 - Oct 20)

Monday, October 21, 2024

Catch up on last week's top cybersecurity stories. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

⚙️ Trouble in paradise: OpenAI & Microsoft

Monday, October 21, 2024

Plus: Tesla is under investigation ... again ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Import AI 388: Simulating AI policy; omni math; consciousness levels

Monday, October 21, 2024

Will UX innovations be just as important as research innovations? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Microsoft's AI agent-building 'LEGO set'

Monday, October 21, 2024

Turn a phone into a ham radio; How to fly away from X; New AI finance tool -- ZDNET ZDNET Tech Today - US October 21, 2024 LEGOs Microsoft's upgraded Copilot Studio is like a LEGO set for building