ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
8. Unix Specific Services
8.1 posix -- The most common POSIX system calls
8.2 pwd -- The password database
8.3 grp -- The group database
8.4 crypt -- Function to check Unix passwords
8.5 dl -- Call C functions in shared objects
8.6 dbm -- Simple ``database'' interface
8.7 gdbm -- GNU's reinterpretation of dbm
8.8 termios -- POSIX style tty control
8.9 tty -- Terminal control functions
8.10 pty -- Pseudo-terminal utilities
8.11 fcntl -- The fcntl() and ioctl() system calls
8.12 pipes -- Interface to shell pipelines
8.13 posixfile -- File-like objects with locking support
8.14 resource -- Resource usage information
8.15 nis -- Interface to Sun's NIS (Yellow Pages)
8.16 syslog -- Unix syslog library routines
8.17 commands -- Utilities for running commands

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference >> 8. Unix Specific Services
ActivePython 2.4 documentation

8.15 nis -- Interface to Sun's NIS (Yellow Pages)

Availability: UNIX.

The nis module gives a thin wrapper around the NIS library, useful for central administration of several hosts.

Because NIS exists only on Unix systems, this module is only available for Unix.

The nis module defines the following functions:

match( key, mapname)
Return the match for key in map mapname, or raise an error (nis.error) if there is none. Both should be strings, key is 8-bit clean. Return value is an arbitrary array of bytes (may contain NULL and other joys).

Note that mapname is first checked if it is an alias to another name.

cat( mapname)
Return a dictionary mapping key to value such that match(key, mapname)==value. Note that both keys and values of the dictionary are arbitrary arrays of bytes.

Note that mapname is first checked if it is an alias to another name.

maps( )
Return a list of all valid maps.

The nis module defines the following exception:

exception error
An error raised when a NIS function returns an error code.
See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved