This article raises a sharp question: some teachers suggest students contribute to open source projects but don't provide effective guidance, leading to many ineffective interactions in open source projects. For students wanting to contribute to open source, avoid these mistakes: don't submit PRs with Git practice content to original repos, don't break existing linter and formatting standards, don't do check-in style greetings...
TL;DR
When your professor wants you to do open source; Ruff v0.4.0 ships a hand-written recursive descent parser, and Fedora mulls building Python with -O3.
Articles & Tutorials
× 12f-strings are useful and powerful. The article introduces frequently used scenarios, such as handling numbers (integers, floats, scientific notation, etc.), percentages, dates, padding, positive/negative signs, etc.
How to develop a note-taking app that can record and transcribe voice? This tutorial uses Django+OpenAI+AlpineJS to develop a simple project.
The article introduces 7 types of practices that can improve web project security, including validating and sanitizing input data, using secure coding tools, using the latest Python and libraries, handling errors and logging wisely, principle of least privilege, using HTTPS for transmission, and regular security audits.
A proposal from Fedora Linux hopes to build the CPython interpreter and standard library with the "-O3" compiler optimization flag, expected to improve overall Python performance by 1.04x. The proposal corresponds to Fedora 41 and Python 3.13.
Ruff has released a new version! The new parser is 2x faster, meaning all linting and formatting speeds up by 20-40%. The article introduces many advantages this hand-written parser brings compared to the old parser. (Amazing how the Astral team excels at building in public!)
RSS is a good thing, strongly recommend everyone use it! Personal blogs should provide RSS feeds as standard. Django framework has Syndication for creating RSS feeds, but they're hard to read by default. The article introduces how to add styles to RSS feeds. (PS: My blog also has RSS preview beautification)
How to quickly determine if an element is in a set? The most popular method is Bloom filters, but there are other filters. The article introduces the recently launched binary fuse filter, which is faster and uses less memory. It introduces the pyxorfilter library usage, whose documentation references two academic papers for interested readers.
Code Review is a key part of project development, with many review points worth attention. The author shares 3 important little things once overlooked: naming, guiding comments, and communication methods. The key points summarized in the article play important roles in improving code maintainability and shaping team atmosphere.
The author has a great starting point: major apps have annual summaries, we use keyboards daily, why not give them a work summary? The pynput library can monitor keyboard and mouse events to implement statistics. The article also introduces developing a simple viewing interface with tkinter.
Upper Bound Version Constraints are a mechanism for specifying the highest installable version of software packages. This 10,000-word article mainly points out many drawbacks of this mechanism and explains the concept and limitations of Semantic Versioning (SemVer).
The author recently spent weeks developing a code formatter for their programming language. The article introduces some technical implementation knowledge, mainly how to handle various Abstract Syntax Trees (AST), including text, whitespace, indentation, width, content rendering, comment handling, etc. (PS: The author's article from last year: A Decade of Developing a Programming Language)
Projects & Resources
× 12A high-performance static code analyzer developed in Rust, over 100x faster than pytype and pyright. Can detect list out-of-bounds and non-existent dictionary keys, supports various language server features like code completion and renaming. (1.9K stars)
Official Claude cookbook with a series of resources and tutorials. (2.7K stars)
A workflow orchestrator using Kubernetes that can define and run container YAML workflows. Provides @flow.task() decorator, each Python function can run as a Kubernetes pod.
Used for downloading files from code repositories, convenient for providing to chatbots. Supports filtering by language, can exclude certain directories/file types and test files, supports removing comments and docstrings.
A knowledge-dense quick reference sheet focusing on Python core content, comprehensive and curated.
A reinforcement learning framework designed specifically for DouDizhu (Fighting the Landlord). DouDizhu involves cooperation, competition, imperfect information, huge state and action spaces. It proposes combining deep Monte Carlo with action encoding and parallel actors, providing a simple and effective solution. (3.9K stars)
Supports seamless integration with multiple dashboards, with preferred recommendations being Homepage, Homarr, and Dashy. (4K stars)
newspaper3k is a project with 13.7K stars for extracting various elements from websites, recognizing over 10 text languages. But that project hasn't been updated for over 3 years. newspaper4k is its fork, adding many features and fixing numerous issues.
Powered by marian and Bergamot, provides local translation with CLI and GUI usage options.
Inserts print statements directly into AST at runtime, can print variable assignments and other information. Simple usage - the constable.trace decorator inserts print statements into function AST when tracked variables are assigned.
A Python library for processing textual data, used for diving into common natural language processing tasks like part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, etc. (8.9K stars)
Generates RSS subscriptions based on WeChat Reading (supports .atom, .rss, .json formats), automatically updates content on schedule, supports full-text output, supports exporting subscription sources to OPML. (2.7K stars)
Podcasts & Videos
× 2Philippines' 9th year hosting PyCon activities, this talk video list has 37 videos total.
Today's LLMs are sprouting everywhere like mushrooms after rain, and conditions for individual developers to train LLMs are becoming increasingly convenient. This video introduces LLM-related concepts and knowledge needed for training LLMs. The author's other video will provide hands-on practice, applying theory through examples.