Practical, executable script labs — DedSec Project
Practical, executable script labs These self-contained Python 3.10+ examples use only the standard library. Each has assertions and an independent entrypoint. They do not install packages…
These self-contained Python 3.10+ examples use only the standard library. Each has assertions and an independent entrypoint. They do not install packages or make network requests.
- Normalize search text —
01_normalize_search.py - Validate JSON settings —
02_validate_config.py - CSV summary with invalid rows —
03_csv_statistics.py - Filter JSON Lines —
04_jsonl_filter.py - SHA-256 for integrity —
05_sha256_memory.py - Ensure paths stay in a workspace —
06_path_containment.py - Compare text versions —
07_diff_text.py - Build a Markdown outline —
08_markdown_headings.py - Parse structured log events —
09_log_events.py - SQLite transactional tasks —
10_sqlite_tasks.py - Retry a simulated transient operation —
11_bounded_retry.py - Cache a pure function —
12_memoization.py - Breadth-first graph traversal —
13_queue_bfs.py - Process iterables in batches —
14_batched_generator.py - Merge already-sorted iterables —
15_merge_sorted.py - Local checksum manifest —
16_backup_manifest.py - Inspect ZIP without extracting —
17_zip_preview.py - Simulate a rate limiter —
18_token_bucket.py - Design structured API errors —
19_api_errors.py - Merge nested dictionaries with copying —
20_deep_merge.py - UTF-8 encoding round trip —
21_utf8_roundtrip.py - Sliding window with a deque —
22_sliding_window.py - Topological ordering with cycle detection —
23_topological_sort.py - Parse HTTP status line safely —
24_simple_http_parse.py