Handy Python Snippets To Handle Random Things
Photo by Raul Cacho Oses on Unsplash

I like to keep a few python scripts handy, this is more of a cheatsheet, to search for a particular thing! Most of these are one liners, so really helpful to add into other scripts! You should be able to run them in the following way:

python -c "{script}"

e.g.

python -c "import uuid; print(uuid.uuid1())"

Generate a UUID

import uuid; print(uuid.uuid1())

Create a Fernet Key
['Craig Godden-Payne']
['Software Development', 'Python']