Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
findfmt Documentation
Logo
findfmt Documentation

Guide d'utilisation

  • User Guides
    • Installation
      • 1. Installation Methods
        • 1.1. Standalone Execution with uvx (Recommended)
        • 1.2. Isolated User Installation with uv
        • 1.3. Isolated User Installation with pipx
        • 1.4. Project Dependency with uv or pip
        • 1.5. Container Image via GitHub Container Registry
        • 1.6. Source Installation
      • 2. Platform Notes
        • 2.1. Linux
        • 2.2. macOS
        • 2.3. Windows & Windows Subsystem for Linux (WSL)
        • 2.4. Docker & Container Environments
      • 3. Verification & Diagnostics
    • Upgrading to findfmt 1.1
      • 1. Summary of Changes
      • 2. Python 3.10 Is No Longer Supported
      • 3. Human-Readable Sizes Use IEC Binary Units
      • 4. SortKey and OutputFormat Render as Their Value
      • 5. Wrapper Commands Exit Non-Zero on Errors
      • 6. New: --exit-status for Scripts
      • 7. Platform Support
    • Quickstart
      • 1. Installation & Direct Execution
        • 1.1. Standalone Execution with uvx
        • 1.2. Global User Tool Installation
        • 1.3. Project Dependency
      • 2. Basic File Discovery & Tag Matching
        • 2.1. Single Tag Matching
        • 2.2. Multiple Tags (OR Condition)
        • 2.3. Conjunction Matching (AND Condition)
        • 2.4. Tag Exclusion
        • 2.5. Listing Detected Tags
      • 3. Shebang Detection & Interpreters
      • 4. MIME Tag Classification & Prefix Filtering
        • 4.1. Offline Mode
      • 5. Wildcard, Pattern, and Traversal Controls
        • 5.1. Glob Patterns and Alternations
        • 5.2. Directory Inheritance & Filtering
        • 5.3. Maximum Traversal Depth
        • 5.4. Ignore Rules & External Ignore Files
      • 6. File Metadata & Attribute Inspection
        • 6.1. Clickable Terminal Hyperlinks
      • 7. Directory Disk Usage & Tree View
      • 8. Multi-Format Serialization Suite
        • 8.1. Line & Streaming Formats
        • 8.2. Structured Data Documents
        • 8.3. Delimited Tabular Formats
        • 8.4. Visual & Documentation Tables
        • 8.5. Hierarchical Documents
      • 9. Pipelining & Automation
        • 9.1. Pipe-Safe Execution with xargs
        • 9.2. JSON Filtering with jq
        • 9.3. Match Summaries
      • 10. Programmatic Python Library Usage
        • 10.1. Basic Discovery & FileInfo Inspection
        • 10.2. Output Formatting with Built-In Serializers
      • 11. Command Wrappers Reference
    • Configuration
      • 1. Configuration Resolution Hierarchy
      • 2. Configuration Inspection
      • 3. Configuration File Formats
        • 3.1. Standalone config.toml
        • 3.2. Project Configuration (.findfmt.toml and pyproject.toml)
        • 3.3. Environment Variables (FINDFMT_<KEY>)
      • 4. Configuration Schema Reference
      • 5. Troubleshooting & Diagnostics
    • CI/CD Integration
      • 1. CI/CD Design Principles with findfmt
      • 2. GitHub Actions Workflows
        • 2.1. Dynamic Shell Script Linting with ShellCheck
        • 2.2. Multi-Format Static Analysis Pipeline
        • 2.3. Generating Repository Inventory Artifacts
      • 3. GitLab CI Pipelines
        • 3.1. Using the uv Python Image
        • 3.2. Using the Dedicated findfmt Container Image
      • 4. Pre-commit Hooks Integration
        • 4.1. Local Repository Hook
        • 4.2. File Inventory Check
      • 5. Docker & Containerized CI Workflows
    • Translation and Localization Plan (i18n & l10n)
      • 1. Core Architecture
      • 2. Implementation Phasing
      • 3. Infrastructure & Architecture Issues
      • 4. Tier 1 Tracking Matrix (≥ 120M Speakers)
      • 5. Tier 2 Tracking Matrix (10M – 120M Speakers)
      • 6. Language Family Catalog & Hierarchy
      • 7. Developer Implementation Workflow
        • 7.1. Step 1: Initialize or Update Message Catalog
        • 7.2. Step 2: Configure the Plural-Forms Header
        • 7.3. Step 3: Translate Strings & Validate Format Placeholders
        • 7.4. Step 4: Compile Catalogs and Test Packaging
        • 7.5. Step 5: Add Unit & Integration Tests
        • 7.6. Step 6: Sphinx Documentation Localization
        • 7.7. Step 7: Quality Verification Gates
    • Gettext AI Translation Benchmark and Tool Evaluation
      • 1. Executive Summary and Primary Recommendation
        • 1.1. Primary Recommendation
      • 2. Candidate Open-Source Tool Comparison
        • 2.1. Architectural Evaluation Matrix
        • 2.2. Key Findings per Candidate Tool
      • 3. Baseline Locale Quality and Placeholder Benchmark (de, es, fr, ja)
        • 3.1. Source Catalog Profile (src/findfmt/locale/findfmt.pot)
        • 3.2. Baseline Locale Validation and Masking Pass Rates
        • 3.3. Concrete Placeholder Corruption Examples Prevented by Masking
      • 4. Backend Provider Flexibility, Token Usage, Latency, and Cost
      • 5. PO Syntax, Header, Charset, and Fuzzy Flag Preservation
      • 6. Failure Modes, Rate Limiting, and Partial Batch Resume
      • 7. Domain Prompt Engineering, Technical Glossary, and Pluralization Rules
        • 7.1. Authoritative Technical Terminology Glossary (CLI_GLOSSARY)
        • 7.2. Domain Context System Prompt (build_system_prompt)
        • 7.3. Multi-Form ngettext Pluralization Prompt Rules (build_plural_prompt)
        • 7.4. Temperature & Prompt Token Overhead Evaluation
      • 8. Running the Benchmark Utility
    • Managed Localization Platforms vs. Local CI Automation (ADR)
      • 1. Platform Feature Evaluation
        • 1.1. Key Technical Findings
      • 2. Cost, Privacy, and Open-Source Licensing Comparison
      • 3. Contributor Auditing & Community Review Workflows
        • 3.1. Managed Cloud Platform Workflow
        • 3.2. Local Git + CI Auditing Workflow (findfmt Standard)
      • 4. Architecture Decision Record (ADR): Localization Pipeline
        • 4.1. Context
        • 4.2. Decision
        • 4.3. Rationale
        • 4.4. Future Re-Evaluation Trigger (Optional Hybrid Overlay)
      • 5. End-to-End AI Localization Runbook
        • 5.1. Configuring AI Backends
        • 5.2. Step-by-Step Catalog Translation Workflow
        • 5.3. Runtime Locale Conventions & Test Registration

