Skip to main content

candump and write a pcap using scapy (and python-can)

NOTE: you probably don't need this tool. If you just want to use wireshark to open a candump log file you can do that directly inside wireshark in the newest versions.

 > python -m pip install pycanpcap
 > python -m pycanpcap.log -i cantact -c 0 -w can.pcap
WARNING: No libpcap provider available ! pcap won't be used
WARNING: Wireshark is installed, but cannot read manuf !
(000.008538) PythonCANSocket_cantact_0 007#0000b5f8
(000.008700) PythonCANSocket_cantact_0 01b#0000b5f8
(000.008961) PythonCANSocket_cantact_0 055#01025afc328e5b3e
(000.009318) PythonCANSocket_cantact_0 00f#f80fb5f831
(000.018648) PythonCANSocket_cantact_0 007#0000b6f8
(000.018834) PythonCANSocket_cantact_0 01b#0000b6f8
(000.019378) PythonCANSocket_cantact_0 00f#f90fb6f85a
^C
  1. ignore the warnings on windows
  2. Ctrl-C when ready
  3. open can.pcap in wireshark
  4. grep the output as usual

Metadata

Release files for pycanpcap 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycanpcap 0.3
File Size Uploaded
pycanpcap-0.3.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycanpcap 0.3
File Interpreter ABI Platform
pycanpcap-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / pycanpcap-0.3.tar.gz

Download URL pycanpcap-0.3.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d8045513df80b1e39a4158cba94d3c21f6e1012b023fcfbe750bbc21603705
BLAKE2b-256 checksum
How to use checksums
180ebbafe095fb70c760f60b0aee6998fa7174eae0ab27f8fd43f73a6dfc7dd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2025.

Transparency log

Release files / pycanpcap-0.3-py3-none-any.whl

Download URL pycanpcap-0.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0e17ee28b9ed897571627f56a9615fe18c76bf6c8f361d18eaeb44ca9cc9de2
BLAKE2b-256 checksum
How to use checksums
ded8684d5cd0db00f902cf9e9bb2473d23296b2e9edd7fb258ef858e45ec90e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page