<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on 公众号「沈显鹏」</title><link>https://shenxianpeng.dev/zh-cn/tags/python/</link><description>Recent content in Python on 公众号「沈显鹏」</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>xianpeng.shen@gmail.com (沈显鹏)</managingEditor><webMaster>xianpeng.shen@gmail.com (沈显鹏)</webMaster><copyright>Copyright © 2017–2026 Xianpeng Shen. All rights reserved.</copyright><lastBuildDate>Wed, 08 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://shenxianpeng.dev/zh-cn/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>PyCon LT 第一天，我与 Airflow 大佬“面基”了</title><link>https://shenxianpeng.dev/zh-cn/posts/2026/pycon-lt-d1/</link><pubDate>Wed, 08 Apr 2026 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2026/pycon-lt-d1/</guid><description>PyCon LT 第一天，我与 Airflow 大佬 Jarek “面基”了。分享了我的“追星”经历，以及 Mozilla 工程师关于工具链的高质量分享。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2026/pycon-lt-d1/featured.jpg"/></item><item><title>Python 供应链“核弹”级攻击刚刚发生：一个 pip install 就偷走你的所有凭证！</title><link>https://shenxianpeng.dev/zh-cn/posts/2026/pipguard/</link><pubDate>Thu, 26 Mar 2026 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2026/pipguard/</guid><description>Python 供应链攻击已经发生，一个 pip install 就能偷走你的所有凭证。介绍如何用 pipguard 在安装前拦截恶意包。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2026/pipguard/featured.jpg"/></item><item><title>你的项目还在跑 Python 3.9 吗？我写了个工具来盯着这件事</title><link>https://shenxianpeng.dev/zh-cn/posts/2026/py-eol/</link><pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2026/py-eol/</guid><description>py-eol 是一个专门用来检查 Python 版本是否快到期的工具。它可以扫描项目文件，精确到行号，告诉你哪些地方还在用 EOL 的版本。还可以接入 CI，让检查自动跑，不让过期版本偷偷混进来。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2026/py-eol/featured.jpg"/></item><item><title>py-eol：你可能一直在用“过期 Python”，只是没发现</title><link>https://shenxianpeng.dev/zh-cn/posts/2025/py-eol/</link><pubDate>Thu, 04 Dec 2025 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2025/py-eol/</guid><description>py-eol 是一个轻量的小工具，帮助你快速判断某个 Python 版本是否已过期或即将 EOL，适合本地使用，也能集成到 CI/CD 中，让项目在版本管理上更可靠。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2025/py-eol/featured.jpg"/></item><item><title>被 Airflow Maintainer 一顿夸：Rust 重写版 pre-commit 项目 prek 的崛起</title><link>https://shenxianpeng.dev/zh-cn/posts/2025/pre-commit-competitors/</link><pubDate>Wed, 13 Aug 2025 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2025/pre-commit-competitors/</guid><description>昨天在网上冲浪，突然看到了一个仓库叫 &lt;code&gt;prek&lt;/code&gt;，一看介绍是 —— ⚡ Better &lt;code&gt;pre-commit&lt;/code&gt;, re-engineered in Rust。这就引起了我的兴趣，毕竟 &lt;code&gt;pre-commit&lt;/code&gt; 作为非常广泛的预提交的工具，如果能改进，尤其是性能方面的改进，肯定是好事。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2025/pre-commit-competitors/featured.jpg"/></item><item><title>全程记录｜PyCon LT 2025 第三天：AI 能取代你吗？</title><link>https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d3/</link><pubDate>Tue, 29 Apr 2025 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d3/</guid><description>今天是 PyCon LT 2025 的最后一天，主题是 AI and ML Day。分享了几位女性讲者的精彩演讲，以及对数据科学和 AI 的新认识。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d3/featured.jpg"/></item><item><title>全程记录｜PyCon LT 2025 第二天：被几位女性开发者圈粉了</title><link>https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d2/</link><pubDate>Thu, 24 Apr 2025 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d2/</guid><description>今天是 PyCon LT 2025 的 Data Day，主题是 Dataframes、Databases、Orchestration。虽然不太熟悉这些领域，但几位女性讲者的演讲让我印象深刻，收获颇丰。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d2/featured.jpg"/></item><item><title>全程记录｜PyCon LT 2025 第一天：我在异国 Python 大会上的见闻</title><link>https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d1/</link><pubDate>Wed, 23 Apr 2025 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d1/</guid><description>参加了 PyCon LT 2025 的第一天，分享了演讲内容、个人感受以及对 Python 社区的思考。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/misc/pycon-lt-d1/featured.jpg"/></item><item><title>CPython 停止更新 Copyright 了，为什么？</title><link>https://shenxianpeng.dev/zh-cn/posts/2025/copyright/</link><pubDate>Mon, 20 Jan 2025 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2025/copyright/</guid><description>CPython 停止更新 Copyright 的原因和过程。了解 Python 项目法律团队的建议，以及如何处理开源项目中的版权声明。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2025/copyright/featured.jpg"/></item><item><title>pip vs pipx 的区别</title><link>https://shenxianpeng.dev/zh-cn/posts/2024/pip-vs-pipx/</link><pubDate>Tue, 26 Nov 2024 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2024/pip-vs-pipx/</guid><description>本文介绍了 pip 和 pipx 的区别，帮助开发者选择合适的工具来管理 Python 包和命令行工具。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2024/pip-vs-pipx/featured.jpg"/></item><item><title>初步了解 PyPA（Python Packaging Authority）下的知名项目和关系</title><link>https://shenxianpeng.dev/zh-cn/posts/2024/pypa/</link><pubDate>Thu, 05 Sep 2024 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2024/pypa/</guid><description>本文介绍了 PyPA（Python Packaging Authority）下的知名项目，包括 pip、setuptools、wheel 等，并分析了它们之间的关系，帮助读者更好地理解 Python 包管理和分发的生态系统。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2024/pypa/featured.jpg"/></item><item><title>Python 软件基金会 (PFS) 基础设施概览</title><link>https://shenxianpeng.dev/zh-cn/posts/2024/psf-infra/</link><pubDate>Tue, 28 May 2024 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2024/psf-infra/</guid><description>本文介绍了 Python 软件基金会 (PFS) 的基础设施，包括其服务、提供商和团队成员，帮助读者了解 PFS 如何支持 Python 社区。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2024/psf-infra/featured.jpg"/></item><item><title>Python 和 SLSA 💃</title><link>https://shenxianpeng.dev/zh-cn/posts/2023/python-and-slsa/</link><pubDate>Wed, 15 Nov 2023 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2023/python-and-slsa/</guid><description>本文介绍了如何在 Python 生态系统中使用 SLSA 框架来生成和验证 Python 工件的来源，从而提升软件供应链的安全性。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2023/python-and-slsa/featured.jpg"/></item><item><title>你的 Python 代码够不够 Pythonic？</title><link>https://shenxianpeng.dev/zh-cn/posts/2021/pythonic/</link><pubDate>Sun, 28 Mar 2021 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2021/pythonic/</guid><description>本文介绍了 Pythonic 的概念，并通过示例展示如何编写更简洁、优美的 Python 代码，帮助开发者提升代码质量和可读性。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2021/pythonic/featured.jpg"/></item><item><title>在 GitHub 上发布一个 Python 项目需要注意哪些</title><link>https://shenxianpeng.dev/zh-cn/posts/2020/how-to-release-python-project/</link><pubDate>Sun, 13 Sep 2020 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2020/how-to-release-python-project/</guid><description>本文介绍个人或企业在 GitHub 上发布一个 Python 项目需要了解和注意的内容，包括项目结构、依赖管理、版本控制等方面的建议。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2020/how-to-release-python-project/featured.jpg"/></item><item><title>关于 Python pip install 与版本管理</title><link>https://shenxianpeng.dev/zh-cn/posts/2020/pip-install-and-versioning/</link><pubDate>Sun, 30 Aug 2020 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.dev/zh-cn/posts/2020/pip-install-and-versioning/</guid><description>解释 pip install 在不同版本号场景下的行为，包括如何处理 beta 版本，以及在指定版本号时使用 &lt;code&gt;--upgrade&lt;/code&gt; 的影响。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.dev/zh-cn/posts/2020/pip-install-and-versioning/featured.jpg"/></item></channel></rss>