genid

YouTube-style random short-ID generator and its Alfred Script Filter entry point.

Charset design: 57 URL-safe characters — base62 minus visually-confusing 0 / 1 / l / o / O (capital I is kept). Cryptographically strong via secrets.choice(); suitable as opaque IDs in URLs, filenames, slugs, etc. Survives being read aloud or hand-copied without ambiguity.

afwf_genpass.genid.gen_id(length: int) str[source]

Generate one random short ID of length chars from the module charset.

afwf_genpass.genid.gen_ids(length: int) ScriptFilter[source]

Return a ScriptFilter of n_id fresh short IDs of length.

afwf_genpass.genid.main(query: str) ScriptFilter[source]

Alfred entry point. query parses as int in [id_min_length, id_max_length], otherwise an error item is shown.