Welcome to rtrlib-python’s documentation!

rtrlib-python is a cffi based binding for RTRlib.

The RTRlib implements the client-side of the RPKI-RTR protocol (RFC 6810) and BGP Prefix Origin Validation (RFC 6811). This release also supports Internet-Draft draft-ietf-sidr-rpki-rtr-rfc6810-bis, which enables the maintenance of router keys. Router keys are required to deploy BGPSEC.

Currently only basic validation against one cache is supported.



  • python 2.7 or python 3
  • C Compiler
  • RTRlib

Python Requirements

If you are using virtualenv these are installed automatically during the install step, otherwise you have to use your platforms package management tool or just run pip install -r requirements.txt.

  • cffi>=1.4.0
  • enum34
  • six

Download and Installation

  • git clone https://github.com/rtrlib/python-binding.git
  • cd python-binding
  • python setup.py build
  • python setup.py install

For usage examples see here here or in the tools dir of the repository.


Indices and tables