Référence de la CLI

  • CLI Reference
    • 1. Synopsis
    • 2. Description
    • 3. Options
      • 3.1. Tag Filtering
      • 3.2. Traversal Controls
      • 3.3. Output Controls
      • 3.4. Information & Diagnostics
    • 4. Command Wrappers & Aliases
    • 5. POSIX Option Terminator (–)
    • 6. Environment
    • 7. Exit Status
    • 8. Examples
      • 8.1. Safe Command Execution with xargs
      • 8.2. JSON Filtering with jq
      • 8.3. Delimited Data Processing with csvkit
      • 8.4. Sphinx Documentation Inclusion
      • 8.5. HTML Documentation Export with Templating
      • 8.6. Terminal Navigation with Clickable Hyperlinks
      • 8.7. Structured Document and Streaming Exports
    • 9. See Also

Documentation de l'API

  • API Reference
    • Package Modules
      • 1. Core Data Models (findfmt.models)
        • FileInfo
        • SortKey
        • TraversalConfig
      • 2. File Classifier (findfmt.classifier)
        • classify_file()
        • compute_relative_prefix()
        • extract_shebang()
        • extract_shebang_from_buffer()
        • get_known_tags()
      • 3. Filesystem Metadata (findfmt.metadata)
        • clear_metadata_cache()
        • extract_metadata()
        • format_metadata_parts()
        • format_permissions()
        • resolve_group_name()
        • resolve_user_name()
      • 4. Size Formatting & Accumulation (findfmt.sizes)
        • calculate_accumulated_sizes()
        • format_size()
        • format_size_binary()
        • format_size_bytes()
        • format_size_si()
      • 5. Traversal Subsystem (findfmt.traversal)
        • InvalidSortCriteriaError
        • PatternMatcher
        • TraversalError
        • create_pattern_matcher()
        • find_files()
        • is_path_ignored()
        • load_custom_gitignore_spec()
        • load_git_exclude_spec()
        • load_gitignore_spec()
        • load_global_gitignore_spec()
        • matches_filter()
        • natural_sort_key()
        • resolve_sort_key()
        • should_skip_dir()
        • sort_directory_entries()
        • traverse_directory()
      • 6. Input Parsers (findfmt.parsers)
        • ParsedEntry
        • ParserError
        • classify_file_offline()
        • detect_input_format()
        • ingest_from_file()
        • parse_flat_listing()
        • parse_symlink_target()
        • parse_tab_outline()
      • 7. Output Formatters (findfmt.formatters)
        • CsvFormatter
        • CsvTableFormatter
        • Formatter
        • HtmlFormatter
        • IpynbFormatter
        • JsonFormatter
        • JsonlFormatter
        • MarkdownFormatter
        • OutputFormat
        • RstFormatter
        • TextFormatter
        • TsvFormatter
        • UnsupportedBoxStyleError
        • UnsupportedFormatError
        • UnsupportedTableStyleError
        • XmlFormatter
        • YamlFormatter
        • get_formatter()
        • sanitize_csv_cell()
        • write_stream_safe()
      • 8. Command-Line Interface (findfmt.cli)
      • 9. Internationalization (findfmt.i18n)
        • detect_locale()
        • detect_locales()
        • format_integer()
        • format_number()
        • get_current_locale()
        • get_current_translation()
        • locale_callback()
        • ngettext()
        • override_locale()
        • reset_locale()
        • set_locale()
      • 10. Runtime Diagnostics (findfmt.cli.diagnostics)
        • diagnostics_callback()
        • generate_config_callback()
        • get_diagnostics()
        • get_git_version()
        • get_version()
        • show_config_callback()
        • version_callback()
      • 11. Match Summaries (findfmt.cli.summary)
        • parse_tag_arguments()
        • write_summary()
      • 12. Terminal Utilities (findfmt.cli.terminal)
        • PagerController
        • get_console()
        • get_terminal_height()
        • is_color_enabled()
        • should_use_pager()
        • strip_ansi()
      • 13. Common Utilities (findfmt.utils)
        • build_file_uri()
        • cell_width()
        • format_display_path()
        • format_hyperlink()
        • format_osc8_link()
        • format_rich_link()
        • format_timestamp()
        • get_classification_indicator()
        • mask_control_characters()
        • pad_to_cell_width()
        • quote_filename()
        • strip_ansi_escapes()
      • 14. Runtime Dispatch Gateway (findfmt.core)
        • classify_file()
        • find_files()
        • get_active_backend()
        • is_rust_backend_active()
        • is_rust_extension_loaded()
      • 15. Domain Exceptions (findfmt.exceptions)
        • FindFmtError
        • InvalidSortCriteriaError
        • ParserError
        • TraversalError
        • UnsupportedBoxStyleError
        • UnsupportedFormatError
        • UnsupportedTableStyleError
    • API Stability Policy
      • 1. What Is Public
      • 2. Compatibility Within 1.x
        • 2.1. Pass Arguments by Keyword
        • 2.2. Documented Exceptions in 1.1
      • 3. How Changes Are Caught
      • 4. API Changes in 1.1

