Test Data Generator for Plain Text Accounting
PTA-Generator generates plain text accounting data sets ("journals") for test and demo usage.
It creates journals with or without commodities and journals with audit data for tackler. PTA-Generator can also crete journals of different sizes, and it also supports different journal storing strategies.
Currently it has following features:
- Support for following PTA tools
- Three major modes:
comm: Journal with commodities- Tools: tackler, (h)ledger, beancount
plain: The simplest journal- Tools: tackler, (h)ledger
audit: Journal with transaction audit data- Tools: tackler
- Three journal storage strategies:
single: Single journal- Tools: tackler, (h)ledger, beancount
month: Shard by transaction date- Tools: tackler
txn: Shard by transaction (each txn is in own file)- Tools: tackler
Usage
For full command line help, see help for each subcommands:
Simple Journal
# Generate 10_000 (1e4) txns single file journals under `data` directory
# Run balance report with this test data
Journal with Commodities
# Generate 10_000 (1e4) txns single file journals under `data` directory
# Run balance report with this test data
Journal with Tackler Audit Test Data
Tackler can produce cryptographic proofs of used accounting data with reports. Audit mode produce test data for this.
# Generate 10_000 (1e4) audit txns set ("journal") under `data` directory
# Run balance report with this test data
To run full account auditing report, do following extra steps:
This will produce following report:
)
The commit id will change but Txn Set Checksum will be the same. This identifies uniquely all transactions used to produce this report, and git commit id will verify the content of journal. The report is calculated directly from repository data, the working copy is not used for this and the repository could be even bare.
Installation
# Latest released version
# Latest development version
How to install Tackler, Ledger, HLedger and Beancount
You can install tackler directly with cargo:
# Latest released version
# Latest development version
Full documentation how to install the tools can be found here:
- Tackler: Tour of Tackler
- Ledger: Download
- HLedger: Install
- Beancount: Installing Beancount
Design
See Design Documentation for high level description of PTA-Generator and possible extension points.
Contributing
See Contributing Guidelines and Developer Documention how to work with the PTA-Generator project.
Security
See Security Policy how to report security findings.
License
PTA-Generator is licensed under the Apache License, version 2.0.