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 os.path | |
| import time | |
| from PIL import ImageGrab | |
| from win32com.client import constants | |
| import win32com.client as win32 | |
| def create_docx_thumbnail(docx_file, output_image): | |
| # Launch the Word application |
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 atexit | |
| import fcntl | |
| import socket | |
| import struct | |
| import time | |
| import traceback | |
| INTERVAL = 5 | |
| sockets = {} |
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 json | |
| import logging | |
| from functools import wraps, _make_key | |
| from inspect import getfullargspec | |
| import redis | |
| logger = logging.getLogger(__name__) | |
| rs = redis.StrictRedis() |