Skip to content

Commit

Permalink
Merge pull request #35 from kpetremann/scapy2.6.0
Browse files Browse the repository at this point in the history
chore: update to scapy 2.6.0 and pin dependencies
  • Loading branch information
kpetremann authored Dec 17, 2024
2 parents 38b9e52 + 4b5954b commit e2ae432
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 16 deletions.
1 change: 1 addition & 0 deletions netprobify/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common functions."""

import re

from socket import getaddrinfo, AF_INET, AF_INET6, IPPROTO_TCP
Expand Down
1 change: 1 addition & 0 deletions netprobify/external.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for all external functions."""

import math


Expand Down
1 change: 1 addition & 0 deletions netprobify/protocol/common/protocols.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Protocol related functions."""

from ipaddress import ip_network

from scapy.all import ICMP, IP, ICMPv6EchoRequest, IPv6
Expand Down
1 change: 1 addition & 0 deletions netprobify/protocol/icmp_ping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for ICMP probing."""

import logging
from random import randint

Expand Down
1 change: 1 addition & 0 deletions netprobify/protocol/iperf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for Iperf bandwidth test."""

import logging
import subprocess

Expand Down
1 change: 1 addition & 0 deletions netprobify/protocol/tcpsyn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for TCP syn probing."""

import logging

from scapy.all import TCP, L3RawSocket, RandString, Raw, conf, send, sr
Expand Down
1 change: 1 addition & 0 deletions netprobify/protocol/udp_unreachable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for UDP probing."""

import logging

from scapy.all import UDP, L3RawSocket, RandString, Raw, UDPerror, conf, sr
Expand Down
11 changes: 11 additions & 0 deletions requirements/netprobify.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ipam-client==0.6.2
Flask
flask-httpauth
prometheus_client
pykwalify
PyYAML
requests
setuptools
scapy==2.6.0
tornado
waitress
73 changes: 63 additions & 10 deletions requirements/netprobify.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,64 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements/netprobify.in -o requirements/netprobify.txt
blinker==1.8.2
# via flask
certifi==2024.8.30
# via requests
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via flask
docopt==0.6.2
# via pykwalify
flask==3.0.3
# via
# -r requirements/netprobify.in
# flask-httpauth
flask-httpauth==4.8.0
# via -r requirements/netprobify.in
idna==3.10
# via requests
ipaddress==1.0.23
# via ipam-client
ipam-client==0.6.2
Flask
flask-httpauth
prometheus_client
pykwalify
PyYAML
requests
setuptools
scapy==2.5.0
tornado
waitress
# via -r requirements/netprobify.in
itsdangerous==2.2.0
# via flask
jinja2==3.1.4
# via flask
markupsafe==2.1.5
# via
# jinja2
# werkzeug
mysql-connector-python==8.0.33
# via ipam-client
prometheus-client==0.21.0
# via -r requirements/netprobify.in
protobuf==3.20.3
# via mysql-connector-python
pykwalify==1.8.0
# via -r requirements/netprobify.in
python-dateutil==2.9.0.post0
# via pykwalify
pyyaml==6.0.2
# via -r requirements/netprobify.in
requests==2.32.3
# via -r requirements/netprobify.in
ruamel-yaml==0.18.6
# via pykwalify
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
scapy==2.6.0
# via -r requirements/netprobify.in
setuptools==75.1.0
# via -r requirements/netprobify.in
six==1.16.0
# via python-dateutil
tornado==6.4.1
# via -r requirements/netprobify.in
urllib3==2.2.3
# via requests
waitress==3.0.0
# via -r requirements/netprobify.in
werkzeug==3.0.4
# via flask
6 changes: 6 additions & 0 deletions requirements/tests.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage
pykwalify
pylama
pytest
requests-mock
setuptools
60 changes: 54 additions & 6 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
coverage
pykwalify
pylama
pytest
requests-mock
setuptools
# This file was autogenerated by uv via the following command:
# uv pip compile requirements/tests.in -o requirements/tests.txt
certifi==2024.8.30
# via requests
charset-normalizer==3.3.2
# via requests
coverage==7.6.1
# via -r requirements/tests.in
docopt==0.6.2
# via pykwalify
exceptiongroup==1.2.2
# via pytest
idna==3.10
# via requests
iniconfig==2.0.0
# via pytest
mccabe==0.7.0
# via pylama
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pycodestyle==2.12.1
# via pylama
pydocstyle==6.3.0
# via pylama
pyflakes==3.2.0
# via pylama
pykwalify==1.8.0
# via -r requirements/tests.in
pylama==8.4.1
# via -r requirements/tests.in
pytest==8.3.3
# via -r requirements/tests.in
python-dateutil==2.9.0.post0
# via pykwalify
requests==2.32.3
# via requests-mock
requests-mock==1.12.1
# via -r requirements/tests.in
ruamel-yaml==0.18.6
# via pykwalify
ruamel-yaml-clib==0.2.8
# via ruamel-yaml
setuptools==75.1.0
# via -r requirements/tests.in
six==1.16.0
# via python-dateutil
snowballstemmer==2.2.0
# via pydocstyle
tomli==2.0.1
# via pytest
urllib3==2.2.3
# via requests

0 comments on commit e2ae432

Please sign in to comment.