contrib: Add asmap-tool

Co-authored-by: Pieter Wuille <pieter@wuille.net>
This commit is contained in:
Fabian Jahr
2023-11-01 20:05:18 +01:00
parent 8da62a1041
commit 6abe772a17
4 changed files with 176 additions and 3 deletions

View File

@@ -9,11 +9,14 @@
import argparse
import collections
import ipaddress
from pathlib import Path
import re
import sys
from typing import Union
from asmap import ASMap, net_to_prefix
asmap_dir = Path(__file__).parent.parent / "asmap"
sys.path.append(str(asmap_dir))
from asmap import ASMap, net_to_prefix # noqa: E402
NSEEDS=512