Qualité et architecture

  • Quality Metrics & Architecture
    • 1. Code Quality Standards
    • 2. Traversal Complexity Optimization & Performance Baselines
    • 3. Hybrid Python-Rust Architecture & Fallback Guarantees
    • 4. Python Runtime Compatibility
      • Python Compatibility & Runtime Matrix
        • 1. Compatibility Overview & Runtime Matrix
        • 2. Minimum Python Version Analysis (3.6 – 3.10)
        • 3. Modern & Future Python Certification (3.15 – 3.16)
        • 4. Multi-Platform CI Matrix
        • 5. Python Version Support Lifecycle
      • Dependency Resolution Matrix & Orchestration ADR
        • 1. Context, Problem Statement & Architecture Decision
        • 2. Orchestration Tooling Assessment
        • 3. Combinatorial Space & Matrix Pruning Analysis
        • 4. Failure Diagnostic Architecture
        • 5. Local Execution & Bound Troubleshooting Playbook
      • Hybrid Python-Rust Architecture & Fallback FAQ
        • 1. Architectural Motivation & Subsystem Layout
        • 2. Build-Time vs. Runtime Controls
        • 3. Architecture & Fallback FAQ
        • 4. Local Developer Setup & Debugging Runbook
      • Performance Architecture & Benchmarks
        • 1. Performance Goals & Architecture
        • 2. Core Optimization Vectors
        • 3. Parallel Batch Execution & Concurrency Analysis
        • 4. Automated Benchmark Harness (tools/benchmark.py)
        • 5. Command-Line Interface & Usage
        • 6. Official v1.0.0 Baseline Performance Metrics
        • 7. Regression Testing in CI
      • Sphinx & Furo Sidebar Navigation Architecture (ADR)
        • 1. Context & Problem Statement
        • 2. Technical Feasibility Investigation
        • 3. Architecture Decision & Implementation Details

