tls-parser
Small library to parse TLS records.
What it is and what it does
tls_parser is a lightweight library for parsing TLS records from raw binary data. It extracts and interprets the structure of TLS protocol messages, making it useful for security tools, protocol analysis, and SSL/TLS inspection workflows. The package has no runtime dependencies, keeping it minimal and easy to integrate.
The library is used by SSLyze, a popular SSL/TLS scanning tool, indicating it is battle-tested for real-world TLS analysis. It supports current Python versions and has been maintained since 2017, though recent development activity has slowed—the last release was 2025-04-06 and the repository shows a last commit of 2025-10-19.
Use it for:
- Analyze TLS handshakes and protocol messages in security testing frameworks
- Build SSL/TLS inspection tools that need to parse raw protocol data
- Debug TLS communication issues by examining record structure and content
- Integrate TLS parsing into network monitoring or intrusion detection systems
- Validate TLS record format compliance in protocol implementations
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses TLS records from binary data, extracting protocol-level details for TLS/SSL inspection and analysis.
Yes, if you need to parse TLS records in Python. The package is stable, has no dependencies, and is proven in production use. However, verify the license terms in the repository first, and check whether it supports the TLS versions your use case requires. The aging maintenance status means security updates may be slow; monitor the repository for any critical fixes.
Install
tls-parser on PyPI
pip
pip install tls-parseruv
uv add tls-parserpoetry
poetry add tls-parserInstalling tls-parser
Before you install
Low install friction with no runtime dependencies. Maintenance status is aging—last commit was 2025-10-19, and no release has been made in 495 days, though the repository remains active and not archived.
License in practice
License status is unclear; no SPDX identifier or license text is declared in the package metadata. Verify the actual license terms in the repository before use in proprietary or copyleft-sensitive contexts.
Quickstart
pip install tls-parser
from tls_parser.parser import parse_tls_record
record_bytes = b'...' # Raw TLS record data
parsed = parse_tls_record(record_bytes)
Requires Python 3.8 or later.
Verify before relying
- Actual license terms and conditions (not declared in package metadata)
- Whether the package handles all modern TLS versions or only specific versions
- Performance characteristics when parsing large or malformed TLS records
- Specific TLS record types and protocol versions supported by version 2.0.2
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 495 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 143,834/month — #11,166 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tls_parser-2.0.2-py3-none-any.whl
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
sslyzeSSLyze is a fast SSL/TLS scanning tool and…
agpl · top 15,000 on PyPI
nasslnassl is an OpenSSL wrapper for Python that…
agpl · top 15,000 on PyPI
pip-system-certsAutomatically configures Python to use the…
permissive · top 5,000 on PyPI
textfsmTextFSM parses semi-structured text (like CLI…
permissive · top 5,000 on PyPI
python-certifi-win32Patches certifi at runtime to include…
permissive · top 15,000 on PyPI
dpktdpkt parses and creates TCP/IP protocol packets…
permissive · top 5,000 on PyPI
wincertstoreAccesses Windows system certificate stores (CA…
permissive · top 15,000 on PyPI
access-parserParses Microsoft Access database files (.mdb…
permissive · top 15,000 on PyPI
pemParses and splits PEM files (Base64-encoded DER…
permissive · top 5,000 on PyPI