pybgpkitstream 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,9 @@ class FilterOptions(BaseModel):
40
40
  as_path: str | None = Field(
41
41
  default=None, description="Filter by a regular expression matching the AS path."
42
42
  )
43
+ ip_version: Literal["ipv4", "ipv6"] | None = Field(
44
+ default=None, description="Filter by ip version."
45
+ )
43
46
 
44
47
 
45
48
  class BGPStreamConfig(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybgpkitstream
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Drop-in replacement for PyBGPStream using BGPKIT
5
5
  Author: JustinLoye
6
6
  Author-email: JustinLoye <jloye@iij.ad.jp>
@@ -16,17 +16,25 @@ A drop-in replacement for PyBGPStream using BGPKIT
16
16
 
17
17
  ## Features
18
18
 
19
- - Effortlessly switch to another BGP stream:
20
- - Designed to be a seamless, drop-in replacement ([example](tests/test_stream.py#L38))
19
+ - Effortless BGP Stream Switching:
20
+ - Seamless, drop-in replacement ([example](tests/test_stream.py#L38))
21
21
  - Lazy message generation: generates time-ordered BGP messages on the fly, consuming minimal memory and making it suitable for large datasets
22
22
  - Supports multiple route collectors
23
23
  - Supports both ribs and updates
24
- - Caching with concurrent downloading is enabled, and the caching mechanism is fully compatible with the BGPKIT parser's caching functionality
25
- - [Good-enough performances](examples/perf.ipynb)
24
+ - Caching with concurrent downloading is enabled and is fully compatible with the BGPKIT parser's caching functionality.
25
+ - [Similar performance to PyBGPStream](examples/perf.ipynb)
26
26
  - A CLI tool
27
27
 
28
28
  ## Quick start
29
29
 
30
+ Installation:
31
+
32
+ ```sh
33
+ pip install pybgpkitstream
34
+ ```
35
+
36
+ Usage:
37
+
30
38
  ```python
31
39
  import datetime
32
40
  from pybgpkitstream import BGPStreamConfig, BGPKITStream
@@ -47,6 +55,12 @@ for _ in stream:
47
55
  print(f"Processed {n_elems} BGP elements")
48
56
  ```
49
57
 
58
+ or in the terminal:
59
+
60
+ ```sh
61
+ pybgpkitstream --start-time 2010-09-01T00:00:00 --end-time 2010-09-01T01:59:00 --collectors route-views.sydney route-views.wide --data-types updates > updates.txt
62
+ ```
63
+
50
64
  ## Motivation
51
65
 
52
66
  PyBGPStream is great but the implementation is complex and stops working when UC San Diego experiences a power outage.
@@ -0,0 +1,10 @@
1
+ pybgpkitstream/__init__.py,sha256=kNfv6bvDkaGKjlw0pr9LWVqOQtIGmIPk-VG1ZCBuA38,163
2
+ pybgpkitstream/bgpelement.py,sha256=7mXSUmWThhIbKy2JVsLchoteve0BshT3uH8cdbAe0Go,1176
3
+ pybgpkitstream/bgpkitstream.py,sha256=pfjfZOlj0Fs1IDKA254sGNEKfFIho55bvxKksPIa-mA,8609
4
+ pybgpkitstream/bgpstreamconfig.py,sha256=HD8R6JbVEv9-jBB5LOOCfvaBpPZOfTmBlT3UIXzBX8E,2552
5
+ pybgpkitstream/cli.py,sha256=E0E1hO0fzGhy1skBopRufdewsiSy_mA-J8Gf2WxBRxo,4214
6
+ pybgpkitstream/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ pybgpkitstream-0.1.1.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
8
+ pybgpkitstream-0.1.1.dist-info/entry_points.txt,sha256=aWhImGlXLtRKkfyJHudcbSp5K5As4ZGL8wXZC0y6q4o,60
9
+ pybgpkitstream-0.1.1.dist-info/METADATA,sha256=yXhpDEQrepf-YDeXM657WZH48ioSTamRyniZP0EqwNE,2953
10
+ pybgpkitstream-0.1.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.12
2
+ Generator: uv 0.8.22
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,10 +0,0 @@
1
- pybgpkitstream/__init__.py,sha256=90d7efe9bbc391a18a8e5c34a6bf4b595a8e42d2069883e4f951b564206e037f,163
2
- pybgpkitstream/bgpelement.py,sha256=ee65d252659386121b2b2d8956c2dc868b5ebded01b214f7b87f1c75b01ed06a,1176
3
- pybgpkitstream/bgpkitstream.py,sha256=a5f8df64e963d05b35203280db9e2c18d10a7c5221a39e5bbf12a4b0f21afa60,8609
4
- pybgpkitstream/bgpstreamconfig.py,sha256=8973ae8248b3effc44f0c6d1208e1ec303308e8d9d51c0315e62207b4084d590,2432
5
- pybgpkitstream/cli.py,sha256=13413584ed1fcc6872d6c901a2946e7dd7b0b224b2fe603e27c19fd96c41471a,4214
6
- pybgpkitstream/py.typed,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
7
- pybgpkitstream-0.1.0.dist-info/WHEEL,sha256=76443c98c0efcfdd1191eac5fa1d8223dba1c474dbd47676674a255e7ca48770,79
8
- pybgpkitstream-0.1.0.dist-info/entry_points.txt,sha256=6968489869572ed44a91fc891ee75c6d2a792b902ce1918bf305d90b4cbaab8a,60
9
- pybgpkitstream-0.1.0.dist-info/METADATA,sha256=f448c76879004502faefea8738b68489c9890f0741da4b7aec1c0e096c87b3dc,2736
10
- pybgpkitstream-0.1.0.dist-info/RECORD,,