This file contains hidden or 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
| import datetime | |
| import date | |
| import pyscreenshot | |
| INTERVAL = 30 # Time in seconds between screenshots | |
| while True: | |
| now = datetime.datetime.now() # Get timestamp | |
| filename = now.strftime('screenshot_%Y_%m_%d_%H_%M_%S.png') # Create a filename | |
| pyscreenshot.grab_to_file(filename) # take the screenshot | |
| time.sleep(INTERVAL) |
This file contains hidden or 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
| """ | |
| This gist should allow you to print a dictionary of licence types that you have installed | |
| with a list the packages using each licence. | |
| """ | |
| from __future__ import print_function | |
| import pip | |
| import collections | |
| info = [i for i in pip.commands.show.search_packages_info([ # takes a list of the names as a parameter | |
| d.project_name for d in pip.utils.get_installed_distributions() # This should give us a list of the installed package names |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder