Python celebrated its 31st birthday on January 27th this year. What was it like when it first released its stable version? The article uses Podman container technology to successfully compile and run Python 1.0.1, showcasing Python 1.0's features, characteristics, and important features that were missing in the early days.
TL;DR
Compiling Python 1.0 for a tour of the language's first stable release, open-r1 openly reproduces DeepSeek-R1, and Ruff begins building static type checking.
Articles & Tutorials
× 12Visualizing a project's dependency graph can help understand project structure, identify circular dependencies, and poor design. The article introduces how to use the Tach tool to visualize Python project dependency graphs, including defining module boundaries, syncing dependencies, and viewing dependency graphs.
io.BytesIO is Python's class for handling byte data in memory, supporting file-like object read and write operations. The author points out that its read() method increases memory usage and compares two methods that can optimize memory usage: BytesIO.getbuffer() and BytesIO.getvalue().
The author developed a single-file Django framework called nanodjango. The article introduces how it's implemented through "monkey patching" techniques, explaining how to cleverly modify Django library's core mechanisms to simplify it into a single-file form.
JIT decorator patterns dynamically compile functions into optimized machine code, using tools like LLVM for compilation and execution. The article demonstrates three implementation strategies: AST-based JIT, bytecode-based JIT, and trace-based JIT, explaining their implementation principles and specific cases (Triton, Numba, JAX).
Durable execution refers to persistently storing code execution state (such as variable values, function call results, etc.) so that execution can resume after program restart or interruption. The article introduces modifying AST to intercept function calls, supporting durable execution without changing original code logic.
Packaging and distributing Python applications on Windows isn't convenient, and tools like pyinstaller and py2exe aren't always suitable. The article proposes a flexible solution similar to virtual environments that can be transferred between machines, requires no additional tools, and is independent of dependency paths.
Switching languages equals switching mindsets—not just syntax. The article shares excellent tools from the Python community for R language users, including IDEs, environment management, data analysis, and table creation.
LibreTranslate is a lightweight API service based on Argos Translate that supports text detection and translation. The article introduces its service deployment and Python implementation, as well as how to manage large models and optimize performance.
This is a series of articles about Python free threading, covering how to install and run GIL-disabled Python, port Python packages to support free threading, set up CI, testing and debugging, etc.
There are quite a few Python libraries available for game development. The article provides a checklist and comparison of their pros and cons, including Pygame, Pyglet, Arcade, Panda3D, Ursina, and Cocos2d.
What are the pros and cons of different task queues and task scheduling tools, and what choices are available in Django projects? The author identifies shortcomings of django-mailer and django-apscheduler, providing four solutions: django-tasks, django-q2, cron, and celery, with code examples and reference configurations.
Projects & Resources
× 12Hugging Face's official open source implementation of DeepSeek-R1, aiming to complete the missing open source parts of DeepSeek-R1 so everyone can replicate and reproduce it. (17.2K stars)
This model's Chinese name is "Yue" (music), specialized for music generation, creating complete songs with vocals and accompaniment based on lyrics. Can simulate various genres/languages/vocal techniques. (3.1K stars)
A text content extraction library supporting PDFs, images, and Office documents, with Python async and type hint support.
DeepSeek's open source multimodal large model series. The latest Janus-Pro not only generates images from text but also recognizes images. The 7B version outperformed DALL-E 3 and Stable Diffusion in testing. (15.1K stars)
Supports QQ, QQ channels, Telegram, WeChat platforms (Gewechat, Enterprise WeChat), built-in Web Chat, OpenAI GPT, DeepSeek, Ollama, Llama, GLM, Gemini, OneAPI, LLMTuner. Supports LLM Agent plugin development with visual panel. One-click deployment. Supports Dify workflows, code executor, Whisper speech-to-text. (2.3K stars)
Community member @fushall translated the open source "Cosmic Python" during the New Year holiday - a book about managing complexity with Pythonic architectural patterns.
Apple Intelligence is closed and inflexible. This "Orange Intelligence" project supports customization, using OpenAI or local LLaMA models to enable MacOS applications to seamlessly capture, process, and replace text.
A Netflix-style streaming platform developed with Python Django, providing subscription-based movie and TV show playback. Users can browse content, manage watchlists, track viewing history, and subscribe to access premium content through Stripe.
A multi-agent collaboration system for end-to-end film automation in 3D spaces, including roles like director, screenwriter, actors, and cinematographer.
A super-fast event loop library developed with Zig, fully compatible with asyncio, focused on maximizing performance and minimizing latency.
Simple URL-to-screenshot service supporting self-hosting, runs in Docker, supports scrolling pages and regional screenshots, automatically handles 302 redirects, and properly handles download links and API requests.
A CLI tool for automated video subtitle transcription, translation, and embedding, supporting concurrent processing of multiple videos, real-time progress tracking, with rich console interface.
Discussions & Issues
× 1Finally coming! The powerful Ruff is preparing to bring another performance surprise to Python with Rust!