Skip to main content

Send and receive DENIC RRI commands

Project description

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.

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

pyrri-0.2.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

pyrri-0.2.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pyrri-0.2.1.tar.gz.

File metadata

  • Download URL: pyrri-0.2.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.1 cpython/3.13.11 HTTPX/0.28.1

File hashes

Hashes for pyrri-0.2.1.tar.gz
Algorithm Hash digest
SHA256 04cbb910616d7a75176c9ee9053a0ab2657f4e59526b9a7520a6873442a6dd3e
MD5 f4fc5d55b78411b54f3489853028c091
BLAKE2b-256 985f213355361ef391cb32895a52731675f87461fbf041d7ec65d90f34cc4ea7

See more details on using hashes here.

File details

Details for the file pyrri-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pyrri-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.1 cpython/3.13.11 HTTPX/0.28.1

File hashes

Hashes for pyrri-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd0806e42784a9a0524362d87c49736c8d715121495fa6e35ef3baf772b763a
MD5 d3db320f4273c9fd863f3d7f0070a899
BLAKE2b-256 a763e75cce40d1d07038aaa9a552dc949737d97f7d8e80a5ae9a74f5a7434b1e

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