A cross-platform file checksum utility with DOS compatibility and advanced verification features
Project description
Dazzlesum
Dazzlesum is a handy checksum tool designed for data integrity verification across different machines and operating systems. It generates folder-specific checksum files (.shasum) that enable verification of file collections, with special attention to DOS shell compatibility and cross-platform consistency.
Features
- Multiple Hash Algorithms: SHA256 (default), SHA512, SHA1, MD5 with consistent cross-platform behavior
- Cross-Platform Support: Seamlessly handle checksums between Windows, macOS, Linux, and BSD
- DOS Compatibility: ASCII-only output that works perfectly in Windows Command Prompt
- Native Tool Integration: Uses system tools (certutil, shasum, fsum) with intelligent Python fallback
- Flexible Generation Modes: Individual
.shasumfiles per directory, monolithic files, or both simultaneously - Advanced Verification: Problems-only output shows only failed, missing, or extra files by default
- Management Operations: Backup, remove, restore, and list
.shasumfiles with comprehensive metadata - Enhanced Logging: 11-level verbosity system (-6 to +4) with granular output control and smart filtering
- Advanced Exit Codes: 7 different exit codes based on aggregate verification results for precise automation
- Squelch System: Filter specific message types (SUCCESS, NO_SHASUM) for customized output
- Context-Aware Operations: Auto-detects whether to create or verify based on directory contents
- Shadow Directory Support: Keep source directories clean by storing checksum files in parallel shadow structure
Use Cases
🔧 Data Integrity Verification
Maintain consistent checksum verification across different operating systems. Generate checksums on your Windows machine and verify them on your Linux environment without losing any data integrity checks.
⚙️ System Administration
Simplify management of complex directory structures and checksum file collections. Document and reproduce checksum configurations for backup or disaster recovery scenarios.
📁 Content Organization
Create organizational structures using checksum verification, then export and share these verification systems with others. Perfect for media libraries (similar to SFVs), project references, or any scenario where data integrity needs to be maintained across multiple locations.
🌐 Network Path Management
Automatically handle different representations of network paths across systems while maintaining all checksum metadata and verification capabilities.
Installation
Prerequisites
- Python 3.7 or higher
- Operating System: Windows, macOS, Linux, BSD
- Dependencies: None (pure Python standard library)
- Optional:
unctoolspackage for enhanced Windows UNC path support
Install from PyPI
pip install dazzlesum
Manual Installation
git clone https://github.com/DazzleTools/dazzlesum.git
cd dazzlesum
pip install -e .
On Windows:
pip install -e ".[windows]"
Other potential dependencies down the line:
pip install -e ".[dev,test,docs]"
Standalone (no install)
dazzlesum.py is a single self-contained file with no dependencies beyond the Python standard library. Copy it anywhere and run it directly:
python dazzlesum.py --help
Quick Start
Generate checksums (using new subcommand syntax)
# Generate checksums for current directory
dazzlesum create
# Generate checksums recursively
dazzlesum create -r
# Create monolithic checksum file
dazzlesum create -r --mode monolithic
# Generate with verbose output (11 levels available: -6 to +4)
dazzlesum create -r -vv
# Silent mode for automation
dazzlesum verify -r -qqqqqq
# Problems-only with custom squelch filters
dazzlesum verify -r --squelch=SUCCESS,NO_SHASUM
# Keep source directories clean with shadow directory
dazzlesum create -r --shadow-dir ./checksums
# Generate monolithic checksum in shadow directory
dazzlesum create -r --mode monolithic --shadow-dir ./checksums
Verify checksums
# Verify existing checksums
dazzlesum verify -r
# Verify with detailed output
dazzlesum verify -r -v
# Show all verification results
dazzlesum verify -r --show-all-verifications
# Verify checksums stored in shadow directory
dazzlesum verify -r --shadow-dir ./checksums
Update checksums
# Update existing checksums for changed files
dazzlesum update -r
# Update only specific file types
dazzlesum update -r --include "*.txt,*.doc"
Manage checksum files
# Backup all .shasum files
dazzlesum manage -r backup --backup-dir ./checksum-backup
# List all .shasum files with details
dazzlesum manage -r list
# Remove all .shasum files (with confirmation)
dazzlesum manage -r remove
# Restore from backup
dazzlesum manage -r restore --backup-dir ./checksum-backup
Get help
# General help
dazzlesum --help
# Help for specific commands
dazzlesum create --help
dazzlesum verify --help
# Detailed help topics
dazzlesum mode # Help for --mode parameter
dazzlesum examples # Comprehensive usage examples
dazzlesum shadow # Shadow directory help
Documentation
- Installation Guide - Detailed installation instructions for all platforms
- Usage Examples - Practical examples for common use cases
- Shadow Directory Guide - Complete guide to shadow directory operations
- Command Reference - Complete command-line reference
- File Formats - Details about
.shasumfile formats and compatibility
Platform Support
Windows
- Command Prompt: Full ASCII compatibility
- PowerShell: Native support
- Tools: Uses
certutilorfsumwhen available - Paths: Handles UNC paths with optional
unctoolspackage
macOS/Linux
- Terminal: Full compatibility
- Tools: Uses
shasumwhen available - Paths: Native Unix path handling
- Performance: Optimized for large file trees
Cross-Platform Features
- Path Normalization: Automatic path separator handling
- Line Ending Support: Configurable line ending strategies
- Symlink Safety: Intelligent symlink and junction detection
- Encoding: UTF-8 with fallback handling
Requirements
- Python: 3.7 or higher
- Operating System: Windows, macOS, Linux, BSD
- Dependencies: None (pure Python standard library)
- Optional:
unctoolspackage for enhanced Windows UNC path support
Future Possible Features
- Incremental Updates: Smart update detection
- Compression: Archive support for checksum collections
- Remote Storage: Cloud backup integration? (maybe)
Contributing
Contributions are welcome! Issues, suggestions, and bug reports are all appreciated. Please open an issue if you find something that can be improved. Or:
- Fork this repository and clone a fork.
- Make changes on a new branch (e.g.,
feature/new_thing). - Submit a pull request describing your changes.
Please see CONTRIBUTING.md for detailed guidelines.
Like the project?
License
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
Changelog
See CHANGELOG.md for version history and release notes.
Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Check the docs/ folder for additional guides
Made with ️☕. Designed for reliable, consistent data integrity verification across all platforms.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dazzlesum-1.4.4.tar.gz.
File metadata
- Download URL: dazzlesum-1.4.4.tar.gz
- Upload date:
- Size: 87.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae573852603834f58f19f2d5f4f4fb7dcb7887a361db1be7cc4cb5078c6d9e97
|
|
| MD5 |
ebebf23594106e8ea380ab9839f1a8e3
|
|
| BLAKE2b-256 |
2379ce6080a80de6eb86542e2a1a34a0698489e4d0d20a4a6fef0741303b9dc6
|
Provenance
The following attestation bundles were made for dazzlesum-1.4.4.tar.gz:
Publisher:
publish.yml on DazzleTools/dazzlesum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dazzlesum-1.4.4.tar.gz -
Subject digest:
ae573852603834f58f19f2d5f4f4fb7dcb7887a361db1be7cc4cb5078c6d9e97 - Sigstore transparency entry: 2191385522
- Sigstore integration time:
-
Permalink:
DazzleTools/dazzlesum@214cea7644d8541f95555e414a49b9fdff62c936 -
Branch / Tag:
refs/tags/v1.4.4 - Owner: https://github.com/DazzleTools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@214cea7644d8541f95555e414a49b9fdff62c936 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dazzlesum-1.4.4-py3-none-any.whl.
File metadata
- Download URL: dazzlesum-1.4.4-py3-none-any.whl
- Upload date:
- Size: 65.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23525b8c89aed265f8d4b8b47897ad48b6110d30535259c9e7ee28ed7e37d5e0
|
|
| MD5 |
0354f9002936bceca9451046bf8ff5a2
|
|
| BLAKE2b-256 |
bb9469fc6b7aefba995a0d6ff8b3c1df72e3dd81266a6400b6399a44b720004d
|
Provenance
The following attestation bundles were made for dazzlesum-1.4.4-py3-none-any.whl:
Publisher:
publish.yml on DazzleTools/dazzlesum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dazzlesum-1.4.4-py3-none-any.whl -
Subject digest:
23525b8c89aed265f8d4b8b47897ad48b6110d30535259c9e7ee28ed7e37d5e0 - Sigstore transparency entry: 2191385559
- Sigstore integration time:
-
Permalink:
DazzleTools/dazzlesum@214cea7644d8541f95555e414a49b9fdff62c936 -
Branch / Tag:
refs/tags/v1.4.4 - Owner: https://github.com/DazzleTools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@214cea7644d8541f95555e414a49b9fdff62c936 -
Trigger Event:
release
-
Statement type: