What is Nostr?
Adrian Cochrane /
npub186l…nt98
2024-06-24 19:07:20

Adrian Cochrane on Nostr: To help parse its configuration file Python's FLIT packaging tool uses a vendored ...

To help parse its configuration file Python's FLIT packaging tool uses a vendored version of TomLi.

TomLi reads/decodes a file into memory & parses it char-by-char into a Python dictionary. Utilizing utility classes for nested dicts & parsing flags. Handwritten code resembles a pushdown automaton.

The major advantage of TomLi is that it parses values to more sophisticated datatypes, which may (for datetimes) be done via regexp.

1/1 Fin on Flit! Tomorrow: Ruffle AVM2!
Author Public Key
npub186lgefknfnkgychnfjancqnv4k4yrdzxal486lw0p80z6vmley9qgsnt98