py-leximited is a small Python package for lexicographically delimited encoding and decoding.
The Leximited Format was created by Dave Ackley and is described here. It is useful when you have lists of values you want to keep in a fixed order across different programs and operating systems. It also prefixes each string with its own length.
pip install leximited
import leximited
leximited.to_leximited('boo') # returns '3boo'
leximited.from_leximited('3boo') # returns 'boo'