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 | |
| from gevent import monkey | |
| monkey.patch_all() | |
| monkey.patch_sys(stdin=True, stdout=False, stderr=False) | |
| import gevent | |
| from gevent.queue import Queue | |
| import signal | |
| import sys | |
| from socketio.namespace import BaseNamespace |
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 | |
| from gevent import monkey | |
| monkey.patch_all() | |
| monkey.patch_sys(stdin=True, stdout=False, stderr=False) | |
| import gevent | |
| from gevent.queue import Queue | |
| import sys | |
| import signal |
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
| """ | |
| `appengine_config.py` gets loaded every time a new instance is started. | |
| Use this file to configure app engine modules as defined here: | |
| https://developers.google.com/appengine/docs/python/tools/appengineconfig | |
| """ | |
| def add_vendor_packages(vendor_folder): | |
| """ |
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 collections import defaultdict | |
| import gc | |
| class MemoryProfilingMiddleware(object): | |
| def __init__(self, app): | |
| self.app = app | |
| #gc.set_debug(gc.DEBUG_LEAK) | |
| self.last_count = 0 |
NewerOlder