Skip to main content

Registration Data Access Protocol tools

Project description

rdap

PyPI PyPI Tests Codecov

Registration Data Access Protocol tools

Installation

pip install rdap

Usage

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

rdap

positional arguments:
  query

optional arguments:
  -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/$USER/.rdap,
                        /home/$USER/.config/rdap
  --verbose             enable more verbose output
  --quiet               no output at all
  --version             show 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
  --write-bootstrap-data
                        write bootstrap data for type (as query)

Config file

The client uses the --home option to point to a directory, by default will check in order: $RDAP_HOME, ./.rdap, ~/.rdap, ~/.config/rdap

The directory should have a config.yaml file in it, defaults shown below.

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

License

Copyright 2016 20C, LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this softare except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdap-1.2.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

rdap-1.2.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file rdap-1.2.0.tar.gz.

File metadata

  • Download URL: rdap-1.2.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

File hashes

Hashes for rdap-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ae798340973e18a0497dbb31911987080748de35eaa8e67b1c1c897f83b5e6fa
MD5 e97506abce360fc097b72615469d6e19
BLAKE2b-256 9827e23af9d441c2abadf38ece6ee85df2775f1f3b550ee4706735e0918ec2ea

See more details on using hashes here.

File details

Details for the file rdap-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: rdap-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

File hashes

Hashes for rdap-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7485d4cd5b63c100b22565e4d0625a5f46b815bfa6058093dc04ca0dec9b9a05
MD5 b30e25c6242ee8a1093523f2fb9441fc
BLAKE2b-256 6105cd01061d51745cf0c571c5bfa1dedeed536cf4cf71301b4a3db17c90da1a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page