Created
April 13, 2018 20:05
-
-
Save PeteGabriel/2998a353743d67d017fa78809bca8020 to your computer and use it in GitHub Desktop.
Generate a guid and copy it to clipboard (no console open)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the following modules: | |
# pip install pyperclip | |
# pip install uuid | |
import uuid | |
import pyperclip | |
pyperclip.copy(str(uuid.uuid1())) | |
# On Windows systems, there is no notion of an “executable mode”. | |
# The Python installer automatically associates .py files with python.exe | |
# so that a double-click on a Python file will run it as a script. | |
# The extension can also be .pyw, in that case, the console window that normally appears is suppressed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generate a guid and copy it to clipboard (no console open). Tested with Python 3