Validator_and_token_generator is a package created for a class project to validate certain strings such as credit/debit card numbers, generate alphanumeric tokens, and do other string processing like converting a datetime object into the relative time from now.
pip install validator_and_token_generator
# Import library
import validator_and_token_generator
# Generate token
_token = validator_and_token_generator.token_generator(length=10)