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

from rri import RRIClient


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

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)

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.0.tar.gz (35.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.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrri-0.2.0.tar.gz
  • Upload date:
  • Size: 35.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.0.tar.gz
Algorithm Hash digest
SHA256 4723c306c13621ed428c8afa6dcf6c73530512f9e8fda090aafb317d03445be8
MD5 803474a0241079a830156149b3f896d4
BLAKE2b-256 ade7815c57a5a1b93c36ac915af027629046e836e3a905a23705382b6f778325

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrri-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2a60ddf038f0467117732171d5fe6c06961eed5cdbe08587ab409d41f65003
MD5 545bace98bb292ae88bcdc71ed53908b
BLAKE2b-256 6ab060e827bb3d342aa344699fa6f5cd62dbe97b8d4e6816e018f3efc294ce24

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