<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://blog.davep.org</id>
  <title>davep</title>
  <updated>2026-11-06T10:56:39.597586+00:00</updated>
  <link href="https://blog.davep.org/feeds/python.atom.xml" rel="self"/>
  <link href="https://blog.davep.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Posts in category "Python" from davep</subtitle>
  <entry>
    <id>https://blog.davep.org/2026/10/26/wasat-v1-11-0.html</id>
    <title>Wasat v1.11.0</title>
    <updated>2026-10-26T15:30:21+00:00</updated>
    <content type="html">&lt;p&gt;Another little update to &lt;a href="https://wasat.davep.dev" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;, this time bumping
the version to &lt;a href="https://wasat.davep.dev/changelog/#v1110" rel="noopener noreferrer" target="_blank"&gt;v1.11.0&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After &lt;a href="https://blog.davep.org/2026/10/26/wasat-v1-10-0.html"&gt;this morning's change&lt;/a&gt;, I made a
start on the work I wanted to do on &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;
and quickly realised that most of what I had planned was better done in
Wasat itself. The short version is: rather than maintaining a
just-this-session ignore list in the application, it made more sense to
handle this in Wasat.&lt;/p&gt;
&lt;p&gt;So this release adds an
&lt;a href="https://wasat.davep.dev/library/client/#wasat.client.Client.ignore_security_error" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;ignore_security_error&lt;/code&gt;&lt;/a&gt;
method to the client that lets you -- for the current session -- ignore a
particular type of error for a given host/port pair. This makes for a lot
less work needing to be done by the application making use of Wasat. Now
it's just a case of&lt;sup id="fnref:375-1"&gt;&lt;a class="footnote-ref" href="#fn:375-1"&gt;1&lt;/a&gt;&lt;/sup&gt;:&lt;/p&gt;
&lt;div class="highlight" data-lang="python"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;wasat&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;IgnorableSecurityError&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;uri&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"gemini://expired.example.com/"&lt;/span&gt;

&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="n"&gt;IgnorableSecurityError&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ignore_security_error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;uri&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Obviously, &lt;a href="https://github.com/davep/rogallo/pull/499/changes#diff-2cc6b7631653fa64ed1395847b26a1075692c620ee8f4c23b7b96dcc8b365a0d" rel="noopener noreferrer" target="_blank"&gt;the code in Rogallo is a bit more involved than the
above&lt;/a&gt;,
but that's the gist of it: try the request, if it fails with an error that
can be ignored, ignore it and try again.&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:375-1"&gt;
&lt;p&gt;Yes, I know the &lt;code&gt;await&lt;/code&gt; isn't going to work in this example; consider it pseudo-code.&amp;#160;&lt;a class="footnote-backref" href="#fnref:375-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/10/26/wasat-v1-11-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-10-26T15:30:21+00:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/10/26/wasat-v1-10-0.html</id>
    <title>Wasat v1.10.0</title>
    <updated>2026-10-26T09:14:44+00:00</updated>
    <content type="html">&lt;p&gt;Since getting into &lt;a href="https://blog.davep.org/tag/gemini-protocol/"&gt;Gemini&lt;/a&gt;, one of my daily rituals
has been to tend to my plant in
&lt;a href="gemini://astrobotany.mozz.us/" rel="noopener noreferrer" target="_blank"&gt;AstroBotany&lt;/a&gt;. This morning, when trying to
visit there with &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;, I was greeted with
this:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Expired certificate" height="948" loading="lazy" src="https://blog.davep.org/attachments/2026/10/26/astro-error.webp#centre" width="996" /&gt;&lt;/p&gt;
&lt;p&gt;In other words: the certificate has expired&lt;sup id="fnref:374-1"&gt;&lt;a class="footnote-ref" href="#fn:374-1"&gt;1&lt;/a&gt;&lt;/sup&gt;. At this point, the error
dialog isn't &lt;em&gt;that&lt;/em&gt; useful. It's pretty much designed for dealing with
capsules that are using self-signed certificates -- where TOFU is being used
and so it would normally make sense to just forget and re-establish trust.
With an expired CA certificate, the act of forgetting does nothing, it'll
just fail again.&lt;/p&gt;
&lt;p&gt;While it's technically fine to simply refuse to progress, in this case, it's
not exactly friendly to the user. What would be sensible would be to allow
an &lt;em&gt;"Ignore"&lt;/em&gt; option. This would, I imagine, ignore the problem for the
current Rogallo session -- ideally with some sort of indication that the
capsule is suspicious at the moment. Also, the dialog that gives you this
option should show all the certificate details so the user can make an
informed decision.&lt;/p&gt;
&lt;p&gt;The issue here is that, until now, Wasat has dealt with security-type
problems by raising a single &lt;code&gt;SecurityError&lt;/code&gt; exception. Aside from
dumpster-diving the description in the exception, there's no way of knowing
the nature of the security issue.
&lt;a href="https://wasat.davep.dev/changelog/#v1100" rel="noopener noreferrer" target="_blank"&gt;v1.10.0&lt;/a&gt; addresses this by adding
and raising many different exceptions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;CertificateExpiredError&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;CertificateNotYetValidError&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;CertificateRejectedError&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;CertificateRevokedError&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;CertificateUntrustedError&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;FingerprintMismatchError&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;HostnameMismatchError&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All of these inherit from &lt;code&gt;SecurityError&lt;/code&gt; to maintain
backward-compatibility.&lt;/p&gt;
&lt;p&gt;While this change doesn't alter the way that Rogallo handles this situation
right now, it does at least set me up for &lt;a href="https://github.com/davep/rogallo/issues/498" rel="noopener noreferrer" target="_blank"&gt;tackling the work I have
planned&lt;/a&gt;.&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:374-1"&gt;
&lt;p&gt;By the looks of things it expired at 2026-10-26T01:52:07+00:00&amp;#160;&lt;a class="footnote-backref" href="#fnref:374-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/10/26/wasat-v1-10-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-10-26T09:14:44+00:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/09/22/gophermap-v1-1-0.html</id>
    <title>GopherMap v1.1.0</title>
    <updated>2026-09-22T08:12:12+01:00</updated>
    <content type="html">&lt;p&gt;I've just made a small update to &lt;a href="https://gophermap.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;GopherMap&lt;/a&gt;.
