PythonHub Logo Python Hub Weekly Digest for 2024-06-30

💖 Most Popular

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.

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.

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.

Convert any PDF into a podcast episode!

Django Enhancement Proposal 14: Background Workers
As of today, DEP-14 has been approved � The DEP was written and stewarded by Jake Howard. A very ...

📖 Articles

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 ben...

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.

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.

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.

Python Hub Weekly Digest for 2024-06-23

A beautiful Python monstrosity
Creating performance tests for Python Morsels exercises is a frequent annoyance I loathe writing ...

Introduction to Machine Learning: Why There Are No Programmed Answers
Home Table of Contents Introduction to Machine Learning: Why There Are No Programmed ...

Django: Introducing django-harlequin, a launcher for Terminal-based SQL IDE Harlequin
Harlequin is a Terminal-based SQL IDE by Ted Conbeer. It is pretty popular, with over 2,500 GitHub ...

⚙️ Projects

Easy token price estimates for 400+ LLMs.

Aurora is a static site generator implemented in Python.

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.

CLI for remote controlling LG webOS TVs.

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

Serve Textual apps locally.

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

← Previous Next →

Project by Ruslan Keba. Since 2012. Powered by Python. Made in 🇺🇦Ukraine.