Skip to main content

Unified RDAP client for Python, powered by Rust

Project description

rdapify

A fast, secure RDAP client for Python — powered by Rust.

Installation

pip install rdapify

Usage

import rdapify

# Query a domain
result = rdapify.domain("example.com")
print(result["registrar"]["name"])
print(result["expiration_date"])

# Query an IP address
ip = rdapify.ip("8.8.8.8")
print(ip["country"])

# Query an ASN
asn = rdapify.asn("AS15169")
print(asn["name"])

# Query a nameserver
ns = rdapify.nameserver("ns1.google.com")
print(ns["ip_addresses"])

# Query an entity
entity = rdapify.entity("ARIN-HN-1", "https://rdap.arin.net/registry")
print(entity["handle"])

Features

  • 5 query types: domain, IP, ASN, nameserver, entity
  • IANA Bootstrap — automatic server discovery
  • SSRF protection built-in
  • In-memory cache
  • IDN/Punycode support
  • Zero OpenSSL dependency (rustls)

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdapify-0.1.0-cp38-abi3-manylinux_2_34_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

File details

Details for the file rdapify-0.1.0-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for rdapify-0.1.0-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5a9f5b644d796a2a5202d457f5754e1f5048f28e286e370aff0c9cd4d07d3d1d
MD5 964e5c2c60b0e4f46f5582717854befa
BLAKE2b-256 8b8a3421e6d767ec42e5a0836a2088497eeab212264d228e0a5a3e1a8dcbd1ea

See more details on using hashes here.

Supported by

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