<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming &#8211; greydreaming</title>
	<atom:link href="https://greyli.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com</link>
	<description>做了一个灰色的梦</description>
	<lastBuildDate>Mon, 09 Nov 2026 15:05:39 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>

<image>
	<url>https://greyli.com/wp-content/uploads/2025/03/avatar-500-compressed-144x144.jpg</url>
	<title>Programming &#8211; greydreaming</title>
	<link>https://greyli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>《Flask 从入门到进阶》正式发售</title>
		<link>https://greyli.com/new-flask-book/</link>
		<comments>https://greyli.com/new-flask-book/#comments</comments>
		<pubDate>Sun, 23 Nov 2025 14:25:36 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask Web开发实战]]></category>
		<category><![CDATA[Flask 从入门到进阶]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Web 开发]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5830</guid>
		<description><![CDATA[经过五年的写（拖）作（延），我的新书《Flask 从入门到进阶》终于出版了！作为《Flask Web 开发实战 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>经过五年的写（拖）作（延），我的新书《<a href="https://helloflask.com/book/4/">Flask 从入门到进阶</a>》终于出版了！作为《<a href="https://helloflask.com/book/1/">Flask Web 开发实战</a>》的全新升级版，新版本在原书的基础上进行了大量更新和调整，以便适应当下的技术栈。目前已经有现货可以购买：</p>
<ul>
<li><a href="https://item.jd.com/10197448824391.html">京东</a></li>
<li><a href="https://product.dangdang.com/12441003237.html">当当</a></li>
<li><a href="https://helloflask.com/book/4/signed/">作者签名版</a></li>
</ul>
<p>至此我在 Flask 这条人生支线的探索也算圆满了。我从大二自学 Python 和 Flask，毕业前开始写作《Flask Web 开发实战》，这本书出版的同时也成为了 Flask 的维护者，并且为大量相关项目贡献代码。从</span> 2018 年出版到现在，一共重印了 14 次，累计售出 2 万本（包括电子书）。收获了很多好评，在<a href="https://book.douban.com/subject/30310340/">豆瓣</a>上评分也保持在 9 分左右：</p>
<p><a href="https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page.png"><img class="aligncenter size-large wp-image-5834" src="https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-1024x392.png" alt="" width="625" height="239" srcset="https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-1024x392.png 1024w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-150x57.png 150w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-300x115.png 300w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page-624x239.png 624w, https://greyli.com/wp-content/uploads/2025/11/flask-book-douban-page.png 1364w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>到现在终于完成了新版本，而且还拿到了 Armin Ronacher（Flask 作者）的推荐语：</p>
<blockquote>
<p>Great resources make great developers, and it’s wonderful to see Flask supported by such high-quality education materials.</p>
</blockquote>
<p>感谢一直关注这本书并持续催更的朋友！这本书的完成是我们共同努力的结果 :D</p>
<p><a href="https://greyli.com/wp-content/uploads/2025/11/new-flaskbook.jpg"><img class="aligncenter wp-image-5843 " src="https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-768x1024.jpg" alt="" width="409" height="545" srcset="https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-768x1024.jpg 768w, https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-113x150.jpg 113w, https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-225x300.jpg 225w, https://greyli.com/wp-content/uploads/2025/11/new-flaskbook-624x832.jpg 624w" sizes="(max-width: 409px) 100vw, 409px" /></a></p>
<h2>本书主要特色</h2>
<p>这本书换了一个新书名，出于<a href="https://greyli.com/flask-book-2025-signed/#new-name">一个有点滑稽的原因</a>。书名从《Flask Web 开发实战：入门、进阶与原理解析》变成了《Flask 从入门到进阶：Python Web 开发工程化实践》。不过新的副书名也能更好的概括这本书的特点：以学习 Flask Web 开发作为脉络，你能通过这本书掌握相对完整的 Python Web 工程化实践。从 HTTP 原理到数据库 ORM，从单元测试到代码风格再到性能优化，从 Web 程序开发到 Web API 开发，最后再到不同的部署方式。如果想要深入了解框架，最后还有一章源码解析。同时用两个示例程序串起来各种不同的知识点，比如 Flask 项目的组织方式和技巧，以及 Flask 开发中各类功能的实现。</p>
<p>访问这本书的主页查看详细介绍和章节目录：<a href="https://helloflask.com/book/4/">https://helloflask.com/book/4/</a></p>
<h2>新版本主要变化</h2>
<p>下面是一些具体内容上的变化：</p>
<h3>版本升级</h3>
<table>
<thead>
<tr>
<th>旧版本</th>
<th>新版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Flask 1.x</td>
<td>Flask 3.x</td>
</tr>
<tr>
<td>Python 2.7, 3.6+</td>
<td>Python 3.9+</td>
</tr>
<tr>
<td>Bootstrap 4.x</td>
<td>Bootstrap 5.x</td>
</tr>
<tr>
<td>SQLAlchemy 1.x</td>
<td>SQLAlchemy 2.x</td>
</tr>
</tbody>
</table>
<h3>技术栈更新</h3>
<table>
<thead>
<tr>
<th>旧版本</th>
<th>新版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Pipenv</td>
<td>PDM</td>
</tr>
<tr>
<td>Flask-Mail</td>
<td>Flask-Mailman</td>
</tr>
<tr>
<td>Flake8</td>
<td>Ruff</td>
</tr>
<tr>
<td>Open Iconic</td>
<td>Bootstrap Icon</td>
</tr>
<tr>
<td>Flask-Moment + Moment.js</td>
<td>Day.js</td>
</tr>
<tr>
<td>jQuery</td>
<td>Vanilla JS</td>
</tr>
<tr>
<td>AJAX with jQuery</td>
<td>Fetch API</td>
</tr>
<tr>
<td>Flask for Web API</td>
<td>APIFlask</td>
</tr>
<tr>
<td>云平台部署</td>
<td>Docker 部署</td>
</tr>
</tbody>
</table>
<p>示例程序上做了比较大的调整，删掉了旧版本的 <a href="https://github.com/greyli/sayhello">SayHello</a>、<a href="https://github.com/greyli/todoism">Todoism</a>、<a href="https://github.com/greyli/catchat">CatChat</a>，保留两个程序并做了比较大的重构：</p>
<table>
<thead>
<tr>
<th>旧版本</th>
<th>新版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bluelog</td>
<td><a href="https://github.com/greyli/greybook" target="_blank" rel="noopener">Greybook</a></td>
</tr>
<tr>
<td>Albumy</td>
<td><a href="https://github.com/greyli/moments" target="_blank" rel="noopener">Moments</a></td>
</tr>
<tr>
<td>helloflask/demos</td>
<td><a href="https://github.com/greyli/helloflask/tree/main/examples" target="_blank" rel="noopener">helloflask/examples</a></td>
</tr>
</tbody>
</table>
<p>新版本计划是想做一些删减，比如从 700 页减到 500 页，毕竟一本厚书还是让人蛮有压力的。虽然删掉了两个章节，但是写到最后又快到了 700 页，实际的厚度比旧版本还要厚一点点。大概不知不觉又加了很多内容进来。</p>
<h2>面向的读者群</h2>
<p>本书面向的读者群如下：</p>
<ul>
<li>了解 Python 基本语法，想要自己动手开发网站的编程爱好者</li>
<li>熟悉 Python，想要从事 Python Web 开发的后端工程师、运维工程师和爬虫工程师</li>
<li>想要从 Django 等其他 Python Web 框架转向 Flask 的 Python 工程师</li>
</ul>
<p>本书不包含对 Python 的基础知识介绍，所以读者需要事先对 Python 基本语法有一定的了解。另外，Web 开发不可避免的会涉及到一些 HTML、CSS 和 JavaScript 知识，如果你不熟悉这些，可以通过 MDN 提供的 <a href="https://developer.mozilla.org/zh-CN/docs/learn" target="_blank" rel="noopener">Web 开发入门教程</a>学习，简单了解即可。</p>
<h2>推荐语</h2>
<blockquote>
<p>Great resources make great developers, and it’s wonderful to see Flask supported by such high-quality education materials.</p>
<p>—— <a href="https://lucumr.pocoo.org/about/">Armin Ronacher</a>（Flask 作者，Sentry Platform 副总裁）</p>
<p>作为一名对 Python 充满热忱的软件工程师，一名乐于帮助他人、回馈社区的布道者，Grey 对技术准确性、阅读体验感的无限追求都体现在这本新作中，我相信每一名读者都能在字里行间感受到他的诚意。</p>
<p>—— 管俊（《DevOps 实践指南（第 2 版）》译者，戴尔中国卓越研发集团 DevOps 架构师）</p>
<p>这本书内容翔实，推荐给想要系统学习 Flask 的人。不要漏掉书中的小知识点哦。</p>
<p>—— <a href="http://lepture.com/">Hsiaoming Yang</a>（Typlog 创始人，Authlib 作者）</p>
</blockquote>
<h2>关于作者</h2>
<p class="">我是李辉（Grey Li），Flask &amp; APIFlask 的维护者，Flask 开发团队（<a href="https://palletsprojects.com/people" target="_blank" rel="noopener">Pallets Team</a>）成员， HelloFlask 社区和代码厨房社区创建者，微软 Python 方向最有价值专家（MVP）。目前就职于戴尔中国卓越研发集团，担任首席软件工程师。</p>
<p>我热衷于开源软件的应用和推广，为 Flask 等开源项目贡献过大量代码。也曾在 PyCon China、PyCon US、COSCUP、COSCon、CommunityOverCode 等技术大会担任演讲嘉宾。你可以在 <a href="https://github.com/greyli" target="_blank" rel="noopener">GitHub</a> 上看到我的开源项目。</p>
<p>如果你想了解我的新作品或其他动态，可以关注我的 <a href="https://twitter.com/greylihui" target="_blank" rel="noopener">Twitter</a> 和<a href="https://greyli.com/files/qrcode_gh.jpg" target="_blank" rel="noopener">微信公众号</a>，或是加入我的<a href="https://greyli.com/newsletter" target="_blank" rel="noopener">邮件通讯列表</a>。</p>
<h2>勘误、分享和评价</h2>
<p>在阅读过程中如果发现了排版或内容上的错误，欢迎通过下面的方式提交勘误。我会在后续重印时进行修正。感谢反馈！</p>
<ul>
<li>提交 <a href="https://github.com/greyli/helloflask/issues/new/choose">GitHub issue</a></li>
<li>在<a href="https://codekitchen.community/t/topic/837">勘误收集帖</a>留言</li>
</ul>
<p>如果你觉得这本书还不错，欢迎分享到社交网络，或是告诉你的同事和朋友。也欢迎在<a href="https://book.douban.com/subject/37668215/">本书的豆瓣页面</a>标记和评价。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/new-flask-book/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>《Flask 从入门到进阶》签名版预售</title>
		<link>https://greyli.com/flask-book-2025-signed/</link>
		<comments>https://greyli.com/flask-book-2025-signed/#comments</comments>
		<pubDate>Fri, 17 Oct 2025 10:58:36 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask Web开发实战]]></category>
		<category><![CDATA[Flask 从入门到进阶]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5742</guid>
		<description><![CDATA[五年了，终于等到这一天。《Flask Web 开发实战》的全新升级版《Flask 从入门到进阶：Python  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>五年了，终于等到这一天。《Flask Web 开发实战》的全新升级版《<a href="https://helloflask.com/book/4/">Flask 从入门到进阶：Python Web 开发工程化实践</a>》将于下个月正式发售。和上一版一样，先来预售作者签名版。</p>
<h2>签名版</h2>
<p>签名版的价格和上一版保持一致，依然是 109。付款方式和详细说明可以访问预售页面查看：</p>
<p><a href="https://helloflask.com/book/4/signed/">https://helloflask.com/book/4/signed/</a></p>
<p>签名版除了送 2 张 Flask 贴纸，还会额外送一张我的名片，可以用来当书签或者飞着玩。具体发货时间取决于正式发售时间，虽然不能完全保证，但我会尽量让签名书第一批发出。</p>
<h2 id="new-name">新书名</h2>
<p>你也许好奇为什么要换一个新书名，而不是作为第 2 版出版，即《Flask Web 开发实战（第 2 版）》。我设想了一些合理解释：因为内容变动比较多，换个更贴切的书名；在副书名里加一个 Python 关键字，更容易被别人搜索到……但背后实际的乌龙是：管理书号的工作人员在录入系统时打错了名字，把《Flask Web 开发实战》写成了《Flash Web 开发实战》。</p>
<p>按照出版规定，如果我想作为原书第 2 版来出版，那么新书名就只能叫《Flash Web 开发实战（第 2 版）》了。诸位应该也不想学 Flash Web 吧？</p>
<p><a href="https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster.jpg"><img class="aligncenter size-large wp-image-5743" src="https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-1024x1024.jpg" alt="" width="625" height="625" srcset="https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-1024x1024.jpg 1024w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-150x150.jpg 150w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-300x300.jpg 300w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-144x144.jpg 144w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster-624x624.jpg 624w, https://greyli.com/wp-content/uploads/2025/10/flask-book-signed-poster.jpg 1600w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/flask-book-2025-signed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>《Flask 入门教程》第 4 版发布</title>
		<link>https://greyli.com/flask-tutorial-v4/</link>
		<comments>https://greyli.com/flask-tutorial-v4/#respond</comments>
		<pubDate>Mon, 13 Oct 2025 13:12:29 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask 入门教程]]></category>
		<category><![CDATA[写作]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5732</guid>
		<description><![CDATA[即将出版的新书（预计将于本月底发售）变成了一个超强 deadline，它提及的所有东西都要在发售前成为现实。比 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>即将出版的新书（预计将于本月底发售）变成了一个超强 deadline，它提及的所有东西都要在发售前成为现实。比如写进书里但其实还不存在的 APIFlask 3.0.0 版本，以及这个可以被当作先导材料的《Flask 入门教程》。</p>
<p><span data-pm-slice="1 1 [&quot;para&quot;,{&quot;tagName&quot;:&quot;p&quot;,&quot;attributes&quot;:{&quot;style&quot;:null},&quot;namespaceURI&quot;:&quot;http://www.w3.org/1999/xhtml&quot;}]">面向 Flask 2.x 的旧版本当然没法作为先导材料，所以断断续续花了 26 个小时完成了第 4 版的更新。新版本主要有下面这些变动：</span></p>
<ul>
<li>优化全书的内容和措辞</li>
<li>增加对 uv 的介绍</li>
<li>升级到 SQLAlchemy 2.x</li>
<li>针对 Flask 3.1.x 进行内容更新</li>
<li>Python 支持版本调整为 3.9+</li>
<li>增加对蓝本、工厂函数的介绍</li>
</ul>
<p>另外正式加了一章介绍为什么以及如何为本书付费，取代了主页上自愿点击的「付费支持￥10」按钮。考虑到整本书内容完全公开，所以<span data-pm-slice="1 1 [&quot;para&quot;,{&quot;tagName&quot;:&quot;p&quot;,&quot;attributes&quot;:{&quot;style&quot;:null},&quot;namespaceURI&quot;:&quot;http://www.w3.org/1999/xhtml&quot;}]">没法阻止读者逃票，但至少我已经克服了「伸手要钱」的羞耻。</span>对于在工作之外挤出的这些时间，我需要一些正反馈。这样可以让自己更认真维护下去，也不会产生怨念。不仅是获得收入，有时还会收到读者的附言感谢，这给我的生活里带来了很多随机的开心时刻。<a href="https://greyli.com/wp-content/uploads/2025/10/feedback.png"><img class="wp-image-5736 aligncenter" src="https://greyli.com/wp-content/uploads/2025/10/feedback-517x1024.png" alt="" width="253" height="501" srcset="https://greyli.com/wp-content/uploads/2025/10/feedback-517x1024.png 517w, https://greyli.com/wp-content/uploads/2025/10/feedback-76x150.png 76w, https://greyli.com/wp-content/uploads/2025/10/feedback-151x300.png 151w, https://greyli.com/wp-content/uploads/2025/10/feedback-624x1236.png 624w, https://greyli.com/wp-content/uploads/2025/10/feedback.png 862w" sizes="(max-width: 253px) 100vw, 253px" /></a></p>
<p>写新版本的过程中有时也会想，现在跟 AI 说一句「帮我用 Flask 写一个 Watchlist 程序」就大概能实现的程序，还有人愿意来读教程吗？我想至少，在通过教程来学习编程可以让你说一句「我真厉害」，而不仅仅是一句「AI 真厉害」。</p>
<p>另外这个教程最早是在 2019 年发布的，六年过去了，部署章节介绍的 <a href="https://www.pythonanywhere.com/">PythonAnywhere</a> 的 UI 和功能基本没有任何改变。我只需要更新 Python 版本选择那个页面的图片，其他部分不需要任何改动。有一种值得托付终生的感觉。希望可以做出来有这样品质的产品和作品。</p>
<p>最后附上相关链接：</p>
<ul>
<li>主页：<a href="https://helloflask.com/book/3" rel="nofollow">https://helloflask.com/book/3</a></li>
<li>阅读：<a href="https://tutorial.helloflask.com/" rel="nofollow">https://tutorial.helloflask.com/</a></li>
<li>书稿更新 PR：<a href="https://github.com/helloflask/flask-tutorial/pull/38">https://github.com/helloflask/flask-tutorial/pull/38</a></li>
<li>示例程序更新 PR：<a href="https://github.com/helloflask/watchlist/pull/21">https://github.com/helloflask/watchlist/pull/21</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/flask-tutorial-v4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>代码厨房开源松 x PyCon China 2024</title>
		<link>https://greyli.com/codekitchen-soos-pycon-china-2024/</link>
		<comments>https://greyli.com/codekitchen-soos-pycon-china-2024/#respond</comments>
		<pubDate>Sun, 10 Nov 2024 10:43:52 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[PyCon China]]></category>
		<category><![CDATA[代码厨房]]></category>
		<category><![CDATA[开源松]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5460</guid>
		<description><![CDATA[活动已结束，回顾文章见这里：https://codekitchen.community/t/topic/137 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>活动已结束，回顾文章见这里：<a href="https://codekitchen.community/t/topic/1372">https://codekitchen.community/t/topic/1372</a></p>
<hr />
<p>七月我们突破了屏幕的限制，在戴尔五角场办公室举办了<a href="https://codekitchen.community/t/topic/1311" target="_blank" rel="noopener" data-itemshowtype="0" data-linktype="2">第一次线下代码厨房开源松</a>。而这一次<a href="https://codekitchen.community/t/topic/1352">开源松 Sprint 6</a> 我打算在 11 月 23 日举办的 <a href="https://cn.pycon.org/2024/" target="_blank" rel="noopener" data-itemshowtype="0" data-linktype="2">PyCon China 2024 大会</a>里办一场开源松。没错，一场面向 Python 爱好者的开源松！</p>
<p><a href="https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster.png"><img class="aligncenter size-large wp-image-5485" src="https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster-766x1024.png" alt="" width="625" height="836" srcset="https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster-766x1024.png 766w, https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster-112x150.png 112w, https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster-224x300.png 224w, https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster-624x834.png 624w, https://greyli.com/wp-content/uploads/2024/11/sprint-6-poster.png 1242w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<h2><strong>开源松！？</strong></h2>
<p>开源松（Song of Open Source）是<a href="https://codekitchen.community/">代码厨房社区</a>自造的词语，可以大概理解为开源黑客松，但是又不必那么 hack。只是一场开源爱好者互相交流和共同参与开源项目的聚会活动。我们希望借助这个活动来鼓励和帮助大家参与开源项目、推动开源项目发展、孵化新的项目 idea。</p>
<p>如果你从来都没有参与过开源项目的话，这次活动也许会是你开源之路的第一步。你会认识其他喜欢编程和开源的朋友，和开源项目维护者们交流，顺便提交第一个开源贡献。</p>
<h2><strong>PyCon China 2024 x 代码厨房开源松</strong></h2>
<p>开源松活动在大会下午开始，你可以在现场找到开源松会场指引标识，或者到代码厨房社区展台询问。如果打算参加活动，记得在报名大会时勾选相应的选项。会场内会设置三个活动区域：</p>
<ul>
<li>养成区：给没有参加过开源项目的新手提供科普和指导</li>
<li>发电区：用爱发电的地方</li>
<li>休息区：代码写累了？来和其他开源爱好者聊天吧</li>
</ul>
<p>顺便也欢迎来代码厨房展台玩。我们为还没开始工作、或者刚刚被裁的朋友准备了「Python 八股文面试题挑战」……通过挑战的话可以体验现场拿 offer 的感觉。</p>
<h2><strong>有哪些项目可以参与？</strong></h2>
<p>在其他项目报名之前，我们已经准备了两个代码厨房社区项目：</p>
<ul class="list-paddingleft-1">
<li>
<p><a href="https://github.com/codekitchen-community/fine-weather">FineWeather</a>：一个 Vuejs+Python 实现的网络相册</p>
</li>
</ul>
<p>不管你喜不喜欢拍照，肯定有一堆照片存在某个地方。有没有想过摆脱商业公司的限制，自己部署一个在线相册？放上自己最喜欢的照片，自己的数据自己管理。一起来打造一个完美的开源相册程序吧。</p>
<p>下面是项目作者 Allen 部署的<a href="https://fine-weather-gallery.tkzt.cn/">相册实例</a>：</p>
<p><a href="https://greyli.com/wp-content/uploads/2024/11/fineweather-1000.png"><img class="aligncenter size-full wp-image-5464" src="https://greyli.com/wp-content/uploads/2024/11/fineweather-1000.png" alt="" width="1000" height="740" srcset="https://greyli.com/wp-content/uploads/2024/11/fineweather-1000.png 1000w, https://greyli.com/wp-content/uploads/2024/11/fineweather-1000-150x111.png 150w, https://greyli.com/wp-content/uploads/2024/11/fineweather-1000-300x222.png 300w, https://greyli.com/wp-content/uploads/2024/11/fineweather-1000-624x462.png 624w" sizes="(max-width: 1000px) 100vw, 1000px" /></a></p>
<ul class="list-paddingleft-1">
<li>
<p><a href="https://github.com/apiflask/apiflask">APIFlask</a>：Python Web API 框架</p>
</li>
</ul>
<p><a href="https://greyli.com/wp-content/uploads/2024/11/apiflask-logo.png"><img class="aligncenter size-large wp-image-5477" src="https://greyli.com/wp-content/uploads/2024/11/apiflask-logo-1024x373.png" alt="" width="625" height="228" srcset="https://greyli.com/wp-content/uploads/2024/11/apiflask-logo-1024x373.png 1024w, https://greyli.com/wp-content/uploads/2024/11/apiflask-logo-150x55.png 150w, https://greyli.com/wp-content/uploads/2024/11/apiflask-logo-300x109.png 300w, https://greyli.com/wp-content/uploads/2024/11/apiflask-logo-624x227.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a>新增项目：</p>
<ul>
<li><a href="https://github.com/pdm-project/pdm">PDM</a> &#8211; Python 包和依赖管理器</li>
<li><a href="https://github.com/pyecharts/pyecharts">pyecharts</a> &#8211; Python ECharts Plotting Library</li>
<li><a href="https://github.com/utilmeta/utilmeta-py">UtilMeta</a> &#8211; Python 渐进式元框架</li>
</ul>
<p>基于 Flask 实现的 Web API 框架，集成了 marshmallow、webargs 等项目来让 Web API 开发更加简单。我们在计划项目的 3.0 版本，有很多有用的功能可以加入。完成了大半的文档翻译项目也等待一个人来再推进一步。</p>
<p>如果你有自己的 Python 开源项目，欢迎报名参与！作为项目维护者，你需要完成这些事情：</p>
<ul>
<li>准备三个不同难度等级的任务</li>
<li>在现场介绍项目和任务</li>
<li>指导参与者完成任务</li>
<li>准备小奖品（可选）</li>
</ul>
<p>报名方式：在代码厨房社区置顶贴留言，或是通过下面的表单报名：</p>
<p><a href="https://jsj.top/f/CscvKZ"> https://jsj.top/f/CscvKZ </a></p>
<h2>你需要准备些什么？</h2>
<p>除了了解 Git 基本用法，你还要会一点 Python。有一台充电器还找得到的笔记本电脑。还有一点点的开源热情。</p>
<p>如果你不仅仅想要来做开源项目，那么可以带一点其他的东西来。比如一个关于你自己项目或其他经验的五分钟分享、新项目的 idea……尽管自由发挥。 如果你有其他想法和建议，欢迎留言。</p>
<h2>开源松/大会报名</h2>
<p>这次开源松将在 PyCon China 2024 内举办，因此报名大会即可参与：</p>
<p><a href="https://hdxu.cn/g77s">https://hdxu.cn/g77s</a></p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/codekitchen-soos-pycon-china-2024/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PyCon China 2023：濒危 Flask 扩展拯救计划</title>
		<link>https://greyli.com/pycon-china-2023-talk/</link>
		<comments>https://greyli.com/pycon-china-2023-talk/#comments</comments>
		<pubDate>Sun, 10 Dec 2023 15:17:28 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[PyCon]]></category>
		<category><![CDATA[PyCon China]]></category>
		<category><![CDATA[PyCon China 2023]]></category>
		<category><![CDATA[开源]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5283</guid>
		<description><![CDATA[月初参加了 PyCon China 2023， 做了一个关于 Flask 扩展生态的演讲。不太算是技术分享，讲 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>月初参加了 <a href="https://cn.pycon.org/2023/">PyCon China 2023</a>， 做了一个关于 Flask 扩展生态的演讲。不太算是技术分享，讲故事为主。主要的契机是最近尝试把几个失去维护的 Flask 扩展通过各种方式「救」了回来，所以借此机会分享一下经验，也号召大家多多参与开源项目。</p>
<h2>演讲介绍</h2>
<p>看着一个又一个 Flask 扩展失去维护，不再兼容新版本的 Python 和 Flask，我们能做些什么？在这个演讲里，我会介绍最近我和一些被遗弃的 Flask 扩展打交道的经历，包括如何更新一个古老的 Python 开源项目，以及正在实施中的一个拯救计划。如果你来自其他开源社区，那么这里介绍的经验或许也会帮到你。</p>
<h2>录像和幻灯片</h2>
<ul>
<li>录像：<a href="https://www.youtube.com/watch?v=lkw9Rhjf6C8">YouTube</a> | <a href="https://www.bilibili.com/video/BV1Ac411q7qY">bilibili</a></li>
<li>幻灯片：<a href="https://greyli.com/slides/pyconchina2023">https://greyli.com/slides/pyconchina2023</a></li>
<li>演讲中提到的 Flask 扩展健康监控项目：<a href="https://github.com/greyli/flask-extension-status">https://github.com/greyli/flask-extension-status</a></li>
</ul>
<p>P.S. bilibili 认定金正恩的照片是违禁图片，留半秒都不行，最后只好贴了一只马在上面。浪费二十分钟。</p>
<h2>照片</h2>
<p><a href="https://greyli.com/wp-content/uploads/2023/12/flask-talk.jpg"><img class="aligncenter size-large wp-image-5284" src="https://greyli.com/wp-content/uploads/2023/12/flask-talk-1024x683.jpg" alt="" width="625" height="417" srcset="https://greyli.com/wp-content/uploads/2023/12/flask-talk-1024x683.jpg 1024w, https://greyli.com/wp-content/uploads/2023/12/flask-talk-150x100.jpg 150w, https://greyli.com/wp-content/uploads/2023/12/flask-talk-300x200.jpg 300w, https://greyli.com/wp-content/uploads/2023/12/flask-talk-624x416.jpg 624w" sizes="(max-width: 625px) 100vw, 625px" /></a> <a href="https://greyli.com/wp-content/uploads/2023/12/flask-talk2.jpg"><img class="aligncenter size-large wp-image-5285" src="https://greyli.com/wp-content/uploads/2023/12/flask-talk2-1024x683.jpg" alt="" width="625" height="417" srcset="https://greyli.com/wp-content/uploads/2023/12/flask-talk2-1024x683.jpg 1024w, https://greyli.com/wp-content/uploads/2023/12/flask-talk2-150x100.jpg 150w, https://greyli.com/wp-content/uploads/2023/12/flask-talk2-300x200.jpg 300w, https://greyli.com/wp-content/uploads/2023/12/flask-talk2-624x416.jpg 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/pycon-china-2023-talk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>代码厨房社区欢迎你</title>
		<link>https://greyli.com/codekitchen/</link>
		<comments>https://greyli.com/codekitchen/#respond</comments>
		<pubDate>Sat, 28 Oct 2023 15:14:46 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[代码厨房]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[社区]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5225</guid>
		<description><![CDATA[代码厨房是一个面向编程和开源爱好者的社区。社区的主体是坐落在 codekitchen.community 的论 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://codekitchen.community">代码厨房</a>是一个面向编程和开源爱好者的社区。社区的主体是坐落在 <a href="http://codekitchen.community">codekitchen.community</a> 的论坛。这个论坛的前身是创建于 2019 年 1 月 11 日的 <a href="https://greyli.com/helloflask-forum/">HelloFlask 论坛</a>（HelloFlask discuss!），因为论坛服务器一直在海外颠沛流离，所以访问起来并不是很顺利。最近把论坛以及 628 位 <a href="https://codekitchen.community/badges/107/-">HelloFlask 原住民</a>一起搬家到了香港，改头换面变成代码厨房社区。</p>
<p>「代码厨房」最早是我创建的公众号的名字。同一时间注册了 daimachufang.com，想要在这个网站上放些什么已经不得而知。后来公众号一再改名，代码厨房已经不见。再一次想起来是在去年 10 月， 29 日心血来潮去参加中国开源年会的开源集市。作为现场唯一一个个人展位，我带去了两个项目。一个是方学园，另一个便是<a href="https://www.bilibili.com/video/BV1Me41197Cx/">代码厨房俱乐部</a>。</p>
<p><a href="https://greyli.com/wp-content/uploads/2023/10/helloflask.jpg"><img class="aligncenter size-large wp-image-5239" src="https://greyli.com/wp-content/uploads/2023/10/helloflask-1024x767.jpg" alt="" width="625" height="468" srcset="https://greyli.com/wp-content/uploads/2023/10/helloflask-1024x767.jpg 1024w, https://greyli.com/wp-content/uploads/2023/10/helloflask-150x112.jpg 150w, https://greyli.com/wp-content/uploads/2023/10/helloflask-300x225.jpg 300w, https://greyli.com/wp-content/uploads/2023/10/helloflask-624x467.jpg 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>出发前一天为代码厨房俱乐部更新了 daimachufang.com（<a href="https://daimachufang.greyli.com/">存档页面</a>），也就是下面的样子：</p>
<p><a href="https://greyli.com/wp-content/uploads/2023/10/daimachufang.png"><img class="aligncenter size-large wp-image-5235" src="https://greyli.com/wp-content/uploads/2023/10/daimachufang-1024x479.png" alt="" width="625" height="292" srcset="https://greyli.com/wp-content/uploads/2023/10/daimachufang-1024x479.png 1024w, https://greyli.com/wp-content/uploads/2023/10/daimachufang-150x70.png 150w, https://greyli.com/wp-content/uploads/2023/10/daimachufang-300x140.png 300w, https://greyli.com/wp-content/uploads/2023/10/daimachufang-624x292.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>俱乐部现场成立，现场报名。报名单上收集了十个人，最后筛选到五个。算上我自己，六个人在一年内完成了四次聚会。大家互相带来很多新想法和思考，也玩得很开心，但逐渐有点忘记最初想要做什么。于是，在 2023 年的 10 月 22 号，最后一次聚会，大家回到了报名的地方——微软 Reactor。我在那里重新介绍了<a href="https://www.bilibili.com/video/BV1cM41197s1">代码厨房社区的构想</a>。</p>
<p>代码厨房的核心构想是「一个让人快乐和放松的编程社区」，主要的板块是：</p>
<ul>
<li><a href="https://codekitchen.community/c/steak-overcooked/33">Steak Overcooked</a>：牛排煎糊了？把菜谱贴上来问问大家怎么办才好</li>
<li><a href="https://codekitchen.community/c/events/29">活动</a>：以爱好而不是商业目的出发的线上或线下活动</li>
<li><a href="https://codekitchen.community/c/song/l/latest?board=default">开源松</a>：大家一起来做开源项目，推动一些项目的发展</li>
</ul>
<p><a href="https://greyli.com/wp-content/uploads/2023/10/cokekitchen.png"><img class="aligncenter wp-image-5227 size-large" src="https://greyli.com/wp-content/uploads/2023/10/cokekitchen-1024x610.png" alt="" width="625" height="372" srcset="https://greyli.com/wp-content/uploads/2023/10/cokekitchen-1024x610.png 1024w, https://greyli.com/wp-content/uploads/2023/10/cokekitchen-150x89.png 150w, https://greyli.com/wp-content/uploads/2023/10/cokekitchen-300x179.png 300w, https://greyli.com/wp-content/uploads/2023/10/cokekitchen-624x371.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<p>不论你是当下、曾经还是未来的编程爱好者，都可以加入我们。<a href="https://codekitchen.community/">代码厨房</a>欢迎你！</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/codekitchen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APIFlask 2.0 版本发布</title>
		<link>https://greyli.com/apiflask2/</link>
		<comments>https://greyli.com/apiflask2/#comments</comments>
		<pubDate>Wed, 26 Jul 2023 14:56:23 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[APIFlask]]></category>
		<category><![CDATA[开源项目]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=5170</guid>
		<description><![CDATA[一边上班一边赶工做开源项目真是太累了。更不用说还要一边焦虑写书的进度。不过这次 2.0 版本基本把想做的功能都 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>一边上班一边赶工做开源项目真是太累了。更不用说还要一边焦虑写书的进度。不过这次 2.0 版本基本把想做的功能都完成了，剩下两个大的功能（为蓝本拆分单独的 OpenAPI Spec、解耦 marshmallow）实在是没精力加进来了，只好放到 2.1。</p>
<p>APIFlask 2.0 版本的 codename 是 Gongqing（年初我从五角场搬到了共青森林公园旁边。没错，1.0 版本是 Wujiaochang）。</p>
<p>回到正题，这次最主要的一个变动（breaking change）是把所有 input 装饰器的参数改成了关键字参数。</p>
<pre><span class="nd">@app</span><span class="o">.</span><span class="n">post</span><span class="p">(</span><span class="s1">'/pets'</span><span class="p">)</span>
<span class="nd">@app</span><span class="o">.</span><span class="n">input</span><span class="p">(</span><span class="n">PetQuery</span><span class="p">,</span> <span class="n">location</span><span class="o">=</span><span class="s1">'query'</span><span class="p">)</span>
<span class="nd">@app</span><span class="o">.</span><span class="n">input</span><span class="p">(</span><span class="n">PetIn</span><span class="p">)</span>  <span class="c1"># equals to app.input(PetIn, location='json')</span>
<span class="k">def</span> <span class="nf">create_pet</span><span class="p">(</span><span class="n">query_data</span><span class="p">,</span> <span class="n">json_data</span><span class="p">):</span>
    <span class="k">pass</span></pre>
<p>关键字参数的名字默认是 <code>{location}_data</code>，通过 <code>arg_name</code> 参数可以自定义。这个改动让我删掉了很多 hack Flask 的代码。推动这个功能在上游 <a href="https://github.com/marshmallow-code/webargs/issues/830">webargs</a> 实现，所以不用加代码在自己这里。再加上一些改动已经在 Flask 实现了，又删掉一些。非常轻松。理想情况是，文档越来越多，代码越来越少。</p>
<p>如果你感兴趣的话，下面是 2.0 版本的详细内容：</p>
<ul>
<li><a href="https://apiflask.com/changelog/#version-200">Changelog</a></li>
<li><a href="https://apiflask.com/migration_guide/#migrate-to-apiflask-2x">2.0 migration guide</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/apiflask2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>戴尔 EMC Python/Go 职位内推</title>
		<link>https://greyli.com/dell-python-jobs/</link>
		<comments>https://greyli.com/dell-python-jobs/#comments</comments>
		<pubDate>Sun, 17 Jul 2022 05:05:43 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Dell EMC]]></category>
		<category><![CDATA[EMC]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[内推]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[戴尔]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=4428</guid>
		<description><![CDATA[内推的最新状态见 greyli.com/dell-jobs。如果你在戴尔招聘网站上发现了其他方向/城市的意向职 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>内推的最新状态见 <a href="/dell-jobs">greyli.com/dell-jobs</a>。如果你在<a href="https://jobs.dell.com/">戴尔招聘网站</a>上发现了其他方向/城市的意向职位，也可以联系我内推。</p>
<hr />
<p>最近公司又开放了几个新的 Python/Go 职位空缺，如果感兴趣的话，一起来做同事吧。</p>
<p>职位要求：</p>
<ul>
<li>计算机相关学士学位或 1~2 年软件开发经验（另外还有对应 3~5 年以及 10 年以上经验的职位）</li>
<li>熟悉 Python/Go/Java（任一，最好是 Python/Go 方向）</li>
<li>熟悉 Linux 和 Git 的使用</li>
<li>熟悉 Flask 或其他 Web 框架</li>
<li>有 REST API 开发或微服务相关经验</li>
<li>了解容器和容器编排系统（Docker、Kubernetes、Rancher 等）</li>
</ul>
<p>加分项：</p>
<ul>
<li>了解 Angular/React/Vuejs（任一）</li>
<li>了解 MySQL、PostgreSQL 或其他 DBMS</li>
<li>了解或使用过 Jenkins</li>
<li>参与过开源项目</li>
<li>有网络、安全、虚拟化、云平台相关经验</li>
</ul>
<p>工作地点在上海/成都/台北。工作时间正常，不加班，不打卡，周末双休（965）。混合办公，每周可以最多五天居家办公（不限定时间，在正常工作和沟通的前提下，可以自己安排）。</p>
<p>联系方式：</p>
<ul>
<li>Email：<a href="mailto:grey.li@dell.com">grey.li@dell.com</a></li>
<li>微信：greyli_work</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/dell-python-jobs/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>《Flask 入门教程》第三版发布</title>
		<link>https://greyli.com/flask-tutorial-v3/</link>
		<comments>https://greyli.com/flask-tutorial-v3/#respond</comments>
		<pubDate>Sat, 16 Jul 2022 14:29:41 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask 入门教程]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=4416</guid>
		<description><![CDATA[最近手里堆积的事情越来越多，两本书的进度被日常工作挤压，于是非常想有一些小小的进展来缓解焦虑。刚好有读者来反馈 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>最近手里堆积的事情越来越多，两本书的进度被日常工作挤压，于是非常想有一些小小的进展来缓解焦虑。刚好有读者来反馈《<a href="https://helloflask.com/book/3/">Flask 入门教程</a>》不兼容最新版本 Flask 的问题，所以就花了一天时间来更新这个教程。</p>
<p><a href="https://greyli.com/flask-tutorial-v2-0-released/">发布上个版本</a>已经是 2019 年的事情了，这次针对 Flask 最新的 2.1.3 版本做了改写，同时不再兼容 Python 2.7 版本。优化了前面几章的一些内容，后面的章节需要改动的地方不多，就没有认真去更新。另外还顺便用 MkDocs 和 Netlify 把教程重新部署到了 <a href="https://tutorial.helloflask.com/">tutorial.helloflask.com</a> 上，后续会废弃掉 GitBook。</p>
<p>过去三年里，这本电子书大概给我带来了五百块的收入（主页上有一个自愿点击的「付费支持￥10」的按钮）。虽然不多，但是时不时收到到账提醒和鼓励的话还是很开心的。感谢每一位付款的读者！</p>
<p><a href="https://greyli.com/wp-content/uploads/2022/07/pay.jpg"><img class="aligncenter wp-image-4420 size-large" src="https://greyli.com/wp-content/uploads/2022/07/pay-534x1024.jpg" alt="" width="534" height="1024" srcset="https://greyli.com/wp-content/uploads/2022/07/pay-534x1024.jpg 534w, https://greyli.com/wp-content/uploads/2022/07/pay-78x150.jpg 78w, https://greyli.com/wp-content/uploads/2022/07/pay-157x300.jpg 157w, https://greyli.com/wp-content/uploads/2022/07/pay-624x1196.jpg 624w, https://greyli.com/wp-content/uploads/2022/07/pay.jpg 1170w" sizes="(max-width: 534px) 100vw, 534px" /></a></p>
<p>当然，给我带来更大成就感的是看到读者分享他/她<a href="https://discuss.helloflask.com/t/topic/64">通过阅读这个教程写的程序</a>，这是一种给别人带来成就感的成就感——元成就感。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/flask-tutorial-v3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APIFlask 1.0 版本发布</title>
		<link>https://greyli.com/apiflask1/</link>
		<comments>https://greyli.com/apiflask1/#comments</comments>
		<pubDate>Sat, 21 May 2022 13:51:56 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[APIFlask]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=4350</guid>
		<description><![CDATA[2023/7 Update: APIFlask 2.0 版本有一些变动，详见这篇文章。 APIFlask 是一 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>2023/7 Update: APIFlask 2.0 版本有一些变动，详见<a href="https://greyli.com/apiflask2/">这篇文章</a>。</p>
<hr />
<p>APIFlask 是一个基于 Flask 和 marshmallow 实现的 API 框架（详细介绍见<a href="https://greyli.com/hello-apiflask/">这篇文章</a>）。经过一年的迭代，终于在这个月初为它发布了 1.0 版本（撒花~）。</p>
<p><a href="https://greyli.com/wp-content/uploads/2022/05/apiflask-1.png"><img class="aligncenter size-large wp-image-4353" src="https://greyli.com/wp-content/uploads/2022/05/apiflask-1-1024x363.png" alt="" width="625" height="222" srcset="https://greyli.com/wp-content/uploads/2022/05/apiflask-1-1024x363.png 1024w, https://greyli.com/wp-content/uploads/2022/05/apiflask-1-150x53.png 150w, https://greyli.com/wp-content/uploads/2022/05/apiflask-1-300x106.png 300w, https://greyli.com/wp-content/uploads/2022/05/apiflask-1-624x221.png 624w" sizes="(max-width: 625px) 100vw, 625px" /></a></p>
<ul>
<li>GitHub：<a href="https://github.com/apiflask/apiflask">https://github.com/apiflask/apiflask</a></li>
<li>文档：<a href="https://apiflask.com/docs/">https://apiflask.com/docs</a></li>
</ul>
<p>1.0 版本主要带来了三个新功能：</p>
<ul>
<li>支持处理文件上传，新增 <code>File</code> 字段</li>
<li>支持使用外部的认证库</li>
<li>添加了几个新的请求解析位置：<code>json_or_form</code>、<code>form_and_files</code> 以及 <code>path</code></li>
</ul>
<p>一个 API 变动（breaking change）：</p>
<ul>
<li><code>input</code>、<code>output</code>、<code>doc</code>、<code>auth_required</code> 这四个装饰器移动到了程序实例和蓝本实例上（比如 <code>app.input()</code> / <code>bp.input()</code>）。</li>
</ul>
<p>还有一些代码上的修正和优化，具体可以在<a href="https://apiflask.com/changelog/#version-100">变更日志</a>里看到。欢迎更新试用和提交反馈：</p>
<pre>$ pip install -U apiflask</pre>
<p>在代码之外，也有一些变动和改进：</p>
<ul>
<li>完成了所有基本文档的写作（有些内容仍需优化）</li>
<li>启动了<a href="https://github.com/apiflask/docs-zh">中文文档翻译项目</a>（欢迎参与）</li>
<li>主仓库转移到了单独的 <a href="https://github.com/apiflask">GitHub 组织</a></li>
<li>添加了更多的<a href="https://github.com/apiflask/apiflask/tree/main/examples">示例程序</a></li>
</ul>
<p>如果你正在用它开发你的个人项目或是公司项目，欢迎在<a href="https://github.com/apiflask/apiflask/discussions/273">这里</a>留言告诉我们（我）！</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/apiflask1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flask 工作机会</title>
		<link>https://greyli.com/flask-jobs/</link>
		<comments>https://greyli.com/flask-jobs/#respond</comments>
		<pubDate>Wed, 08 Dec 2021 08:40:43 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[工作机会]]></category>
		<category><![CDATA[找工作]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=4232</guid>
		<description><![CDATA[最近在找工作，发现了一些和 Flask 相关的工作机会。因为目前并没有一个收集 Flask 相关职位的平台，所 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>最近在<a href="https://greyli.com/job-search/">找工作</a>，发现了一些和 Flask 相关的工作机会。因为目前并没有一个收集 Flask 相关职位的平台，所以就在 GitHub 上创建了一个仓库来分享这些职位，希望可以帮到其他正在找工作的 Flask 用户：</p>
<ul>
<li><a href="https://github.com/greyli/flask-jobs">https://github.com/greyli/flask-jobs</a></li>
</ul>
<p>职位以 issue 的形式列出。目前列出来的几个都是和 Flask 关联非常大的职位，这里面有的我投递了申请（比如戴尔），有的收到了拒信（比如育碧），有的收到对方的面试邀请（比如 Dropbase）但并没有通过面试……所以这些职位都在开放中，如果你在找工作的话，尽管投递简历。同时也欢迎在投递之后回来分享面试进度/经历/经验。</p>
<p>如果你所在的公司正在招聘 Flask 相关的职位，或是你在未来发现某个公司发布新的 Flask 相关的职位，欢迎在这个仓库创建 issue 分享。创建 issue 时请遵循下面的格式要求：</p>
<ul>
<li>在标题注明「公司-职位-城市」，远程工作统一使用「Remote」。</li>
<li>把职位描述里的 requirements 部分贴到 issue 内，并在最后给出职位详情链接。</li>
<li>建议发布和 Flask 技术栈关联比较大的职位，不过 Python 相关的职位也欢迎。</li>
</ul>
<p>顺便说一句，有很多 Python 相关的工作都会要求掌握某一种 Python Web 框架，类似这样的描述：</p>
<ul>
<li>Good knowledge of web frameworks like Flask, Django, etc.</li>
</ul>
<p>即使对应职位实际不用 Flask 也不用担心，当你掌握了某一种框架，其他的框架学习起来会非常容易，因为大部分的概念都是相通的。而面试时也会根据你擅长的框架提问，所以尽管申请就好。</p>
<p>祝大家都能找到自己喜欢的工作。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/flask-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>开始写作《Flask Web 开发实战》第二版</title>
		<link>https://greyli.com/new-flask-book-plan/</link>
		<comments>https://greyli.com/new-flask-book-plan/#comments</comments>
		<pubDate>Sat, 30 Oct 2021 11:57:38 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[Flask Web开发实战]]></category>
		<category><![CDATA[写作计划]]></category>

		<guid isPermaLink="false">https://greyli.com/?p=4076</guid>
		<description><![CDATA[《Flask Web 开发实战》第二版已经开始写作，计划在今年完成这本书。那本《Python Web API  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>《<a href="https://helloflask.com/book/4/">Flask Web 开发实战</a>》第二版已经开始写作，计划在今年完成这本书。那本《<a href="https://helloflask.com/book/2/">Python Web API 设计与开发</a>》一直拖着没写完，让我感觉很焦虑。因为拖得太久，HelloFlask 群聊里已经开始<a href="https://greyli.com/wp-content/uploads/2021/10/qq-chat.png" target="_blank" rel="noopener">谣传我转行送快递了</a> :D。</p>
<p>所以我想先把《Flask Web 开发实战》新版完成，这样这一年我至少完成了三个年度目标中的一个。「优化」是我擅长和喜欢做的事情，除了要用 Word 写之外，我很乐意给这本书写新版。</p>
<ul>
<li>主页：<a href="https://helloflask.com/book/4">https://helloflask.com/book/4</a></li>
<li>建议收集（或在文末留言）：<a href="https://discuss.helloflask.com/t/topic/838">https://discuss.helloflask.com/t/topic/838</a></li>
<li>写作进度和动态：<a href="https://discuss.helloflask.com/t/topic/837">https://discuss.helloflask.com/t/topic/837</a></li>
<li>合同截稿日期：<del>2021 年 12 月 31 日</del> 2022 年 1 月 31 日</li>
<li>预计出版日期：2022 年 <del>2～3 月</del> 6~7 月</li>
</ul>
<h2>内容变动</h2>
<p>在各处收集了很多读者反馈和建议，综合我自己的规划，第二版主要有这些大的变动：</p>
<ul>
<li>不再兼容 Python 2.7，基于 Python 3.x、Flask 2.x。</li>
<li>把大部分知识点集中到第一部分，让第二部分的示例程序内容更精简。</li>
<li>第 1 章使用 pip+venv（+pip-tools） 或 PDM 替代 Pipenv，增加更多对 PyCharm 的介绍。</li>
<li>第 6 章使用 Flask-Mailman 替代 Flask-Mail（同时引入介绍一些新的扩展，比如 Flask-Admin）。</li>
<li>删除第 9、10、11 章（删除后 3 个实战项目），仅保留 Sayhello 和 Bluelog，删减项目的部分功能会合并到这两个项目。</li>
<li>第 10 章删除实战项目，只保留 Web API 开发部分，会新引入 marshmallow 和 APIFlask。</li>
<li>第 12 章添加异步任务相关内容。</li>
<li>第 14 章添加 Docker 相关内容。</li>
<li>删除第 15 章（Flask 扩展开发）。</li>
<li>删掉一些在国内访问有问题的服务介绍，比如 SendGrid（第 6 章）、Heroku（第 14 章）、Twitter 第三方登录（第 11 章）。</li>
</ul>
<p>大部分内容变动是在做删减，第一版 704 页，第二版内容会删减到 450 页左右。</p>
<h2>代码片段</h2>
<p>第一部分每一章都有一个示例程序，读者需要切换到每一个子文件夹运行，如果同时自己编写练习代码的话，很容易产生混乱。所以新版的考虑是，第一部分的示例程序不再给出可运行的示例文件（至少不在书里介绍），而是把所有的代码片段放到 <a href="https://docs.helloflask.com/">HelloFlask 文档</a>，以代码片段的形式组织。读者需要的话可以自己复制代码到本地运行。作为示例，第一章的代码片段可以在这里看到：<a href="https://docs.helloflask.com/book/4/snippets/c1/">https://docs.helloflask.com/book/4/snippets/c1/</a>。因为前六章的代码片段变化不大，所以第一版的读者也可以使用这些文档。</p>
<p>P.S. HelloFlask 文档（<a href="https://docs.helloflask.com">https://docs.helloflask.com</a>）是我最近刚创建的一个文档集合。所有和书相关的内容都会放到这里，比如勘误、代码片段、衍生文章等。后续也会在这里写一些扩展快速入门介绍、Flask 基础知识等 Flask 相关的东西。</p>
<h2>书名</h2>
<p>第二版因为有独立的书号，所以可以改书名。责编老师认为原书名就很好，换书名会浪费掉第一本书建立的品牌。我也基本同意这个观点。目前的考虑是主书名不变，出于营销的考虑，副书名或许可以加一个「Python」关键字，比如改成「Python Web 开发入门、进阶与原理解析」。</p>
<h2>封面</h2>
<p>目前这本书<a href="https://helloflask.com/book/4/">主页</a>上的封面不是正式封面（我用画图软件在初版封面上随手涂了两笔 &gt;_&lt;）。目前的想法是把封面标题颜色换成深红色，然后换一个封面图案，不过暂时还没想好换成什么。</p>
<h2>措辞</h2>
<p>第一版是用 Word 写的，排版很痛苦，毕竟要在 Word 里面排版代码。第二版也要继续用 Word 写，而且更加痛苦，因为第二版的书稿是编辑老师用工具从 PDF 文件转制成 Word 的，大部分格式都变得很混乱。希望这是我最后一次用 Word 来写技术书。</p>
<p>对于第一版，我交的终稿和最终成书有一些内容的变化，编辑老师会修正错别字和一些病句。但是后面也发现有一些句子修改得并不合理，导致句子原意产生了变化。这次我会在出版前过一遍校正后的书稿，确保不会再出现这样的情况。</p>
<p>另外，编辑老师还会替换一些词汇用法，比如把「我」替换为「笔者」，这个笔者勉强能接受，但是笔者最不能接受的就是要把所有的「点击」改成「单击」。单击一个链接？这太奇怪了。今年和编辑老师再次沟通了这件事，事情终于有了变化，书中的「点击」在这一版不用再死板的按照出版社的规定修改为「单击」。新的读者不会被指导在网页上单击一个链接了。</p>
<h2>周边开源项目</h2>
<p>我的很多开源项目的开发都是写作驱动的，上一本书驱动我开发了那几个 Flask 示例程序和扩展，这一次同样会有一些开发计划：</p>
<ul>
<li>APIFlask：补齐所有文档，发布 1.0 版本。</li>
<li>Bootstrap-Flask：添加 Bootstrap 5 支持。</li>
<li>Flask-CKEditor：添加 CKEditor 5 支持，同时集成新版本内置的 Markdown 支持。</li>
<li>Flask-WTF：添加多文件上传验证支持。</li>
<li>Sayhello：添加分页、多语言、Markdown 支持等功能（总之就是尽可能把删减的示例程序里比较有意思的功能合并到这里）。</li>
<li>Bluelog：把 Albumy 的除了图片相关的功能合并过来，会换一个名字（暂定 WeBlog），作为一个社交博客。</li>
</ul>
<p>如果你对这本书的新版有其他建议和想法，欢迎提出。这两本新书相关的动态会发到 <a href="https://twitter.com/helloflask">Twitter @helloflask</a> 和我的<a href="https://greyli.com/files/qrcode_gh.jpg">公众号</a>，欢迎关注。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/new-flask-book-plan/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>
