<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Python - Balise - arleo.eu</title><link>https://www.arleo.eu/tags/python/</link><description>Python - Balise - arleo.eu</description><generator>Hugo -- gohugo.io</generator><language>fr</language><lastBuildDate>Thu, 14 May 2026 09:42:22 +0200</lastBuildDate><atom:link href="https://www.arleo.eu/tags/python/" rel="self" type="application/rss+xml"/><item><title>Plugin Cloudflare hugo-mcp : purge ciblée plutôt que totale</title><link>https://www.arleo.eu/posts/hugo-mcp-plugin-cloudflare/</link><pubDate>Thu, 14 May 2026 09:42:22 +0200</pubDate><author>Jmr</author><guid>https://www.arleo.eu/posts/hugo-mcp-plugin-cloudflare/</guid><description><![CDATA[<div class="featured-image">
                <img src="/images/hugo-mcp-plugin-cloudflare-featured.jpg" referrerpolicy="no-referrer">
            </div><h2 id="tldr">TL;DR</h2>
<p>Le plugin Cloudflare de <a href="https://github.com/jmrGrav/hugo-mcp/releases/tag/v2.0.0" target="_blank" rel="noopener noreffer ">hugo-mcp v2.0</a> implémente 3 modes de purge cache (<code>full</code>, <code>partial</code>, <code>smart</code>). Le mode <code>partial</code> calcule les URLs liées à invalider (canonique + sitemap + RSS + listing + home) pour préserver 95% du cache CDN à chaque modification. Concrètement : 6 URLs purgées au lieu de tout vider. Ce post détaille le calcul, les pièges, et pourquoi <code>smart</code> est devenu le défaut.</p>]]></description></item><item><title>hugo-mcp v2.0 : un plugin-system Python en 200 lignes</title><link>https://www.arleo.eu/posts/hugo-mcp-plugins-architecture/</link><pubDate>Sat, 09 May 2026 23:23:49 +0200</pubDate><author>Jmr</author><guid>https://www.arleo.eu/posts/hugo-mcp-plugins-architecture/</guid><description><![CDATA[<div class="featured-image">
                <img src="/images/hugo-mcp-plugins-architecture-featured.jpg" referrerpolicy="no-referrer">
            </div><h2 id="tldr">TL;DR</h2>
<p><a href="https://github.com/jmrGrav/hugo-mcp/releases/tag/v2.0.0" target="_blank" rel="noopener noreffer ">hugo-mcp v2.0.0</a> introduit un <strong>plugin-system Python</strong> qui permet à n&rsquo;importe qui d&rsquo;ajouter des hooks après chaque <code>create_page</code> / <code>update_page</code> / <code>delete_page</code>. 200 lignes de code pour le coeur, 3 plugins de production fournis (IndexNow, Google Indexing, Cloudflare). Ce post explique le design, les arbitrages, la sécurité, et montre comment écrire son propre plugin en 5 minutes.</p>]]></description></item></channel></rss>