Metadata-Version: 2.4
Name: tickertape-cli
Version: 0.5.1
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Rust
Classifier: Topic :: Database
Classifier: Topic :: Office/Business :: Financial
License-File: LICENSE-MIT
License-File: LICENSE-APACHE
Summary: The tickertape command-line tool: tail, inspect, verify, export, summarize and archive tickertape journals
Keywords: journal,mmap,event-log,trading,cli
Home-Page: https://github.com/thomas0903/tickertape
Author: The tickertape contributors
License-Expression: MIT OR Apache-2.0
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/thomas0903/tickertape/blob/main/CHANGELOG.md
Project-URL: Documentation, https://github.com/thomas0903/tickertape/blob/main/docs/cli.md
Project-URL: Homepage, https://github.com/thomas0903/tickertape
Project-URL: Issues, https://github.com/thomas0903/tickertape/issues

# tickertape-cli

Tools for [tickertape](https://github.com/thomas0903/tickertape) event journals.

```sh
cargo install tickertape-cli --locked
tickertape --help
# Or run from a source checkout:
# cargo run -p tickertape-cli -- --help

tickertape tail ./journal --from 42 --format json --count 100
tickertape tail ./journal --from-end --timeout-secs 5
tickertape inspect ./journal --json
tickertape verify ./journal
tickertape stats ./journal --json
tickertape archive ./journal --to ./archive --keep-segments 10 --dry-run
tickertape export ./journal --format jsonl --from 10 --to 99 --output events.jsonl
tickertape export ./journal --format parquet --output events.parquet   # then: SELECT * FROM 'events.parquet' in DuckDB
```

`tail` starts at the oldest record and follows forever by default. Use `--no-follow` for replay only. Text output
previews payloads as hex; JSONL preserves payloads as standard base64 with padding. Export stops at the committed
end observed in its startup scan. Commands never take the writer lock. Only `archive` changes journal files, removing a sealed prefix strictly
before the checkpoint segment; its destination directory must exist and existing files are never replaced.

Exit codes: **0** success, **1** usage/I/O/missing journal, **2** corruption (including unsupported format).
Errors and warnings go to stderr. Each command's `--help` documents options, output and exit codes. The exact
machine-readable output schemas (JSONL, Parquet, `inspect`/`verify`/`stats`/`archive --json`) are in
[`docs/cli.md`](https://github.com/thomas0903/tickertape/blob/main/docs/cli.md).

