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

📱 Issue 420 - After initially rejecting it, Apple has approved the first PC emulator for iOS

Thursday, July 18, 2024

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

💻 Issue 419 - Fastest C# Enum to String

Thursday, July 18, 2024

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

💎 Issue 426 - Ruby methods are colorless

Thursday, July 18, 2024

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

💻 Issue 426 - JavaScript Ben.ch (JavaScript Benchmarking Tools)

Thursday, July 18, 2024

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

💻 Issue 344 - What React devs need to know about React Native

Thursday, July 18, 2024

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

💻 Issue 426 - How to build a full stack blog application using NodeJS MongoDB ExpressJS

Thursday, July 18, 2024

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

📱 Issue 423 - Stay Connected: Mastering iOS Notifications for Seamless Communication

Thursday, July 18, 2024

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

💻 Issue 421 - Rust for filesystems

Thursday, July 18, 2024

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

🚙 6 Things That Would Make Android Auto Better — How to Use Your Apple Watch as a Microphone

Thursday, July 18, 2024

Also: Why You Should Own a Laser Engraver, and More! How-To Geek Logo July 18, 2024 Did You Know The bright short-arc lamps in specialized IMAX projectors are filled with xenon gas and pressurized at

JSK Daily for Jul 18, 2024

Thursday, July 18, 2024

JSK Daily for Jul 18, 2024 View this email in your browser A community curated daily e-mail of JavaScript news How to Create Distortion and Grain Effects on Scroll with Shaders in Three.js Learn how to