This article shares some practical tricks for the uv tool, including temporarily adding dependencies without polluting virtual environments, creating nearly standalone scripts, quickly testing and running Python tools, running one-off Python tools, and cleaning uv cache.
TL;DR
A bag of uv tricks lands as Poetry gets slammed as an ultimate footgun, browser-use makes websites accessible to AI agents, and FindMy.py taps Apple's Find My network.
Articles & Tutorials
× 12Content Delivery Networks (CDNs) can boost website access speed. The author built a self-hosted CDN that reduced their blog's average response time from 807ms to 189ms. The article details network architecture, server configuration, TLS certificate management, and how to use GeoDNS to minimize access latency.
What are the latest trends and best practices for Python developer tools in 2024? The author shares anti-patterns, recommended practices, and tools including uv, ruff, Mypy, Pytest, Cookiecutter, and Cruft.
Two years ago, the author encountered a multithreading bug, analyzed the code to find a suspected cause, and solved the issue despite not being able to reproduce it. However, two years later the same problem appeared again. This time they dug deeper, finally found the root cause and could reliably reproduce it, truly solving this tricky bug.
How do you implement Bitcoin transactions in Python? This article introduces cryptocurrency concepts, Bitcoin's transaction mechanisms, and how to use Python to implement cryptographically creating, signing, and broadcasting Bitcoin transactions.
The author believes Poetry is counterintuitive and error-prone when used as a build tool. The article points out common issues including nightmarish address operators, misleading include keys, and Schrödinger-like optional dependencies.
The first part of a series on Python packaging, discussing the current state of Python packaging, existing problems, and how to deal with these issues. It covers package name vs import name inconsistencies, dependency hell, installation failures, and emphasizes the importance of virtual environments.
What's the purpose of __pycache__ folders and .pyc files? How can you properly leverage Python's bytecode caching mechanism to improve application performance?
The author developed a website that can display and search all UUIDs. The article introduces several major challenges and solutions, including browser rendering limitations, UUID generation order, and full search functionality.
Python dataclasses are pretty cool, but what's their implementation mechanism? This article attempts to explain the inner workings, including __annotations__, exec, custom dataclass decorators, and the frozen parameter, helping readers better understand how dataclasses work.
Symbolic Execution is a software testing and analysis technique that executes programs by representing program inputs as symbols (rather than concrete values). The article introduces a method to make Python's non-overloadable syntax overloadable without modifying the compiler, using metaprogramming techniques to transform Python code into Z3 expressions.
How do you implement cron-like scheduled tasks in a Python FastAPI application? The author leverages FastAPI's async features to create background tasks, avoiding the need to write separate scripts and CLI commands, and without needing to run tasks outside containers.
Projects & Resources
× 12Makes it easy for AI agents to interact with browsers, supporting visual + HTML extraction, automatic multi-tab management, XPath extraction for precise LLM operations, custom actions, self-correction, LangChain support, and parallelizing as many agents as possible. (7.2K stars)
An open-source deep learning framework from ByteDance for large-scale recommendation models, built on TensorFlow, supporting batch/real-time training and deployment. (3.7K stars)
Integrates resources from different open-source projects, containing everything needed to query Apple FindMy devices, providing unified foundational components. Cross-platform, retrieves and decrypts locations, scans nearby FindMy devices. (1.5K stars)
A Python-developed utility that organizes 137 different emojis, letting you quickly insert emojis with keyboard shortcuts. Windows only.
An official integration component from Xiaomi that lets you use Xiaomi IoT smart devices in Home Assistant. (15.4K stars)
Konfig was a developer tools startup focused on making API integration simpler. They've now open-sourced all their product code, documentation resources, and other byproducts. (1.2K stars)
An intelligent English vocabulary tool powered by AI technology that helps you quickly build your own English vocabulary database. Features an innovative efficient vocabulary collection mode, helping you master new words through engaging story mode and test mode.
A physics platform specifically designed for robotics/embodied AI/physical AI applications, serving as a novel general-purpose physics engine, robotics simulation platform, photorealistic rendering system, and generative data engine. (19.8K stars)
Microsoft's open-source discrete prompt optimization framework with self-optimization mechanisms. Key components: feedback-driven optimization, evaluating and synthesizing diverse examples, self-generating chain-of-thought steps. (1K stars)
Exports your personal data from applications like iMessages, Twitter bookmarks, ChatGPT, Gmail, and LinkedIn, providing both a Python SDK and a desktop application. (1.3K stars)
A collection of applications built with OpenAI, Anthropic, Google's large models, and LLaMA open-source models. Learn AI applications across different domains from excellent projects. (9.8K stars)
A Python implementation of Hiccup syntax, using Python lists or tuples to represent HTML elements and dicts to represent element attributes. Aims to make HTML rendering programmatic, simple, and easy to read.
Discussions & Questions
× 2Annual curated recommendations for this year's Python libraries/tools, including general-purpose and AI/ML/data categories, totaling 20 items.
Python's chained assignment operation "a=b=c" might not work the way you think it does!