The nis Module

(Unix only, Optional) The nis module provides an interface to the NIS (yellow pages) services, as Example 12-6 shows. It can be used to fetch values from a NIS database, if available.

Example 12-6. Using the nis Module


import nis
import string

print string.split(nis.match("bacon", "hosts.byname"))

{'bacon.spam.egg': 'bacon.spam.egg'}
['', 'bacon.spam.egg', 'bacon', 'spam-010']

Core Modules

More Standard Modules

Threads and Processes

Data Representation

File Formats

Mail and News Message Processing

Network Protocols


Multimedia Modules

Data Storage

Tools and Utilities

Platform-Specific Modules

Implementation Support Modules

Other Modules

Python Standard Library
Python Standard Library (Nutshell Handbooks) with
ISBN: 0596000960
EAN: 2147483647
Year: 2000
Pages: 252
Authors: Fredrik Lundh © 2008-2020.
If you may any questions please contact us: