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
| from sqlalchemy import create_engine | |
| import redis | |
| import time | |
| import requests | |
| import datetime | |
| import memcache | |
| def RateLimited(maxPerSecond): | |
| minInterval = 1.0 / float(maxPerSecond) |
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
| #! /usr/bin/env python | |
| """Tools for running threads behind a wx.ProgressDialog.""" | |
| # Standard library imports. | |
| import sys | |
| import threading | |
| import time | |
| # Third party imports. |
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 | |
| import zipfile | |
| def ZipDir(inputDir, outputZip): | |
| '''Zip up a directory and preserve symlinks and empty directories''' | |
| zipOut = zipfile.ZipFile(outputZip, 'w', compression=zipfile.ZIP_DEFLATED) | |
| rootLen = len(os.path.dirname(inputDir)) | |
| def _ArchiveDirectory(parentDirectory): | |
| contents = os.listdir(parentDirectory) |