While doing some work on &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt; I noticed
that, somehow, I wasn't showing a type "badge" for PNG files (&lt;code&gt;p&lt;/code&gt;). I spent
a moment or two trying to figure out what was wrong with the code in
Rogallo, and then realised that I'd managed to miss out both PNG and RTF
files in GopherMap itself.&lt;/p&gt;
&lt;p&gt;So this release adds those types.&lt;/p&gt;
&lt;p&gt;At this point I believe that GopherMap now knows about &lt;a href="https://en.wikipedia.org/wiki/Gopher_(protocol)#Item_types" rel="noopener noreferrer" target="_blank"&gt;all the canonical
and most useful non-canonical
types&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;At some point I should probably look at
&lt;a href="https://en.wikipedia.org/wiki/Gopher_(protocol)#Gopher+" rel="noopener noreferrer" target="_blank"&gt;Gopher+&lt;/a&gt;, which I
suspect will also mean some changes to &lt;a href="https://port70.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Port70&lt;/a&gt;.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/09/22/gophermap-v1-1-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="gopher"/>
    <category term="smolweb"/>
    <published>2026-09-22T08:12:12+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/09/05/wasat-v1-9-0.html</id>
    <title>Wasat v1.9.0</title>
    <updated>2026-09-05T08:20:48+01:00</updated>
    <content type="html">&lt;p&gt;The &lt;a href="https://github.com/davep/rogallo/pull/417" rel="noopener noreferrer" target="_blank"&gt;work to add Titan support to
Rogallo&lt;/a&gt; is going well, and I've
been able to test it out fine on &lt;a href="gemini://bbs.geminispace.org/" rel="noopener noreferrer" target="_blank"&gt;bbs&lt;/a&gt;, doing
additions of "long text" and performing file uploads. In doing so, though, I
was reminded that there is &lt;a href="gemini://transjovian.org/titan/Edit%20Link" rel="noopener noreferrer" target="_blank"&gt;a proposed "edit" extension to
Titan&lt;/a&gt;, which is supported there
(and I believe on a couple of other capsules too). That got me thinking...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;
&lt;a href="https://wasat.davep.dev/changelog/#v190" rel="noopener noreferrer" target="_blank"&gt;v1.9.0&lt;/a&gt; is now available, which
adds support for this extension. Of most use is the
&lt;a href="https://wasat.davep.dev/library/uri/#wasat.uri.TitanURI.is_edit" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;is_edit&lt;/code&gt;&lt;/a&gt;
property which has been added to &lt;code&gt;TitanURI&lt;/code&gt;, giving a well-defined approach
to testing whether a Titan URI is for editing a resource. The &lt;code&gt;Client&lt;/code&gt; class
has also grown an
&lt;a href="https://wasat.davep.dev/library/client/#wasat.client.Client.edit" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;edit&lt;/code&gt;&lt;/a&gt;
method to handle the request for the raw content which will then be used as
the basis for a subsequent edit by the user, before being uploaded.&lt;/p&gt;
&lt;p&gt;All of this, of course, pushes back the work I'm doing on Rogallo, just a
little. As I said above, the Titan support is pretty much there and working,
but now I want to try and really dial it in and get it working "just so".
While the &lt;code&gt;edit&lt;/code&gt; support is probably pretty niche, it seems worth adding
and, I hope, might delight someone one day when they try it out and it "just
works".&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/09/05/wasat-v1-9-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-09-05T08:20:48+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/09/03/wasat-v1-8-0.html</id>
    <title>Wasat v1.8.0</title>
    <updated>2026-09-03T19:24:30+01:00</updated>
    <content type="html">&lt;p&gt;Another quick little update to &lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;, bumping
the version to &lt;a href="https://wasat.davep.dev/changelog/#v180" rel="noopener noreferrer" target="_blank"&gt;v1.8.0&lt;/a&gt;. This
version is in support of some work I'm about to do on
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;: Titan support.&lt;/p&gt;
&lt;p&gt;This release adds &lt;code&gt;TitanURI&lt;/code&gt; and makes a number of changes to handle such
URIs alongside &lt;code&gt;GeminiURI&lt;/code&gt;. A lucky side-effect is that a problem was
uncovered and corrected with how Gemini URIs are sliced and diced in the
library. This first showed up for me when &lt;a href="https://github.com/davep/rogallo/issues/407" rel="noopener noreferrer" target="_blank"&gt;I was having a look at the
Scriptonite examples&lt;/a&gt;. None of
them were working for no obvious reason. Eventually it became clear that
parts of the URIs were being lost as they travelled through Wasat's code.&lt;/p&gt;
&lt;p&gt;So v1.8.0 clears up that problem (fixing the bug in Rogallo by simply
upgrading the library).&lt;/p&gt;
&lt;p&gt;As of now, I can move on to &lt;a href="https://github.com/davep/rogallo/issues/355" rel="noopener noreferrer" target="_blank"&gt;actually adding Titan
support&lt;/a&gt;.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/09/03/wasat-v1-8-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-09-03T19:24:30+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/09/02/finger2gemtext-a-library-for-converting-finger-responses-to-gemtext.html</id>
    <title>finger2gemtext - A library for converting finger responses to Gemtext</title>
    <updated>2026-09-02T19:21:50+01:00</updated>
    <content type="html">&lt;p&gt;I've just released the first version of another library in the collection of
