Uspector — SSL/TLS Security & Web Diagnostics
Uspector is a Python library and command-line tool for SSL/TLS inspection, certificate validation, and passive web security diagnostics.
It helps developers and security professionals inspect TLS configurations, review certificate details, and identify common web security and SEO configuration issues.
Installation
Install from PyPI:
pip install uspector
Upgrade to the latest version:
pip install --upgrade uspector
Requirements: Python 3.10 or later.
Command-Line Interface
Uspector provides separate commands for TLS inspection and web diagnostics.
TLS and certificate inspection
Scan a hostname:
uspector tls example.com
Use this to inspect TLS connectivity, certificate properties, hostname validation, certificate expiration, supported TLS versions, cipher suites, and other available connection diagnostics.
Web security and SEO diagnostics
Scan a website:
uspector web example.com
Specify a complete URL when needed:
uspector web https://example.com
The web scanner follows HTTP redirects and reports information about the final URL, HTTP status, resolved IP addresses, security headers, cookies, and selected response-body indicators.
It also performs basic HTML-based SEO checks when the response contains supported HTML content.
Python API
Uspector exposes TLSScanner and WebScanner for use in Python applications.
TLS scanning
from uspector import TLSScanner
scanner = TLSScanner()
result = scanner.scan("example.com")
print(result)
Web scanning
from uspector import WebScanner
scanner = WebScanner()
result = scanner.scan("https://example.com")
print(result)
Both scanners return structured results that can be processed by other Python code, incorporated into diagnostic workflows, or serialized for reporting.
Features
SSL/TLS inspection
- TLS connection testing and diagnostics
- Certificate trust and hostname validation
- Certificate expiration checks
- TLS version and cipher suite reporting
- DNS resolution and IP address reporting
- Structured scan results and security findings
Web security diagnostics
- HTTP response status and redirect destination
- HTTP security-header inspection
- Cookie security-attribute checks, including
Secure,HttpOnly, andSameSite - DNS resolution and resolved IP reporting
- Detection of selected suspicious or error-related response-body indicators
SEO diagnostics
- HTML title presence and length checks
- Meta description presence and length checks
- Canonical URL detection
- Meta robots and
X-Robots-Taginspection - H1 heading count
- HTML language attribute detection
- Image alternative-text checks
- Open Graph title and description presence
- Detection of
noindexdirectives
SEO checks are basic diagnostics, not a complete SEO audit. Findings such as title length or missing image alternative text should be interpreted in context.
Understanding the Results
Uspector returns structured diagnostic information rather than a simple pass/fail result.
Depending on the scanner, results can include:
| Result | Description |
|---|---|
| Target | Hostname or URL being scanned |
| Status code | HTTP response status, for web scans |
| Final URL | Destination after redirects |
| Resolved IPs | IP addresses resolved during scanning |
| Security headers | Observed HTTP security-header values |
| Findings | Detected configuration concerns or indicators |
| SEO | HTML and indexing-related diagnostics |
| Error | Error information when a scan cannot complete |
A reported missing security header is an observation, not proof that a website is vulnerable. Findings should be assessed according to the site's architecture, intended behavior, and security requirements.
Requirements
- Python 3.10 or later
- Internet connectivity to the target host
- Dependencies installed automatically by pip
Responsible Use
Only scan systems and websites you own or are authorized to assess. TLS and web diagnostic results are informational and should be validated before making security decisions.
Project Structure
uspector-net/
├── img/ # Logo and media assets
├── src/
│ └── uspector/ # Python package source code
├── tests/ # Automated tests
├── LICENSE # MIT License
├── README.md # Project documentation
├── SECURITY.md # Security policy
└── pyproject.toml # Package configuration and dependencies
License
Uspector is licensed under the MIT License. See LICENSE for details.
© 2026 Menahem Levinski
🔝 Back to top
Metadata
Release files for uspector 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uspector-1.0.5.tar.gz | 5.1 MB | Without provenance | Details for uspector-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uspector-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for uspector-1.0.5-py3-none-any.whl |
Total release size: 5.1 MB
Release files / uspector-1.0.5.tar.gz
| Download URL | uspector-1.0.5.tar.gz |
|---|---|
| Size | 5.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
facade51fccf8848c046c7efb1063fb8bb7dd2fa9cf9db1512cec446db289267
|
|
BLAKE2b-256 checksum How to use checksums |
59ca9e33146cb350c53ceacad463d0285c0911f0d1649a753eaf988fe700093d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / uspector-1.0.5-py3-none-any.whl
| Download URL | uspector-1.0.5-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
077ab5bfb6d24b306fe63266251bfa52dfdc91474c2cbe6b0475884472f190af
|
|
BLAKE2b-256 checksum How to use checksums |
c46966ef15164b8f37aa9b7832900519b14076da2b54e9bde7b5463ba759cdf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for uspector 1.0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.