am planning to create a unique ID from characters and numbers as well. The ID should look something like this
XXXX-XXXX-XXXX-XXXX
where X is a combination of numbers, small and cap letters. This Id will be stored in a mysql database and will be incremented to maintain consistency of data.
Any advice on how to start?
Though it’s a different format than you specified, have you considered using a UUID? Python has a
uuidmodule, starting in 2.5.http://docs.python.org/release/2.5.2/lib/module-uuid.html