Metadata-Version: 2.4
Name: rdapify-py
Version: 0.2.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: Name Service (DNS)
Classifier: Topic :: System :: Networking
Summary: Unified RDAP client for Python, powered by Rust
Keywords: rdap,whois,domain,ip,asn,rust
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://docs.rdapify.com
Project-URL: Homepage, https://rdapify.com
Project-URL: Repository, https://github.com/rdapify/rdapify-rs

# rdapify

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

## Installation

```bash
pip install rdapify
```

## Usage

```python
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

