Skip to main content

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.

Features

  • 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/
    $ ./install-bgpq3.sh
    
  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 setup.md for addtional steps to setup the online web-api help pages.

Download files

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

Source Distribution

rptk-0.2.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

rptk-0.2.0-py2.py3-none-any.whl (28.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: rptk-0.2.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rptk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aff15eeb1381dd1742783bd5f24d49effb72c528b02f1543fb09e8bd28e60229
MD5 682cfc6014654cd56cf827bed1246211
BLAKE2b-256 fe78f3b6d6ca70fb04327f228729a51386c288794f60bd4da62ee988a6f90351

See more details on using hashes here.

File details

Details for the file rptk-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rptk-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce45fdcdc64edb19f5c710bfaa13624c7584eadea6105350f8dcef6be31af8d4
MD5 5ee80872a1503793b53550c692d9115e
BLAKE2b-256 330de0359bec8e6764feac560a60ca202b50ebf39143746de1b72f23786c34fb

See more details on using hashes here.

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