Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/o/p/OpenRelay-HEAD/apps/server_talk/views.py   OpenRelay(Download)
from server_talk.conf.settings import PORT, IPADDRESS
from server_talk.exceptions import AnnounceClientError
from server_talk.utils import CPUsage
 
logger = logging.getLogger(__name__)
    def post(self, request):
        uuid = request.GET.get('uuid')
        # TODO: Reject call from non verified nodes
        logger.info('received heartbeat call from node: %s @ %s' % (uuid, request.META['REMOTE_ADDR']))
        return {'cpuload': CPUsage()}