Skip to main content

A python toolkit for prefix filter list management operations.

Project description

image image image Requirements Status

RPTK - Routing Policy Tool Kit

Python toolkit for prefix filter list management operations with plugable modules for query and output handling.


  • Command-line rptk tool
  • Simple python api module
  • Flask-based web-query api
  • Query modules:
    • native python query module
    • bgpq3 shell wrapper
  • Format modules
    • JSON output
    • YAML output
    • IOS classic/XE style prefix-lists
    • JunOS prefix-lists
    • BIRD prefix-lists
    • ...more coming soon

Getting Started

  1. Install from pip:

    $ pip install rptk
  2. Run bgpq3 installer script, if not already installed:

    $ cd $PREFIX/share/rptk/utils/
    $ ./
  3. Customise settings in rptk.conf as necessary:

    $ cd $PREFIX/etc/rptk/
    $ cp rptk.conf.example rptk.conf
    $ vi rptk.conf
  4. Check that test queries are working on the command line:

    $ rptk -F ios -Q bgpq3 AS-WOLCOMM
  5. Check that test queries are working on the web API:

    $ rptk-web
    $ curl http://localhost:8080/ios/AS-WOLCOMM

Refer to for addtional steps to setup the online web-api help pages.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rptk, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size rptk-0.2.0-py2.py3-none-any.whl (28.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size rptk-0.2.0.tar.gz (21.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page