libraries that support the development of
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;: specifically, another one that helps
convert text in other formats into &lt;a href="https://blog.davep.org/tag/gemtext/"&gt;Gemtext&lt;/a&gt; so Rogallo's
display can be a little richer. In effect, this is a sibling to
&lt;a href="https://md2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;md2gemtext&lt;/code&gt;&lt;/a&gt; and
&lt;a href="https://html2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;html2gemtext&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This time it's a library to convert &lt;a href="https://blog.davep.org/tag/finger/"&gt;finger&lt;/a&gt; responses into
Gemtext, where it makes sense. For the most part, finger responses are
free-form plain text, but there are times when there's information in the
response that would be of most use if you could interact with it. For
example, if you get a user list from &lt;code&gt;plan.cat&lt;/code&gt;&lt;sup id="fnref:440-1"&gt;&lt;a class="footnote-ref" href="#fn:440-1"&gt;1&lt;/a&gt;&lt;/sup&gt;, that's a lot of data
that could be turned into &lt;code&gt;finger://&lt;/code&gt; URIs that can be subsequently
followed.&lt;/p&gt;
&lt;p&gt;With this in mind, &lt;a href="https://finger2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;finger2gemtext&lt;/code&gt;&lt;/a&gt; can
take a body of text, look at it to see if it might be possible to convert it
to useful Gemtext, and will convert it if that's the case. Given that
there's no standard to be had here, and given that any given response could
be of any form the author desires, I'm making the conversion pretty
conservative.&lt;/p&gt;
&lt;p&gt;What I have done, though, is make it so that the conversion process can be
extended. The &lt;a href="https://finger2gemtext.davep.dev/finger2gemtext/#finger2gemtext.finger_to_gemtext" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;finger_to_gemtext&lt;/code&gt;
function&lt;/a&gt;
can be given a collection of additional filtering classes; if the built-in
classes can't find anything to convert, the additional classes get a go.
There is &lt;a href="https://finger2gemtext.davep.dev/finger2gemtext/#finger2gemtext.FingerFilter" rel="noopener noreferrer" target="_blank"&gt;a base class to inherit
from&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I've not fully planned it out yet, but the vague idea I have here is that
Rogallo could, at some point, have &lt;em&gt;"finger plugins"&lt;/em&gt; which will handle
various special cases and site-specific formats.&lt;/p&gt;
&lt;p&gt;For now, though, this gives me the basics that let me turn this:&lt;/p&gt;
&lt;p&gt;&lt;img alt="A plain finger response" height="1632" loading="lazy" src="https://blog.davep.org/attachments/2026/09/02/plain-finger.webp#centre" width="1606" /&gt;&lt;/p&gt;
&lt;p&gt;into something where I can follow &lt;code&gt;finger://&lt;/code&gt; links without the need to
copy/paste/edit:&lt;/p&gt;
&lt;p&gt;&lt;img alt="A richer finger response" height="1632" loading="lazy" src="https://blog.davep.org/attachments/2026/09/02/rich-finger.webp#centre" width="1606" /&gt;&lt;/p&gt;
&lt;p&gt;Now I need to find a few more online finger resources that respond with
things worth making linkable...&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:440-1"&gt;
&lt;p&gt;&lt;code&gt;finger @plan.cat&lt;/code&gt;&amp;#160;&lt;a class="footnote-backref" href="#fnref:440-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/09/02/finger2gemtext-a-library-for-converting-finger-responses-to-gemtext.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="finger"/>
    <category term="gemtext"/>
    <category term="finger2gemtext"/>
    <category term="smolweb"/>
    <published>2026-09-02T19:21:50+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/09/02/port79-v1-1-0.html</id>
    <title>Port79 v1.1.0</title>
    <updated>2026-09-02T16:39:03+01:00</updated>
    <content type="html">&lt;p&gt;A small update to &lt;a href="https://port79.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Port79&lt;/a&gt;, bumping up to
&lt;a href="https://port79.davep.dev/changelog/#v110" rel="noopener noreferrer" target="_blank"&gt;v1.1.0&lt;/a&gt;. This release adds a
&lt;code&gt;resolve&lt;/code&gt; method to the &lt;code&gt;FingerURI&lt;/code&gt; class.&lt;/p&gt;
&lt;p&gt;I'm currently tweaking &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;'s rendering of
some responses from finger services and being able to resolve URIs relative
to the underlying page is going to be very helpful.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/09/02/port79-v1-1-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="finger"/>
    <category term="port79"/>
    <category term="smolweb"/>
    <published>2026-09-02T16:39:03+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/30/wasat-v1-7-0.html</id>
    <title>Wasat v1.7.0</title>
    <updated>2026-08-30T18:44:36+01:00</updated>
    <content type="html">&lt;p&gt;A quick little update to &lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;, bumping the
version to &lt;a href="https://wasat.davep.dev/changelog/#v170" rel="noopener noreferrer" target="_blank"&gt;v1.7.0&lt;/a&gt;. In service of
a feature I'm adding to &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;, I've added &lt;a href="https://wasat.davep.dev/library/trust/#wasat.trust.FileTrustStore.forget" rel="noopener noreferrer" target="_blank"&gt;a
&lt;code&gt;forget&lt;/code&gt;
method&lt;/a&gt;
to the trust store class, so that a certificate fingerprint for a particular
host/port combination can be forgotten.&lt;/p&gt;
&lt;p&gt;This came about because, if a fingerprint does change for a Gemini capsule,
I want a Rogallo user to be able to decide to either avoid it or forget it
and re-establish trust. While the fingerprint mismatch &lt;em&gt;should&lt;/em&gt; be a warning
to distrust the capsule, there might be a legitimate reason why the
certificate has changed, and I want to make that decision fairly
frictionless.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/30/wasat-v1-7-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-08-30T18:44:36+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/29/a-lot-of-stability.html</id>
    <title>A lot of stability</title>
    <updated>2026-08-29T10:01:35+01:00</updated>
    <content type="html">&lt;p&gt;While it might seem that it's been pretty quiet on the
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt; front the past few days, I've been
doing some work on it every day. There are a lot of changes and improvements
coming. As I got the next release ready, I realised that some of the support
libraries I've built for it were stuck with 0.x versions while, at the same
time, having proven to be quite stable.&lt;/p&gt;
&lt;p&gt;So I've just made v1.0.0 updates to the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://html2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;html2gemtext&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://md2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;md2gemtext&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://port1900.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;port1900&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sybaritic.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;sybaritic&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are no material changes in any of these releases, the only real change
being the bump to v1.0.0, and so marking them as stable and, of course,
guaranteeing that &lt;a href="https://semver.org/" rel="noopener noreferrer" target="_blank"&gt;semantic versioning&lt;/a&gt; promises are
now in place.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/29/a-lot-of-stability.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="Rogallo"/>
    <category term="html2gemtext"/>
    <category term="md2gemtext"/>
    <category term="port1900"/>
    <category term="smolweb"/>
    <category term="sybaritic"/>
    <published>2026-08-29T10:01:35+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/27/wasat-v1-6-0.html</id>
    <title>Wasat v1.6.0</title>
    <updated>2026-08-27T09:25:11+01:00</updated>
    <content type="html">&lt;p&gt;The &lt;a href="https://github.com/davep/rogallo/pull/373" rel="noopener noreferrer" target="_blank"&gt;client certificate management
PR&lt;/a&gt; for
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt; is &lt;em&gt;very&lt;/em&gt; close to completion now --
although the thing has grown arms and legs and turned into a bit of a UI
overhaul&lt;sup id="fnref:471-1"&gt;&lt;a class="footnote-ref" href="#fn:471-1"&gt;1&lt;/a&gt;&lt;/sup&gt;. Something I wanted to add was a quick and easy way for the
user to view the details of a client certificate that's being used for the
current page. Rogallo lets you do this for the server certificate, but not
the client certificate.&lt;/p&gt;
&lt;p&gt;It was at this point that I realised I'd never provided easy access to the
&lt;code&gt;ClientCertificate&lt;/code&gt; on the &lt;code&gt;Response&lt;/code&gt; object. So
&lt;a href="https://wasat.davep.dev/changelog/#v160" rel="noopener noreferrer" target="_blank"&gt;v1.6.0&lt;/a&gt; addresses this and
provides
&lt;a href="https://wasat.davep.dev/library/response/#wasat.response.Response.client_cert" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;Response.client_cert&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With this in place, I &lt;em&gt;think&lt;/em&gt; I can finally get that Rogallo PR over the
line...&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:471-1"&gt;
&lt;p&gt;Not unrelated. The UI overhaul was in support of the client certificate manager.&amp;#160;&lt;a class="footnote-backref" href="#fnref:471-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/08/27/wasat-v1-6-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-08-27T09:25:11+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/25/wasat-v1-5-0.html</id>
    <title>Wasat v1.5.0</title>
    <updated>2026-08-25T08:07:57+01:00</updated>
    <content type="html">&lt;p&gt;I'm still working on the &lt;a href="https://github.com/davep/rogallo/pull/373" rel="noopener noreferrer" target="_blank"&gt;client certificate management
PR&lt;/a&gt; for
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;, which, of course, heavily leans on
the API of &lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;. In most cases, I've noticed
that something I want to do in the PR can already be done, but the work to
perform the action would seem like unnecessary detail in a client
application; I want to make using Wasat as frictionless as possible.&lt;/p&gt;
&lt;p&gt;With this in mind, &lt;a href="https://wasat.davep.dev/changelog/#v150" rel="noopener noreferrer" target="_blank"&gt;v1.5.0&lt;/a&gt; adds
interfaces for exporting and importing client certificate data.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/25/wasat-v1-5-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-08-25T08:07:57+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/23/wasat-v1-4-0.html</id>
    <title>Wasat v1.4.0</title>
    <updated>2026-08-23T11:14:49+01:00</updated>
    <content type="html">&lt;p&gt;Another bump to &lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;, this being
&lt;a href="https://wasat.davep.dev/changelog/#v140" rel="noopener noreferrer" target="_blank"&gt;v1.4.0&lt;/a&gt;. This release is in
support of some work I want to do on &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;,
where I intend to add proper client certificate management.&lt;/p&gt;
&lt;p&gt;While Wasat provided good support for the generation, storage, and use of
client certificates, there was no real public API that would allow for the
management of those certificates. This version addresses that.&lt;/p&gt;
&lt;p&gt;Now there are methods for doing things like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Listing all client certificates&lt;/li&gt;
&lt;li&gt;Getting a specific certificate's details&lt;/li&gt;
&lt;li&gt;Creating a certificate&lt;/li&gt;
&lt;li&gt;Associating and disassociating a certificate with a URI&lt;/li&gt;
&lt;li&gt;Deleting a certificate&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This should give me everything I need to implement a simple client
certificate user interface in Rogallo.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/23/wasat-v1-4-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="smolweb"/>
    <category term="wasat"/>
    <published>2026-08-23T11:14:49+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/20/bagofstuff-v2-0-0.html</id>
    <title>BagOfStuff v2.0.0</title>
    <updated>2026-08-20T10:46:16+01:00</updated>
    <content type="html">&lt;p&gt;I've just made a small update to
