nis - This module contains functions for accessing NIS maps.
| Use Case | Command | Description |
|---|---|---|
| Retrieve entire map | cat(map, domain) | Returns the entire map as a dictionary. |
| Search for a key | match(key, map, domain) | Returns the value for a given key in the map. |
| List all available maps | maps(domain) | Returns an array of all available NIS maps in a domain. |
| Get default NIS domain | get_default_domain() | Returns the default NIS domain as a string. |
https://docs.python.org/3.10/library/nis.html
The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above.
builtins.Exception(builtins.BaseException)
errorerror (builtins.Exception)Method resolution order:
errorbuiltins.Exceptionbuiltins.BaseExceptionbuiltins.objectData descriptors defined here:
__weakref__ β list of weak references to the object (if defined)Methods inherited from builtins.Exception:
__init__(self, /, *args, **kwargs)Static methods inherited from builtins.Exception:
__new__(*args, **kwargs) from builtins.typeMethods inherited from builtins.BaseException:
__delattr__(self, name, /)__getattribute__(self, name, /)__reduce__(...)__repr__(self, /)__setattr__(self, name, value, /)__setstate__(...)__str__(self, /)with_traceback(...)Data descriptors inherited from builtins.BaseException:
__cause__ β exception cause__context__ β exception context__dict____suppress_context____traceback__argscat(map, domain = defaultdomain)Returns the entire map as a dictionary. Optionally domain can be specified but it defaults to the system default domain.
get_default_domain() -> strCorresponds to the C library yp_get_default_domain() call, returning the default NIS domain.
maps(domain = defaultdomain)Returns an array of all available NIS maps within a domain. If domain is not specified it defaults to the system default domain.
match(key, map, domain = defaultdomain)Corresponds to the C library yp_match() call, returning the value of key in the given map. Optionally domain can be specified but it defaults to the system default domain.
/usr/lib/python3.10/lib-dynload/nis.cpython-310-x86_64-linux-gnu.so
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 12:18 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format