上一话题

msilib — 读写微软安装程序文件

下一话题
就业培训     下载中心     Wiki     联络
登录   注册

Log
  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python 标准库
  8. 被取代模块
  9. nis — 接口到 Sun 的 NIS (黄页)

nis — 接口到 Sun 的 NIS (黄页) ¶

Deprecated since version 3.11, will be removed in version 3.13: The nis 模块被弃用 (见 PEP 594 了解细节)。


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.

可用性 :非 Emscripten,非 WASI。

本模块不工作 (或不可用) 于 WebAssembly 平台 wasm32-emscripten and wasm32-wasi 。见 WebAssembly 平台 了解更多信息。

The nis 模块定义了下列函数:

nis. match ( key , mapname , domain = default_domain ) ¶

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).

注意, mapname is first checked if it is an alias to another name.

The domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.

nis. cat ( mapname , domain = default_domain ) ¶

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

注意, mapname is first checked if it is an alias to another name.

The domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.

nis. maps ( domain = default_domain ) ¶

Return a list of all valid maps.

The domain argument allows overriding the NIS domain used for the lookup. If unspecified, lookup is in the default NIS domain.

nis. get_default_domain ( ) ¶

Return the system default NIS domain.

The nis 模块定义以下异常:

exception nis. error ¶

引发的错误当 NIS 函数返回错误代码时。

上一话题

msilib — 读写微软安装程序文件

下一话题

nntplib — NNTP (网络新闻传输协议) 客户端

本页

  • 报告 Bug
  • 展示源

快速搜索

键入搜索术语或模块、类、函数名称。

  1. 首页
  2. Python 3.12.4
  3. 索引
  4. 模块
  5. 下一
  6. 上一
  7. Python 标准库
  8. 被取代模块
  9. nis — 接口到 Sun 的 NIS (黄页)
  10. 版权所有  © 2014-2026 乐数软件    

    工业和信息化部: 粤ICP备14079481号-1