Python Trending Weekly
ISSUE 60

So Many Python Package Managers!

2024-07-13 Season 2

TL;DR

Python has too many package managers, yet uv cuts Streamlit Cloud's load times by 55%; PySkyWiFi finds free in-flight Wi-Fi through airline loopholes, and ChatGPT's Linux sandbox gets exposed.

Articles 13 Projects 13
🦄

Articles & Tutorials

× 13
01 Python has too many package managers dublog.net

Python's package management ecosystem is diverse at best, fragmented at worst. The author surveys over 10 Python package/virtual environment management tools and concludes: data scientists and researchers should use conda, while everyone else should stick with pip or poetry in production. (Note: here's a Chinese translation)

02 Building a Dynamic Blog with Flask and HTMX(Part 1) devtoys.io

A Python full-stack web development series using Flask and HTMX to build an interactive blog. The second part of the series is the advanced version, adding TailwindCSS and authentication features.

03 PySkyWiFi: completely free, unbelievably stupid wi-fi on long-haul flights robertheaton.com

The author discovered that airplane Wi-Fi requires a credit card, but you can log into airline mileage accounts for free. So they figured out how to send messages by constantly updating account profile information. The article explains the implementation, showcases several prototypes including instant messaging, news/stock prices, and soccer scores, plus ideas for efficiency improvements.

04 Making Python Less Random healeycodes.com

The author encountered a bug related to random numbers and explored how to make random numbers predictable without modifying existing Python code. The article explains how to use ptrace to intercept and modify system calls to getrandom.

05 Secrets of the ChatGPT Linux system incoherency.co.uk

ChatGPT can execute Python code and system commands in a sandbox environment. The author unveils its mystery, revealing it runs on Azure cloud platform K8S cluster machines. The author tried various commands including viewing processes, accessing networks, uploading and downloading files, and even found the complete Python source code for the sandbox environment, approximately 650 lines.

06 I am using AI to automatically drop hats outside my window onto New Yorkers dropofahat.zone

A fascinating project where the author uses AI, Raspberry Pi, and motor devices to create an automated hat-dropping system from their window. It's now available for online purchase - what a novel shopping experience!

07 pip vs. uv: How Streamlit Cloud sped up app load times by 55% blog.streamlit.io

uv is a pip replacement developed in Rust. After Streamlit Cloud adopted it, they achieved significant speed improvements compared to pip. The article analyzes why pip is so slow and what performance optimization techniques uv employs.

08 Talk: The CPython JIT (Chipy 2024) jeff.glass

The author gave a talk about CPython JIT at The Chicago Python Meetup Group this week. This article contains the complete slides and related materials from his presentation. (Additional: How to get started with the latest CPython JIT?)

09 Best Practices for Python Package Naming joshcannon.me

Typically, a Python package name matches its module name, but this is just an unwritten convention. The article analyzed the naming of the 8,000 most popular packages on PyPI and found that 81% have matching package and module names. The article also analyzes other aspects including namespaces, common prefixes/suffixes, etc.

10 The Syscall Showdown: Python vs. Ruby blog.mattstuchlik.com

The author's Cirron library can trace system calls and record single-line code performance. The article uses it to compare Python and Ruby's system call commands and timing differences for operations like file I/O, random number generation, time display, and string printing.

11 How I Saved Scraped Data in an SQLite Database on GitHub jerrynsh.com

Explains how to use GitHub Actions to automatically run web scraping programs and save scraped data to GitHub Artifacts, completely free without needing servers. The article covers the workflow, configuration details, and implementation limitations.

12 Lessons learned in 35 years of making software dev.jimgrey.net

The author shares 12 profound lessons learned from 35 years in software development, focusing mainly on soft skills including doing things in the most direct way, the importance of relationships, never being invisible, doing things willingly, and more.

13 A Bunch of Programming Advice I’d Give To Myself 15 Years Ago mbuffett.com

As an experienced programmer, the author wishes they had seen these suggestions earlier: proactively fix easily overlooked small issues, balance development speed with code quality, simplify complex problems, get to the root of bugs, accept imperfect code, and more.

🎁Python Trending Weekly🎁 Season 1 highlights have been compiled into a beautiful e-book (EPUB/PDF). Send "W30" to the Python Cat WeChat account to get your free download link.

🐿️

Projects & Resources

× 13
01 dnstwist: Domain name permutation engine for detecting homograph phishing attacks, typo squatting, and brand impersonation github.com

DNS fuzzing tool for detecting potential malicious domains, discovering phishing attacks and brand impersonation issues. (star 4.7K)

02 posting: The modern API client that lives in your terminal github.com

A Postman and Insomnia-like HTTP client for the terminal, supporting syntax highlighting, Vim shortcuts, various built-in themes, auto-completable environment variables, command palette for quick access, and more. (star 1.9K)

posting: The modern API client that lives in your terminal
03 filesystem_spec: A specification that python filesystems should adhere to github.com

Generates templates and specification files for filesystem interfaces to provide stable and reliable common behavior. Libraries like Pandas, Dask, and Huggingface Datasets all use this library internally.

04 babel: a Python Internationalization Library github.com

Primarily used for internationalization in web projects, handling multi-language display issues. (star 1.3K)

05 fastapi-docker-temp: Minimal Docker Project Template Based on FastAPI github.com

Can be used to quickly build and deploy FastAPI-based services. The tech stack also includes SQLModel for database mapping, Poetry for dependency management, and Alembic for database migrations.

06 crawlee-python: A web scraping and browser automation library for Python to build reliable crawlers github.com

Extract data for AI, LLMs, RAG, or GPT. Download HTML, PDF, JPG, PNG and other files from websites, compatible with BeautifulSoup, Playwright and native HTTP. Provides both headed and headless modes, supports proxy rotation. (star 1K)

07 django-sql-explorer: Easily share data across your company via SQL queries github.com

Django-based project for writing and sharing SQL in an SQL editor, viewing results in the browser. Supports adding LLM assistants to help write and debug SQL. (star 2.7K)

django-sql-explorer: Easily share data across your company via SQL queries
08 pyxel: A retro game engine for Python github.com

Develop pixel-style retro games with Python, runs on Windows, Mac, Linux and Web, supports keyboard, mouse and gamepad input. (star 14K)

09 0xtools: X-Ray vision for Linux systems github.com

X-ray vision for Linux systems to detect program performance. Supports measuring thread-level activity, viewing CPU usage for individual threads or the entire system. (star 1.2K)

10 secator: the pentester's swiss knife github.com

A practical toolkit for running security assessment tasks and workflows, supporting dozens of well-known security tools to improve the efficiency of penetration testers and security researchers.

11 rss2newsletter: Convert RSS/Atom feed to email newsletters github.com

Convert RSS to email newsletters, 100% free and open source, integrates with listmonk for email delivery.

12 vectorlite: A fast and tunable vector search extension for SQLite github.com

A runtime loadable extension for SQLite, supporting fast ANN search based on hnswlib, compatible with Windows, MacOS and Linux.

13 LivePortrait: Bring portraits to life! github.com

An open-source portrait animation model by Kuaishou, USTC and Fudan University, supporting audio-video concatenation, automatic cropping of driving videos, template creation, and more. (star 6K)

LivePortrait: Bring portraits to life!
ESC
↑↓ select · ↵ open175 issues