Skip to content

V0.4.0 Caching

Compare
Choose a tag to compare
@digizeph digizeph released this 30 Mar 05:17
· 14 commits to main since this release
ab9b0b8

What's new in V0.4.0

Update the pybgpkit-parser package to v0.4.0 to support cache_dir for Parser constructor. Below is an example:

from bgpkit import Parser
import json

parser = Parser(
    url="https://spaces.bgpkit.org/parser/update-example",
    filters={"peer_ips": "185.1.8.65, 2001:7f8:73:0:3:fa4:0:1"},
    cache_dir="./"
)

for elem in parser:
    print(elem["origin_asns"])
    print(json.dumps(elem, indent=4))
    break

Full Changelog: v0.0.4...v0.4.0