You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
294 B
Python

import random
import string
import code128
chars = string.ascii_letters + string.digits
for code in range(30):
code = ''.join(random.choice(chars) for _ in range(5))
code = "SAp." + code
with open("/tmp/" + code + ".svg", "w") as f:
f.write(code128.svg(code, caption=True))