&lt;a href="https://bagofstuff.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;BagOfStuff&lt;/a&gt;, my little support library for
my personal Python-based FOSS projects. This release makes some more changes
to the history classes, adding an
&lt;a href="https://bagofstuff.davep.dev/library-contents/history/#bagofstuff.history.SimpleHistory.add_or_replace" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;add_or_replace&lt;/code&gt;&lt;/a&gt;
method, and also making some improvements to the type hinting by basing the
classes on
&lt;a href="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSequence" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;MutableSequence&lt;/code&gt;&lt;/a&gt;
rather than
&lt;a href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;Sequence&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;While the history classes were originally intended to feel immutable, it's
obvious that they're really not. The idea was that stuff gets added to them,
stuff falls off the other end, and stuff might disappear depending on the
context and when stuff gets added. The general idea was that direct
manipulation was something that wouldn't happen. So I'd started out with
them inheriting from &lt;code&gt;Sequence&lt;/code&gt;, and so implying they were a read-only
interface.&lt;/p&gt;
&lt;p&gt;Given this acknowledgement, they now inherit from &lt;code&gt;MutableSequence&lt;/code&gt;. This
means that some extra (dunder) methods are added, and it also means that
some extra exceptions can be raised. For example: setting slices to
iterables &lt;em&gt;isn't&lt;/em&gt; supported and will raise a &lt;code&gt;NotImplementedError&lt;/code&gt;. Some
other slice-based operations aren't supported either.&lt;/p&gt;
&lt;p&gt;While this is close to a breaking change, it's fine for my use of this code.
However, I had to make one big breaking change: I'd written &lt;code&gt;clear&lt;/code&gt; so that
it returned &lt;code&gt;Self&lt;/code&gt;&lt;sup id="fnref:462-1"&gt;&lt;a class="footnote-ref" href="#fn:462-1"&gt;1&lt;/a&gt;&lt;/sup&gt;. The interface expected by &lt;code&gt;MutableSequence&lt;/code&gt; is one
that returns &lt;code&gt;None&lt;/code&gt;. So to strictly comply with that interface, I've changed
the return type.&lt;/p&gt;
&lt;p&gt;With this being a breaking change, I've bumped the library version to
&lt;a href="https://bagofstuff.davep.dev/changelog/#v200" rel="noopener noreferrer" target="_blank"&gt;v2.0.0&lt;/a&gt;. While it's really a
small change, and only one I'd notice, there's no getting away from the fact
that the API has changed. That deserves a major version bump.&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:462-1"&gt;
&lt;p&gt;I tend to prefer that a method that might return &lt;code&gt;None&lt;/code&gt; actually
return &lt;code&gt;Self&lt;/code&gt;; it allows for chaining. I recognise that there are other
schools of thought about this in the Python world; I'm not a member of
those schools.&amp;#160;&lt;a class="footnote-backref" href="#fnref:462-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/08/20/bagofstuff-v2-0-0.html"/>
    <category term="Python"/>
    <category term="BagOfStuff"/>
    <category term="Coding"/>
    <category term="Python"/>
    <published>2026-08-20T10:46:16+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/16/md2gemtext-a-library-for-converting-markdown-to-gemtext.html</id>
    <title>md2gemtext - A library for converting Markdown to Gemtext</title>
    <updated>2026-08-16T14:43:04+01:00</updated>
    <content type="html">&lt;p&gt;Following on from
&lt;a href="https://blog.davep.org/2026/08/11/html2gemtext-a-simple-library-for-converting-html-to-gemtext.html"&gt;html2gemtext&lt;/a&gt;,
the inevitable has happened: I couldn't let the Markdown side of things
remain unaddressed. While &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;
&lt;a href="https://rogallo.davep.dev/changelog/#v180" rel="noopener noreferrer" target="_blank"&gt;v1.8.0&lt;/a&gt; added some extra
rendering of Markdown to make it look more "pretty", I felt it really needed
to be handled so it had more utility. Being fully navigable, even by
keyboard, seems more important than pretty tables.&lt;/p&gt;
&lt;p&gt;So &lt;a href="https://md2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;md2gemtext&lt;/a&gt; now exists as a library on
&lt;a href="https://blog.davep.org/tag/pypi/"&gt;PyPI&lt;/a&gt;. I have two plans for this. While I fully intend to shake
up the Markdown support in Rogallo -- either replacing the use of the
Textual Markdown widget to display it, or at least giving the user a
configuration option to decide how Markdown is displayed -- I also want to
pay some attention to my (currently rather simple) &lt;a href="gemini://tilde.team/~davep/gemlog/" rel="noopener noreferrer" target="_blank"&gt;Gemini-based
log&lt;/a&gt; and use this library to build a
tool that will convert this blog's &lt;a href="https://github.com/davep/davep.github.com/tree/main/content/posts" rel="noopener noreferrer" target="_blank"&gt;Markdown
content&lt;/a&gt;
into Gemtext that looks just how I want it.&lt;/p&gt;
&lt;p&gt;As with html2gemtext, this is an early version of this library, and I'm sure
there will be edge cases I'll have missed and will want to tidy up. But at
the moment the results are looking promising.&lt;/p&gt;
&lt;p&gt;I'm once again in a place where I'm actually half-seriously thinking that
much of what &lt;a href="https://hike.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Hike&lt;/a&gt; does could be built into
Rogallo, if I were to simply add &lt;code&gt;http(s)&lt;/code&gt; support there.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/16/md2gemtext-a-library-for-converting-markdown-to-gemtext.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="Markdown"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="gemtext"/>
    <category term="md2gemtext"/>
    <category term="smolweb"/>
    <published>2026-08-16T14:43:04+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/16/bagofstuff-v1-3-0.html</id>
    <title>BagOfStuff v1.3.0</title>
    <updated>2026-08-16T09:05:47+01:00</updated>
    <content type="html">&lt;p&gt;For a wee while now I've been trying to nail down a weirdness with the
