Python nis Module
Example
Check if the Unix-only nis module is available:
import importlib
print(importlib.util.find_spec("nis") is not None)
Try it Yourself »
Note: nis is Unix-only (Yellow Pages/NIS). The Tryit environment does not have this module installed.
Definition and Usage
The nis module provides an interface to Sun's Network Information Service (Yellow Pages).
Use it to query NIS maps for network-wide configuration databases on Unix systems.
Members
Member | Description |
---|---|
match() | Return the value associated with a key in a map. |
maps() | Return a list of available NIS maps. |
get_default_domain() | Return the system default NIS domain. |