Cypcap

Latest version: v0.6.0

Safety actively analyzes 622838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.6.0

-------------------
Added
^^^^^
* ``Dumper.flush``.

Changed
^^^^^^^
* ``ts_utcdatetime`` is now a tz aware datetime. ``ts_datetime`` is still naive as getting the local
timezone and its availability is still problematic in Python's standard library.

Fixed
^^^^^
* Don't crash if Npcap is not installed or fails to load.

0.5.0

-------------------
Added
^^^^^
* Python 3.12 wheels.

Changed
^^^^^^^
* Now using Cython 3.

0.4.2

-------------------

Added
^^^^^
* Python 3.11 wheels.

Fixed
^^^^^
* A `const` compiler warning.

0.4.1

-------------------

Fixed
^^^^^
* ``dumps(..., cypcap.BpfDumpType.C_ARRAY)`` outputted wrong syntax.

0.4.0

-------------------

Added
^^^^^
* ``BpfProgram`` now has ``__getitem__``, ``__len__``, ``__init__``, ``__iter__``, and can be turned
into a list.
* ``dumps`` can now dump the formats that ``debug_dump`` used to output and return them as a string
instead of printing to stdout.
* Platform specific functions ``Pcap.set_protocol_linux``, ``Pcap.get_selectable_fd``,
``Pcap.get_required_select_timeout``, and ``Pcap.getevent``.
* ``cypcap.bpf`` module with constants and utility functions for manually written BPF.

Changed
^^^^^^^
* Classes which should not be instantiated from Python directly should now raise
(``Pcap`` & ``Dumper``).
* ``cypcap`` is now a package rather than a single file module, API remains the same.

Removed
^^^^^^^
* ``debug_dump`` is merged into ``dumps`` by a new type parameter.

Fixed
^^^^^
* ``set_config``, ``set_pre_config`` had wrong typing. (Although those are not exported to an
interface file yet).

0.3.0

-------------------

Changed
^^^^^^^
* The ``optimize`` parameter to ``Pcap.compile`` now defaults to ``True``.
* Can now call ``Pcap.setfilter`` with a ``str`` which will be compiled by calling ``Pcap.compile``.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.