Parser Backends¶
PyBGPKITStream supports multiple parser backends for different use cases.
Available Parsers¶
PyBGPKIT (Default)¶
- Name:
pybgpkit - Speed: Slow
- Dependencies: None
- Use Case: Zero-dependency installation, prototyping
stream = BGPKITStream.from_config(config, parser_name="pybgpkit")
BGPKIT Parser¶
- Name:
bgpkit - Speed: Fast (~10x faster than pybgpkit)
- Dependencies: Install from cargo
- Use Case: Large-scale processing
Installation:
cargo install bgpkit-parser --features cli
stream = BGPKITStream.from_config(config, parser_name="bgpkit")
BGPDump¶
- Name:
bgpdump - Speed: Fast, comparable to BGPKIT
- Dependencies: Classic MRT parser utility
- Use Case: Legacy systems, compatibility
Installation:
apt-get install bgpdump
stream = BGPKITStream.from_config(config, parser_name="bgpdump")
PyBGPStream¶
- Name:
pybgpstream - Speed: Fastest
- Dependencies:
pip install pybgpstream - Use Case: Large-scale processing
Installation: follow the CI steps
stream = BGPKITStream.from_config(config, parser_name="pybgpstream")