navigation history in &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;. I never felt it
was a difficult issue to deal with, but it was also one of those issues that
I could never obviously recreate at will, and it only seemed to happen while
I was busy working on something else.&lt;/p&gt;
&lt;p&gt;Yesterday evening &lt;a href="https://github.com/davep/rogallo/issues/290#issuecomment-5304008984" rel="noopener noreferrer" target="_blank"&gt;I finally managed to come up with a way to always
recreate
it&lt;/a&gt;
and, having done so, the solution seems pretty straightforward&lt;sup id="fnref:457-1"&gt;&lt;a class="footnote-ref" href="#fn:457-1"&gt;1&lt;/a&gt;&lt;/sup&gt;. In order
to implement the tweak I want, I need to be able to truncate the navigation
history, and of course do so in a non-destructive way.&lt;/p&gt;
&lt;p&gt;So the history classes in BagOfStuff
&lt;a href="https://bagofstuff.davep.dev/changelog/#v130" rel="noopener noreferrer" target="_blank"&gt;v1.3.0&lt;/a&gt; have grown
&lt;a href="https://bagofstuff.davep.dev/library-contents/history/#bagofstuff.history.SimpleHistory.clone" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;clone&lt;/code&gt;&lt;/a&gt;
and
&lt;a href="https://bagofstuff.davep.dev/library-contents/history/#bagofstuff.history.SimpleHistory.truncate" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;truncate&lt;/code&gt;&lt;/a&gt;
methods. This will allow me to duplicate a history, truncate it at its
current location, then save it, without affecting the working copy.&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:457-1"&gt;
&lt;p&gt;Why do I feel like I'll regret saying that?&amp;#160;&lt;a class="footnote-backref" href="#fnref:457-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/08/16/bagofstuff-v1-3-0.html"/>
    <category term="Python"/>
    <category term="BagOfStuff"/>
    <category term="Coding"/>
    <category term="Python"/>
    <published>2026-08-16T09:05:47+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/14/port1900-an-async-python-client-library-for-the-nex-protocol.html</id>
    <title>Port1900 - An async Python client library for the Nex protocol</title>
    <updated>2026-08-14T19:21:42+01:00</updated>
    <content type="html">&lt;p&gt;It's that time again. Time to add another &lt;a href="https://blog.davep.org/tag/smolweb/"&gt;small web
protocol&lt;/a&gt; to &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;. This time
it's one I stumbled across a few days ago: the &lt;a href="https://nightfall.city/nex/info/specification.txt" rel="noopener noreferrer" target="_blank"&gt;Nex
protocol&lt;/a&gt;. This one is
very simple and straightforward and it seemed like a shame &lt;em&gt;not&lt;/em&gt; to support
it.&lt;/p&gt;
&lt;p&gt;So, as I have with &lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Gemini&lt;/a&gt;,
&lt;a href="https://sybaritic.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Spartan&lt;/a&gt;, &lt;a href="https://port70.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Gopher&lt;/a&gt;
and &lt;a href="https://port79.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Finger&lt;/a&gt;, I've added a dedicated library for
dealing with the associated URI, and to provide a client for talking to the
server.&lt;/p&gt;
&lt;p&gt;The documentation can be found on &lt;a href="https://port1900.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;the dedicated
site&lt;/a&gt;.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/14/port1900-an-async-python-client-library-for-the-nex-protocol.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Nex Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="Rogallo"/>
    <category term="port1900"/>
    <category term="smolweb"/>
    <published>2026-08-14T19:21:42+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/12/gophermap-v1-0-0.html</id>
    <title>GopherMap v1.0.0</title>
    <updated>2026-08-12T15:55:27+01:00</updated>
    <content type="html">&lt;p&gt;When I &lt;a href="https://blog.davep.org/2026/07/27/gophermap-a-simple-library-for-parsing-gopher-responses.html"&gt;first created
GopherMap&lt;/a&gt;,
I made it pretty strict about what it did and didn't consider a valid map.
Unsurprisingly, reality did what reality does and, pretty quickly, Rogallo
&lt;a href="https://github.com/davep/rogallo/discussions/241" rel="noopener noreferrer" target="_blank"&gt;met maps that didn't fit with this strict
approach&lt;/a&gt;. So &lt;a href="https://blog.davep.org/2026/07/28/gophermap-v0-2-0.html"&gt;I relaxed
things&lt;/a&gt;, accepting pretty much anything
that even vaguely looked like a Gopher map. This solved the problem.&lt;/p&gt;
&lt;p&gt;However, earlier today, &lt;a href="https://github.com/davep/rogallo/issues/327" rel="noopener noreferrer" target="_blank"&gt;I ran into a page that was obviously supposed to be
plain text, but was being displayed in part like a
map&lt;/a&gt;. The problem was my
attempt at detecting a reply from a Gopher server that looked like it
&lt;em&gt;might&lt;/em&gt; be an error. This very relaxed approach to &lt;em&gt;"this is likely some
Gopher stuff, let's accept it as such"&lt;/em&gt; meant that a text file that had a
&lt;code&gt;3&lt;/code&gt; anywhere in the first column was tripping off the &lt;em&gt;"this is likely some
Gopher stuff and it looks like there's an error in there"&lt;/em&gt; check. The
result? Treated like a Gopher map, converted into Gemtext, and displayed in
the wrong way.&lt;/p&gt;
&lt;p&gt;So... &lt;a href="https://gophermap.davep.dev/changelog/#v100" rel="noopener noreferrer" target="_blank"&gt;v1.0.0&lt;/a&gt; has been
released which adds some code to help out with this. The default parsing
still works as before, but there's now a strict mode which will raise
exceptions if some sort of significant problem is found. On top of this are
a couple of helper class methods which &lt;a href="https://gophermap.davep.dev/gophermap/#gophermap.GopherMap.is_likely_a_map" rel="noopener noreferrer" target="_blank"&gt;check if some text is likely a valid
map&lt;/a&gt;,
and &lt;a href="https://gophermap.davep.dev/gophermap/#gophermap.GopherMap.is_likely_error" rel="noopener noreferrer" target="_blank"&gt;check if some text is likely a valid map containing an
error&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With these in place, I can update Rogallo so that it's still pretty
easy-going when it comes to showing Gopher maps, but isn't quite so
laid-back when it comes to finding errors coming back from Gopher servers,
and so incorrectly rendering the result.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/12/gophermap-v1-0-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="gopher"/>
    <category term="smolweb"/>
    <published>2026-08-12T15:55:27+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/11/html2gemtext-a-simple-library-for-converting-html-to-gemtext.html</id>
    <title>html2gemtext - A simple library for converting HTML to Gemtext</title>
    <updated>2026-08-11T20:24:39+01:00</updated>
    <content type="html">&lt;p&gt;Yesterday evening, while tinkering with
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;, I managed to nerd-snipe myself pretty
well. I was playing around with the idea of better presentation of some
forms of &lt;code&gt;text/*&lt;/code&gt; content. While, of course, Rogallo handles &lt;code&gt;text/gemtext&lt;/code&gt;
just fine, there are lots of other MIME types that it will show too (pretty
much all within &lt;code&gt;text/*&lt;/code&gt;). Already, if it can work out an appropriate
language, the viewer will do syntax highlighting, and this includes Markdown
files. However, &lt;a href="https://textual.textualize.io/widgets/markdown/" rel="noopener noreferrer" target="_blank"&gt;Rogallo has a full Markdown widget built right
in&lt;/a&gt; so I was experimenting
with using that as the way to show Markdown content.&lt;/p&gt;
&lt;p&gt;Nothing that clever really, all pretty obvious.&lt;/p&gt;
&lt;p&gt;But then I got to thinking... In &lt;a href="https://oldnews.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;OldNews&lt;/a&gt; I
heavily rely on
&lt;a href="https://docs.html-to-markdown.xberg.io/" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;html-to-markdown&lt;/code&gt;&lt;/a&gt;. Given I have
a Markdown viewer to hand, if the user ends up trying to look at some
&lt;code&gt;text/html&lt;/code&gt;, why not convert it over to Markdown and render it that way?
That's... doable.&lt;/p&gt;
&lt;p&gt;There are, however, some problems with this idea:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;As useful as &lt;code&gt;html-to-markdown&lt;/code&gt; has been for OldNews, I've found it quite
  unreliable at times, with the occasional breaking change. I don't mention
  this as a negative about the project, but I don't want another one of my
  projects sitting on top of a moving target like that.&lt;/li&gt;
&lt;li&gt;Dragging in a reasonably large dependency for what's likely to be a niche
  requirement doesn't quite feel right.&lt;/li&gt;
&lt;li&gt;Textual's Markdown viewer has, to this day, one massive design flaw: links
  can't be navigated with the keyboard&lt;sup id="fnref:465-1"&gt;&lt;a class="footnote-ref" href="#fn:465-1"&gt;1&lt;/a&gt;&lt;/sup&gt;. I'm doing my absolute best to
  ensure that Rogallo is keyboard-first. Leaning on this widget for viewing
  Markdown is one thing, but leaning on the widget for other content types
  starts to erode that aim.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did consider the idea of having this feature as an install option, so
you'd be able to install &lt;code&gt;rogallo&lt;/code&gt; and have it work as normal, or install
&lt;code&gt;rogallo[html]&lt;/code&gt; (or similar) and it would drag in the ability to render some
HTML using this pipeline.&lt;/p&gt;
&lt;p&gt;Then I realised: why target Markdown at all? I already have the code for
rendering Gemtext, and that solves the keyboard navigation of links problem.
How hard could it be to write something to convert HTML to Gemtext?&lt;/p&gt;
&lt;p&gt;Turns out, at least for the requirements I have right now, &lt;a href="https://github.com/davep/html2gemtext" rel="noopener noreferrer" target="_blank"&gt;not that
hard&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://html2gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;html2gemtext&lt;/code&gt;&lt;/a&gt; is still in its infancy,
but it's doing a passable job of turning most of the HTML I throw at it into
reasonable Gemtext. I don't doubt for a moment that there are &lt;em&gt;lots&lt;/em&gt; of
pages out there that won't turn out right -- for varied values of right --
but so far the results are readable and navigable. The plan now is to keep
improving as I run into new cases that could be handled better.&lt;/p&gt;
&lt;p&gt;While I've not built this into Rogallo just yet, I think I will make use of
it. I'm also giving serious thought to using it for &lt;a href="gemini://tilde.team/~davep/" rel="noopener noreferrer" target="_blank"&gt;my
capsule&lt;/a&gt;. Over there I'm &lt;a href="gemini://tilde.team/~davep/gemlog/" rel="noopener noreferrer" target="_blank"&gt;adding some posts
from this blog&lt;/a&gt; and &lt;code&gt;html2gemtext&lt;/code&gt; could
form the basis of a tool to help automate some of that.&lt;/p&gt;
&lt;p&gt;Right now &lt;a href="https://github.com/davep/tilde-team-capsule/blob/11a6bfa7e0ab6015471d660cacdd0287d10bd3dc/bin/borrow-from-blog" rel="noopener noreferrer" target="_blank"&gt;I'm using a script I've
written&lt;/a&gt;
that wraps &lt;a href="https://kristaps.bsd.lv/lowdown/" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;lowdown&lt;/code&gt;&lt;/a&gt; to do the Markdown
to Gemtext conversion, but the result -- as good as it is -- isn't &lt;em&gt;quite&lt;/em&gt;
what I'd like. I'm thinking I could tailor the results exactly as I want if
I go from this blog's HTML via &lt;code&gt;html2gemtext&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Or, of course, given my blog is written in Markdown, I could next tackle my
own just-how-I-need-it Markdown to Gemtext converter...&lt;/p&gt;
&lt;p&gt;As for how this new library will go into Rogallo... Using it to render HTML
that might be found kicking about in Geminispace or Gopherspace makes sense,
I think. That should be enough. It's not like I &lt;em&gt;really&lt;/em&gt; need to turn it
into an &lt;code&gt;http(s)&lt;/code&gt; browser too. Right? Right?!?&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:465-1"&gt;
&lt;p&gt;This mouse-only problem is a recurring theme in Textual.&amp;#160;&lt;a class="footnote-backref" href="#fnref:465-1" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content>
    <link href="https://blog.davep.org/2026/08/11/html2gemtext-a-simple-library-for-converting-html-to-gemtext.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Gemini Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="gemtext"/>
    <category term="html2gemtext"/>
    <category term="smolweb"/>
    <published>2026-08-11T20:24:39+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/07/sybaritic-a-spartan-protocol-library-for-python.html</id>
    <title>Sybaritic - A Spartan protocol library for Python</title>
    <updated>2026-08-07T19:27:00+01:00</updated>
    <content type="html">&lt;p&gt;Now that &lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt; supports &lt;a href="https://rogallo.davep.dev/protocols/" rel="noopener noreferrer" target="_blank"&gt;multiple
protocols&lt;/a&gt;, it's tempting to add one
or two more. As of the time of writing, alongside
&lt;a href="https://rogallo.davep.dev/gemini/" rel="noopener noreferrer" target="_blank"&gt;Gemini&lt;/a&gt;, both
&lt;a href="https://rogallo.davep.dev/gopher/" rel="noopener noreferrer" target="_blank"&gt;Gopher&lt;/a&gt; and
&lt;a href="https://rogallo.davep.dev/finger/" rel="noopener noreferrer" target="_blank"&gt;Finger&lt;/a&gt; are supported. While wandering
the &lt;a href="https://blog.davep.org/tag/smolweb/"&gt;small web&lt;/a&gt;, I stumbled on &lt;a href="https://github.com/michael-lazar/spartan" rel="noopener noreferrer" target="_blank"&gt;the Spartan
protocol&lt;/a&gt;. Given its similarity to
Gemini and the fact it uses &lt;a href="https://blog.davep.org/tag/gemtext/"&gt;Gemtext&lt;/a&gt; as its main document
type, adding it to Rogallo seemed like an obvious thing to do.&lt;/p&gt;
&lt;p&gt;In aid of this, I've created &lt;a href="https://sybaritic.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Sybaritic&lt;/a&gt;. It
is, in effect, a sibling library to &lt;a href="https://wasat.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Wasat&lt;/a&gt;,
&lt;a href="https://port70.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Port70&lt;/a&gt; and &lt;a href="https://port79.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Port79&lt;/a&gt;.
As with the others, it is async-all-the-way and is designed to have a
similar API.&lt;/p&gt;
&lt;p&gt;With this in place, I can now extend Rogallo to handle &lt;code&gt;spartan://&lt;/code&gt; URIs as
first-class citizens.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/07/sybaritic-a-spartan-protocol-library-for-python.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="Rogallo"/>
    <category term="Spartan Protocol"/>
    <category term="smolweb"/>
    <category term="sybaritic"/>
    <published>2026-08-07T19:27:00+01:00</published>
  </entry>
  <entry>
    <id>https://blog.davep.org/2026/08/07/gemtext-v1-1-0.html</id>
    <title>Gemtext v1.1.0</title>
    <updated>2026-08-07T16:33:03+01:00</updated>
    <content type="html">&lt;p&gt;I've released a small update to &lt;a href="https://gemtext.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Gemtext&lt;/a&gt;. At
the moment, I'm working on adding &lt;a href="https://portal.mozz.us/spartan/spartan.mozz.us/" rel="noopener noreferrer" target="_blank"&gt;Spartan
protocol&lt;/a&gt; support to
&lt;a href="https://rogallo.davep.dev/" rel="noopener noreferrer" target="_blank"&gt;Rogallo&lt;/a&gt;, and to do this I need to handle a
small extension it makes to Gemtext.&lt;/p&gt;
&lt;p&gt;While Spartan is quite different from Gemini in the underlying protocol, it
uses Gemtext as the default/standard markup language, but with one small
difference. To allow uploaded data that is initiated by the markup, rather
than by the server, there is a &lt;code&gt;=:&lt;/code&gt; line type. In some respects, this is
similar to type &lt;code&gt;7&lt;/code&gt; items in Gopher maps.&lt;/p&gt;
&lt;p&gt;Rather than spin up a whole new library just to support this one small
difference, and rather than do some special-case nonsense in Rogallo itself,
I've added optional (and turned on by default) support for &lt;code&gt;=:&lt;/code&gt;. When
encountered, this results in a
&lt;a href="https://gemtext.davep.dev/gemtext/#gemtext.SpartanPrompt" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;SpartanPrompt&lt;/code&gt;&lt;/a&gt;
object, which simply inherits from a
&lt;a href="https://gemtext.davep.dev/gemtext/#gemtext.Link" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;Link&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Any code that doesn't require this feature can turn it off with the
&lt;a href="https://gemtext.davep.dev/gemtext/#gemtext.Gemtext(with_spartan_support)" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;with_spartan_support&lt;/code&gt;
parameter&lt;/a&gt;.&lt;/p&gt;</content>
    <link href="https://blog.davep.org/2026/08/07/gemtext-v1-1-0.html"/>
    <category term="Python"/>
    <category term="Coding"/>
    <category term="Spartan Protocol"/>
    <category term="PyPI"/>
    <category term="Python"/>
    <category term="gemtext"/>
    <category term="smolweb"/>
    <published>2026-08-07T16:33:03+01:00</published>
  </entry>
</feed>
