DEV Community

Discussion on: Build and Deploy a Serverless URL Shortener with Python and Fauna

Collapse
 
josiasaurel profile image
Josias Aurel

Interesting post. For the short string generation, you could have used the built-in Python secrets module and generate a URL safe string using secrets.token_urlsafe(<length>).

Collapse
 
lordghostx profile image
LordGhostX

Thanks for this, I actually know this library and method but it skipped my mind when writing the article 😅😅😅