Skip to content
Extraits de code Groupes Projets
Valider adfb92c2 rédigé par François De Keersmaeker's avatar François De Keersmaeker
Parcourir les fichiers

Python package meta config

parent 146e61ea
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #60894 annulé
......@@ -3,13 +3,16 @@ import argparse
from .pcap_anonymize import anonymize_pcap
### MAIN FUNCTION ###
def main() -> None:
"""
Main function for the CLI.
"""
parser = argparse.ArgumentParser(description="Anonymize a PCAP traffic capture.")
parser.add_argument("input", type=os.PathLike, help="Path to the input PCAP file.")
parser.add_argument("-o", "--output", type=os.PathLike, help="Path to the output PCAP file.")
parser.add_argument("input", type=str, help="Path to the input PCAP file.")
parser.add_argument("-o", "--output", type=str, help="Path to the output PCAP file.")
args = parser.parse_args()
anonymize_pcap(args.input, args.output)
### ENTRY POINT ###
if __name__ == "__main__":
main()
......@@ -52,3 +52,7 @@ dependencies = [
[project.urls]
"Homepage" = "https://forge.uclouvain.be/smart-home-network-security/pcap-anonymize"
"Source" = "https://forge.uclouvain.be/smart-home-network-security/pcap-anonymize"
[project.scripts]
pcap-anonymize = "pcap_anonymize:__main__.main"
pcap_anonymize = "pcap_anonymize:__main__.main"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter