Vendor Crawlers

This module contains all web crawlers of pcapkit, which automatically generate the pcapkit.const module’s constant enumerations.

The crawlers need the vendor extra, pip install "pypcapkit[vendor]".

Changed in version 1.5.0: Without requests or beautifulsoup4, which the crawlers import at module scope, importing this package succeeds and imports no crawler. Reading any name in its __all__, or Vendor, then raises ModuleNotFoundError naming the missing packages and the extra to install (#1850). Importing a crawler module directly, such as pcapkit.vendor.reg, still raises the missing package’s own ModuleNotFoundError. Before, importing this package raised it.

Crawler Implementations

Protocol Numbers

Internet Layer

Transport Layer

Application Layer

Miscellaneous

Command Line Tool

pcapkit.vendor.__main__ is a command line tool for updating constant enumerations.

usage: pcapkit-vendor [-h] [-V] ...

update constant enumerations

positional arguments:
  target         update targets, supply none to update all

options:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

Changed in version 1.5.0: Without requests or beautifulsoup4 from the vendor extra, pcapkit-vendor writes one line to standard error naming the missing packages and the extra to install, and exits with status 1 before any target runs (#1850). It used to fail with a traceback. --help and --version work without them.