This is version 0.1 of a simple Python script that makes and verifies MicroID values.
http://evan.prodromou.name/software/microverify.py
As a script, it takes a "communication URL" like "mailto:evan@prodromou.name" and a page URL like "http://evan.prodromou.name/ " and checks to see that the page at the page URL has a MicroID that matches these two values. It prints out some stuff if so.
As a module, it provides a function to fetch a microid from a page ("fetch_microid"), a function to make a MicroID ("make_microid") and one to verify a MicroID ("verify_microid").
It does an OK job not choking on bad URLs or non-HTML input but it's pretty lame dealing with bad command-line input. In particular, you must provide your own "mailto:" prefix. It doesn't handle multiple microids in one page very well.
Patches and whatever welcome.




