CAIDA / pybgpstream

Python bindings for BGPStream
https://bgpstream.caida.org
BSD 2-Clause "Simplified" License
28 stars 22 forks source link

Allow timestamps given as float #41

Closed digizeph closed 3 years ago

digizeph commented 3 years ago

This addresses issue #40.

Tested with the following constructor:

# create and configure the stream
stream = pybgpstream.BGPStream(
    # from_time="2017-07-07 00:00:00",
    # from_time=1499385600,
    from_time=1499385600.0,
    until_time="2017-07-07 00:10:00 UTC",
    collectors=["route-views.sg", "route-views.eqix"],
    record_type="updates",
    filter="peer 11666 and prefix more 210.180.0.0/16"
)
alistairking commented 3 years ago

LGTM; can you or @albertodainotti merge?