BGPKIT Parser Python Binding
Project description
bgpkit-parser-py
Python binding for bgpkit-parser
Example
from pybgpkit_parser 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"},
)
for elem in parser:
print(elem["origin_asns"])
print(json.dumps(elem, indent=4))
break
You can also add cache_dir
to Parser to cache the downloaded files to a specified directory.
Here is an example:
from pybgpkit_parser 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
Supported Python Version
- Python3.8
- Python3.9
- Python3.10
- Python3.11
- Python3.12
Installation
python3 -m pip install pybgpkit-parser
Develop
maturin develop
builds local python module and add to the venv.
Build and publish
See BUILD.md for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pybgpkit_parser-0.5.2.tar.gz
.
File metadata
- Download URL: pybgpkit_parser-0.5.2.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d664a79e6ea89f4bbac1eeb847dc3035a22456b77703b6b260453eb107ed4cb5 |
|
MD5 | 35765887645d854e1d6ffbcd174af6c6 |
|
BLAKE2b-256 | fc3a22fa89af7f6994baf4bf81b7c97807bd7f5e9e5fe7ca769c7dfde5949eee |
File details
Details for the file pybgpkit_parser-0.5.2-cp312-cp312-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 25.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5174902a3a7fa79db955420aa1941dd79a1cd83b6e09d244379c647ca032aed8 |
|
MD5 | 1622210fc6d7fb5f0456976a6e57af17 |
|
BLAKE2b-256 | 2b462fa929efc6ea27e1edbae28eed49e22a4b2565d82a1f6cbd8565609c03e2 |
File details
Details for the file pybgpkit_parser-0.5.2-cp312-cp312-manylinux_2_34_aarch64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp312-cp312-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 22.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7795020027daef478ff4f44c16e95da58ca7b94da56ba2e9c3c489dc92e025a1 |
|
MD5 | 3150a1714626f8021cc33567447a7c86 |
|
BLAKE2b-256 | 6c131e266ab2388ea3885bd8f932520c6faa6f264130ca547339200315098bfa |
File details
Details for the file pybgpkit_parser-0.5.2-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd871800b50850b0927f92b0c7654408dbd7cde2f98e8d98fbd29b277f605445 |
|
MD5 | c8204a6a3a929ccbbba11a2641af708f |
|
BLAKE2b-256 | 994e9078c80542c140ebe9197cc3b7bdccfbe9dea740cccb0e4a9ccc2290a2c9 |
File details
Details for the file pybgpkit_parser-0.5.2-cp312-cp312-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e615821eef0b2813a621f4e8472b06d7d175cfc41801f90111fbce26914fb59 |
|
MD5 | 19d6ac04f6c5a52d96803a930654c1a2 |
|
BLAKE2b-256 | 84e6e63ff7b1e1fbf88e591545115be2a22136b9c4ceacced9393d6e4f5085f8 |
File details
Details for the file pybgpkit_parser-0.5.2-cp311-cp311-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 25.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1851647377aa564a334c5f6ab5e574eaf93218ef4eb75986c701c1a1e1ba6e54 |
|
MD5 | 8fe0c3fd9492944a1fc330226cf53268 |
|
BLAKE2b-256 | 4955e8229b514035d419c69fbe2ef30fae3af5b4c1c3f076201e8b35a714a864 |
File details
Details for the file pybgpkit_parser-0.5.2-cp311-cp311-manylinux_2_34_aarch64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp311-cp311-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 22.7 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 145513a4a5a5cde1e6b180349565190f69f9d12f9f2c16184169898682c5032d |
|
MD5 | 91a9e62fd1e0b6c9e343d4b738c5ea28 |
|
BLAKE2b-256 | e2bcfdda4e3a39dbe22bb6bacdc29325de82d9561b15d77daa45318aaff2c455 |
File details
Details for the file pybgpkit_parser-0.5.2-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5678d188f4fe6ff49e1e1aea54b5c8b03c292f5de00bd43c2242c6ab7f56dd99 |
|
MD5 | 57b4634ece8416fedab69404ffd81fb7 |
|
BLAKE2b-256 | 7d9424b8b8eb1817f0c60b72ab17dedb4a055461a885141753c8ce68be11d370 |
File details
Details for the file pybgpkit_parser-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp311-cp311-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.11, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a905eacaae6de76f149b7dfb9eda3be270bd5bc96b1f82173f6bae239188dda1 |
|
MD5 | afa46be4f30b74075ac60876d32253f5 |
|
BLAKE2b-256 | 2998a0a24eecf1ff135c472d4fe7c9e7d869a2f7f89896e66a71acb557ef83b4 |
File details
Details for the file pybgpkit_parser-0.5.2-cp310-cp310-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 25.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d61a02b4f49ef576f6af0cb5f5f39ca85a91a2c5f41850b65c9f9504d803fd |
|
MD5 | 0217a61ba3891b8fcaf3fad7214e12ba |
|
BLAKE2b-256 | 49cf255b7f9916f606a34104de2128e02b781285d139b6d957fe862711038e75 |
File details
Details for the file pybgpkit_parser-0.5.2-cp310-cp310-manylinux_2_34_aarch64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp310-cp310-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 22.7 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ce8ab40dc01c9a786d9874a9dbe7ccbb85122246fb206fb98c22a059a67095 |
|
MD5 | 57cba26b4b441745d0e1215ed925f187 |
|
BLAKE2b-256 | 9baa1e61e858599f7ac9895c33462c92c17253339b8ca54466be527c2733a9a0 |
File details
Details for the file pybgpkit_parser-0.5.2-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c0e56f7682444b248c2237e5604efecba8249daa13ca70fe6caf702c51ef97a |
|
MD5 | 05077a23958ba99c417ea126b8b0f3c5 |
|
BLAKE2b-256 | 40dd30b3f0675b7da4c8b0eceb9c5869539117dd365a704bd009e8eee7175c79 |
File details
Details for the file pybgpkit_parser-0.5.2-cp310-cp310-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp310-cp310-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.10, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b81abde9adc235c276ca7aa957d801a8f03f964348e3698b68742ea0146f965d |
|
MD5 | e07fbadb6f3bc1d74f67ac699ecf1098 |
|
BLAKE2b-256 | 1d8499ead13f061c9cd6c1542753f54be650408534026259c46b965588187747 |
File details
Details for the file pybgpkit_parser-0.5.2-cp39-cp39-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp39-cp39-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 25.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d667117a4e0dd6baf8e9a7c0b573675650c6a19734fade89c958b43f1dbbc3 |
|
MD5 | a4828c19993a8a4f6e6477cdda4d2938 |
|
BLAKE2b-256 | b6f83fbd1280f66553237f9560be0a98834feb96d6eb1de238b954b808cba598 |
File details
Details for the file pybgpkit_parser-0.5.2-cp39-cp39-manylinux_2_34_aarch64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp39-cp39-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 22.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6421a98a94db57bf23e283fc92078136d57deb5348ae6516c626bc8df8e08aaa |
|
MD5 | 6133344597893205a81ded98d7b8bcc1 |
|
BLAKE2b-256 | e3ed593755b5cf57a1bfb0e8ec91c88f5f8c6d91a2d2f771d70ea450800d4156 |
File details
Details for the file pybgpkit_parser-0.5.2-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee20ca983316e842e2c2493e08021f8a0074664ee7b07d8532fff92bfbcd83d |
|
MD5 | f62d72a2fda040caeabaceeb450a1e47 |
|
BLAKE2b-256 | 01ed717dbe93decc63197950b20d3c5f935e0a6c3f1fec8f6d7c92cd19862092 |
File details
Details for the file pybgpkit_parser-0.5.2-cp39-cp39-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp39-cp39-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.9, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62796f8f5c5d9f8531d2df5456465b3808821bc5bbc308eaaa018cb7af65ac9 |
|
MD5 | a40261db0951a14b24374adca5519714 |
|
BLAKE2b-256 | 01eae8f8dbdefec563214b387174353f2aa96aed50c9feb790dd7384b17e1abd |
File details
Details for the file pybgpkit_parser-0.5.2-cp38-cp38-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp38-cp38-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 25.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 641b50c9e29816557b24b642f2aaebab3e887a25b21e9e8e22bb7fbf1478f038 |
|
MD5 | a4f8315e71385a690129f70bb9a36745 |
|
BLAKE2b-256 | 49f99d359a8a4ebe9b87e89ce78e4efb5c112cfd87b11afdc3586abc4de05575 |
File details
Details for the file pybgpkit_parser-0.5.2-cp38-cp38-manylinux_2_34_aarch64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp38-cp38-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 22.7 MB
- Tags: CPython 3.8, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6640b65186683621ce45a4327daf84bd09df2d4f6603ae85742e2b77e56450af |
|
MD5 | 962c0223b3e22dcfdb75c4865188d761 |
|
BLAKE2b-256 | 38a08944df434cf26a946fdc4eea4bcfdcabb7c96a6dd91b51df9de813214561 |
File details
Details for the file pybgpkit_parser-0.5.2-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.9 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe1bf8766e3dc6d733fd66717964cf3a62553e75f609a499a5625053f485933c |
|
MD5 | f809abf5bfbce1d46140aef266db5034 |
|
BLAKE2b-256 | 3b6b66b9b3d40ecd39be9023da5892a9f8fd3abc364591605ab7e299c8314c92 |
File details
Details for the file pybgpkit_parser-0.5.2-cp38-cp38-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: pybgpkit_parser-0.5.2-cp38-cp38-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.6 MB
- Tags: CPython 3.8, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ccf90c3d2d102b2c5affd0554aa0a426b7420e75469ae8a1ec3c8553eee4f68 |
|
MD5 | 381301a842e25fa77a596605db3dc046 |
|
BLAKE2b-256 | ed0ae7bd7ec142b0a38b204441f2d1da57d64cdeedf3d6b68a4fe980c6286adb |