Did I find the right examples for you? yes no

All Samples(327)  |  Call(313)  |  Derive(0)  |  Import(14)
Returns the computer's network name (which may not be fully
qualified)

An empty string is returned if the value cannot be determined.

        def node():

    """ Returns the computer's network name (which may not be fully
        qualified)

        An empty string is returned if the value cannot be determined.

    """
    return uname()[1]
        


src/b/e/BeginningPythonExercises-HEAD/other/system_admin/PULSA/pythonForSystemAdmin/src/example_8_1.py   BeginningPythonExercises(Download)
platform.mac_ver(),
platform.machine(),
platform.node(),
platform.platform(),
platform.processor(),

src/p/l/plaidcloud_agent-HEAD/examples/fib_client.py   plaidcloud_agent(Download)
    def on_exchange_declare(self, frame):
        pika.log.info('Exchange declared')
        self.queue_name = "{0}-{1}".format(platform.node(), os.getpid())
        # Trying to bind to the nameless exchange breaks the program.
        callback = self.on_mq_declare if EXCHANGE else self.on_queue_bind

src/q/t/qtile-examples-HEAD/user-configs/tych0/config.py   qtile-examples(Download)
# Number of screens on machines I use regularly. I wish there was a good way to
# query this from qtile...
hostname = platform.node()
num_screens = {
    'tanders-ubuntu': 2,

src/b/o/boundary-event-plugins-HEAD/examples/createevent.py   boundary-event-plugins(Download)
             "tags": ["example"],
             "fingerprintFields": ["@message"],
             "source": { "ref": platform.node(),"type": "host"},
             "message": 'test @ ' + str(datetime.now())
            }

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Spawning-0.9.6/src/spawning/util/system.py   hortonworks-sandbox(Download)
            'max_size': sys.maxsize,
            'max_unicode': sys.maxunicode,
            'name': platform.node(),
            'path_seperator': os.path.sep,
            'processor': platform.processor(),

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/console/scripts/about.py   flyscript-portal(Download)
print platform.platform()
print 'system   :', platform.system()
print 'node     :', platform.node()
print 'release  :', platform.release()
print 'version  :', platform.version()

src/f/o/foobnix-HEAD/foobnix/util/LOG.py   foobnix(Download)
    logging.debug('uname:' + str(platform.uname()))
    logging.debug('system   :' + platform.system())
    logging.debug('node     :' + platform.node())
    logging.debug('release  :' + platform.release())
    logging.debug('version  :' + platform.version())

src/p/y/pyradar-0.2/pyradar/utils/system_info.py   pyradar(Download)
        'uname:': platform.uname(),
        'system': platform.system(),
        'node': platform.node(),
        'release': platform.release(),
        'version': platform.version(),

src/f/l/flyscript-portal-HEAD/rvbd-portal/rvbd_portal/apps/report/utils.py   flyscript-portal(Download)
    output.append(platform.platform())
    output.append('system   : %s' % str(platform.system()))
    output.append('node     : %s' % str(platform.node()))
    output.append('release  : %s' % str(platform.release()))
    output.append('version  : %s' % str(platform.version()))

src/f/i/FileRock-Client-HEAD/filerockclient/bugreporter/Collector.py   FileRock-Client(Download)
        self.details["platform"]={
            "system": platform.system(),
            "node": platform.node(),
            "release": platform.release(),
            "version": platform.version(),

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next