跳转到主要内容

注册数据访问协议工具

项目描述

rdap

PyPI PyPI tests Codecov

注册数据访问协议工具

安装

pip install rdap

使用

usage: rdap [-h] [--debug] [--home HOME] [--verbose] [--quiet] [--version] [--output-format OUTPUT_FORMAT] [--show-requests] [--parse] [--rir] [--write-bootstrap-data] query [query ...]

rdap

positional arguments:
  query

options:
  -h, --help            show this help message and exit
  --debug               enable extra debug output
  --home HOME           specify the home directory, by default will check in order: $RDAP_HOME, ./.rdap, /home/grizz/.rdap, /home/grizz/.config/rdap
  --verbose             enable more verbose output
  --quiet               no output at all
  --version             show program's version number and exit
  --output-format OUTPUT_FORMAT
                        output format (yaml, json, text)
  --show-requests       show all requests
  --parse               parse data into object before display
  --rir                 display rir
  --write-bootstrap-data
                        write bootstrap data for type (as query)

配置文件

客户端使用--home选项指向目录,默认将按以下顺序检查:$RDAP_HOME./.rdap~/.rdap~/.config/rdap

该目录应包含一个config.yaml文件,以下显示默认设置。

rdap:
  # URL to bootstrap the initial request off
  bootstrap_url: https://rdap.db.ripe.net/
  # boolean to use data from bootstrap_data_url instead of a bootstrap server
  self_bootstrap: False
  # url to load bootstrap data from
  bootstrap_data_url: "https://data.iana.org/rdap/"
  # length of time in hours to keep bootstrap data
  bootstrap_cache_ttl: 25
  # how to format the output
  output_format: yaml
  # API key for use at rdap.lacnic.net
  lacnic_apikey: None
  # role types to recursively query when processing
  recurse_roles: ["administrative", "technical"]
  # HTTP request timeout in seconds, used for both connect and read
  timeout: 0.5

许可证

版权所有 2016-2024 20C,LLC

根据Apache许可证版本2.0(“许可证”);除非遵守许可证规定,否则不得使用本软件。您可以在以下位置获得许可证副本:

https://apache.ac.cn/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则在许可证下分发的软件按“原样”分发,不提供任何明示或暗示的保证或条件。有关许可协议的具体语言和限制,请参阅许可证。

项目详情


下载文件

下载您平台对应的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

rdap-1.6.0.tar.gz (123.8 kB 查看哈希值)

上传时间

构建分发

rdap-1.6.0-py3-none-any.whl (30.0 kB 查看哈希值)

上传时间 Python 3

由以下支持