Secrets Module: Cryptographically Secure Random Generation
TL;DR
The secrets module provides cryptographically secure random generation for passwords, tokens, and security keys - use it instead of the random module for any security-sensitive applications.