← 返回
效率工具 中文

Calctool

Perform basic, scientific, and financial calculations from the terminal. Use when computing interest, converting units, or solving quick math.
在终端执行基础、科学及财务计算。适用于利息计算、单位换算或快速数学运算。
ckchzh
效率工具 clawhub v2.0.1 2 版本 99844.2 Key: 无需
★ 0
Stars
📥 641
下载
💾 17
安装
2
版本
#latest

概述

CalcTool

Utility toolkit — run, check, convert, analyze, generate, preview, batch, compare, and manage data entries. Each command logs input with timestamps for full traceability and review.

Commands

CommandDescription
----------------------
calctool run Log a run entry (no args = view recent runs)
calctool check Log a check entry (no args = view recent checks)
calctool convert Log a convert entry (no args = view recent converts)
calctool analyze Log an analyze entry (no args = view recent analyses)
calctool generate Log a generate entry (no args = view recent generates)
calctool preview Log a preview entry (no args = view recent previews)
calctool batch Log a batch entry (no args = view recent batches)
calctool compare Log a compare entry (no args = view recent compares)
calctool export Log an export entry (no args = view recent exports)
calctool config Log a config entry (no args = view recent configs)
calctool status Log a status entry (no args = view recent statuses)
calctool report Log a report entry (no args = view recent reports)
calctool statsSummary statistics — entry counts per category, total, data size
calctool search Search across all log entries
calctool recentShow last 20 history entries
calctool helpShow usage info
calctool versionShow version string

> Note: The export and status commands in the case dispatch also have utility variants (_export and _status) that provide structured export (json/csv/txt) and health check output respectively. However, the primary case match routes to the logging version.

Data Storage

All data is stored locally in ~/.local/share/calctool/. Each command writes to its own .log file (e.g., run.log, check.log, analyze.log). A unified history.log records every action with timestamps. No external services or databases required.

Log format: YYYY-MM-DD HH:MM|

Export formats: JSON, CSV, or plain text (via the _export helper function).

Requirements

  • bash (version 4+ recommended)
  • Standard POSIX utilities: date, wc, du, grep, tail, head, cat
  • No external dependencies, no network access needed
  • Works on Linux, macOS, and WSL

When to Use

  1. Logging calculation results — Record computations, conversions, or analysis results with run, convert, or analyze for future reference
  2. Batch processing and comparison — Log batch operations with batch and side-by-side comparisons with compare
  3. Generating and previewing outputs — Use generate to log generated results and preview to log draft outputs before finalizing
  4. Configuration and status tracking — Record configuration changes with config and system states with status for audit trails
  5. Reporting and data export — Create report entries for periodic summaries and use stats or search to review all logged data

Examples

# Log a calculation run
calctool run "2 * (3 + 4) / 5 = 2.8"

# Log a unit conversion
calctool convert "100 USD to CNY = 725.30"

# Log an analysis result
calctool analyze "Dataset A: mean=45.2, std=12.1, n=500"

# Compare two results
calctool compare "Plan A: $12,000/yr vs Plan B: $10,800/yr — B saves 10%"

# Generate a report entry
calctool report "Q1 2026 summary: 142 entries, 98% accuracy"

# Search for specific entries
calctool search "USD"

# View summary statistics
calctool stats

# View recent activity
calctool recent

# Check health status
calctool status

How It Works

CalcTool stores all data locally in ~/.local/share/calctool/. Each command logs activity with timestamps for full traceability. Use stats to see a summary of entries per category with total counts and data size. Use search to find specific entries across all logs, recent to view the latest activity, or the built-in export helper to back up your data in JSON, CSV, or plain text format.


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 2 个版本

  • v2.0.1 当前
    2026-03-29 17:48 安全 安全
  • v1.0.5
    2026-03-19 10:07

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,861
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 439 📥 147,717
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,320