V0.4.0 Caching
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