Communauté et gouvernance

  • Accessibility Statement
    • 1. Supported Environments & Assistive Technologies
      • 1.1. Command-Line Interface (CLI)
      • 1.2. Project Documentation & Web Systems
    • 2. Known Limitations & Workarounds
    • 3. Reporting Accessibility Barriers & Feedback
      • 3.1. Public Issue Tracker
      • 3.2. Confidential or Direct Inquiries
  • Security Policy
    • 1. Supported Versions
    • 2. Reporting a Vulnerability
    • 3. Security Threat Model & Audit Report
      • 3.1. Filesystem Traversal & Path Security
        • 3.1.1. Symlink Loops & Resource Exhaustion (DoS)
        • 3.1.2. Arbitrary Path Traversal & Boundary Containment
        • 3.1.3. TOCTOU (Time-of-Check to Time-of-Use) Resiliency
      • 3.2. File Inspection & Content Engine Security
        • 3.2.1. Bounded Content Reads
        • 3.2.2. Special Files, Named Pipes (FIFOs), & TOCTOU FIFO Swapping
        • 3.2.3. Regular Expression & Pattern Safety (ReDoS Prevention)
      • 3.3. Terminal Presentation & Injection Attacks (CWE-150)
        • 3.3.1. ANSI Escape Sequence Injection
        • 3.3.2. Unicode Bidirectional (BiDi) Override Masking & Trojan Source Defense
      • 3.4. Supply Chain & Dependency Hygiene
        • 3.4.1. Automated Vulnerability Audits
        • 3.4.2. Absence of Dangerous Shell Executions
      • 3.5. GitHub Actions & CI/CD Hardening
        • 3.5.1. Principle of Least Privilege
        • 3.5.2. OIDC Trusted Publisher Environment Scoping
        • 3.5.3. Container Image Provenance
        • 3.5.4. Multi-Tier Secret Scanning & Static Analysis
      • 3.6. Supply Chain Governance & OpenSSF Scorecard Posture
        • 3.6.1. Branch Protection & Mandatory Code Review (CodeReviewID)
        • 3.6.2. OpenSSF Best Practices Program (CIIBestPracticesID)
        • 3.6.3. Continuous Fuzz Testing Architecture & ClusterFuzzLite (FuzzingID)
        • 3.6.4. Active Maintenance & Release Hygiene (MaintainedID)
        • 3.6.5. Third-Party Rust Crate License & Source Auditing
  • en
  • de
  • es
  • fr
  • ja
Back to top
Copyright © Brandon Perkins
Made with Sphinx and @pradyunsg's Furo