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 function prints out all of the values and sub-values in any variable, including | |
| # lists, tuples and classes. It's not very efficient, so use it for testing/debugging | |
| # purposes only. Examples are below: | |
| #------------------------------------------------------------------------------------- | |
| # ShowData(range(10)) | |
| # (list) | |
| # (int) 0 |
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
| # encoding: utf-8 | |
| """ | |
| A python logging Handler that use ZeroMQ (ØMQ). | |
| +------+ +------+ +-------+ | |
| | app1 | | app2 | | app X | | |
| +------+ +------+ +-------+ | |
| | PUSH | PUSH | PUSH | |
| | | | |
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 | |
| #coding=utf-8 | |
| import datetime | |
| import os | |
| import sys | |
| from tornado.curl_httpclient import CurlAsyncHTTPClient as AsyncHTTPClient | |
| from tornado import ioloop | |
| ROOT_PATH = os.path.join(os.path.realpath(os.path.dirname(__file__)), '..') |