Skip to main content

pyrri

Client library for the DENIC real-time registration interface RRI

Install

pip install pyrri

Quickstart

Make sure your clients IP address is allowed to access RRI. See DENIC RRI IP Allowlisting for more information.

from rri import RRIClient


rri = RRIClient()
rri.connect("rri.denic.de", 51131)
rri.login(username, password)

order = """
Version: 5.0
Action: INFO
DOMAIN: denic.de
Recursive: false
""".strip()

answer = rri.talk(order)

rri.logout()
rri.disconnect()

order can be k/v or xml formatted. See Examples section in DENIC manual for more information about what is expected.

Interactive CLI

Show help:

rri --help
usage: rri.py [-h] [-s SERVER] [-u USERNAME] [-p PASSWORD] [-i INPUT] [-o OUTPUT]

RRI-Client

options:
  -h, --help            show this help message and exit
  -s, --server SERVER   Hostname and port of rri-server. or IP-address of RRI-server
                        (default: rri.denic.de:51131)
  -u, --user USERNAME   Username for RRI-server. For more security, this can also be set by
                        environment variable RRI_USERNAME (default: None)
  -p, --password PASSWORD
                        Password for RRI-server. For more security, this can also be set by
                        environment variable RRI_PASSWORD (default: None)
  -i, --input INPUT     Filename with order to send to RRI. When skipping this parameter,
                        the order is read from stdin (default: None)
  -o, --output OUTPUT   Filename in which the answer from RRI is stored. When skipping this
                        parameter, answer is written to stdout (default: None)

References

Attribution

This project is based on the DENIC pyrri example code.

License

Copyright (c) 2019 DENIC eG

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for pyrri 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrri 0.2.1
File Size Uploaded Provenance Actions
pyrri-0.2.1.tar.gz 5.4 kB Without provenance Details for pyrri-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrri 0.2.1
File Interpreter ABI Platform Actions
pyrri-0.2.1-py3-none-any.whl Python 3 none any Details for pyrri-0.2.1-py3-none-any.whl

Total release size: 11.5 kB

Release files / pyrri-0.2.1.tar.gz

Download URL pyrri-0.2.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
04cbb910616d7a75176c9ee9053a0ab2657f4e59526b9a7520a6873442a6dd3e
BLAKE2b-256 checksum
How to use checksums
985f213355361ef391cb32895a52731675f87461fbf041d7ec65d90f34cc4ea7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.1 cpython/3.13.11 HTTPX/0.28.1

Release files / pyrri-0.2.1-py3-none-any.whl

Download URL pyrri-0.2.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfd0806e42784a9a0524362d87c49736c8d715121495fa6e35ef3baf772b763a
BLAKE2b-256 checksum
How to use checksums
a763e75cce40d1d07038aaa9a552dc949737d97f7d8e80a5ae9a74f5a7434b1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.1 cpython/3.13.11 HTTPX/0.28.1

Security for pyrri 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page