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] [--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)

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-2024 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.5.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

rdap-1.5.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rdap-1.5.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/7.0.1 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.0

File hashes

Hashes for rdap-1.5.2.tar.gz
Algorithm Hash digest
SHA256 40fa8df10d2bcf14e6ebf6c17fb77b4b232df8340dfa269d33441dce4b2ea0b4
MD5 4a60c8edb31bec6169aa22d2ce7f277a
BLAKE2b-256 dd3053c936aef3ece2c6e704dc82aee2b05aa6363b56a6492e829bd0fe361e65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rdap-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/7.0.1 pkginfo/1.9.6 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.0

File hashes

Hashes for rdap-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d138f89446647eb0b121ca57a3a099e80fb20600cabf29d7b3cb5e7d13e8769d
MD5 9a48de633434a71f50213328108b5567
BLAKE2b-256 bcdcddb314a2d67f43f82ce2f6dfcb5e4d7bc95bc81a612f194de9f6eb5db76a

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