Update README with information about new export and aggregation scripts
This commit is contained in:
@@ -53,6 +53,8 @@ comptabilite/
|
|||||||
### Master Script
|
### Master Script
|
||||||
|
|
||||||
- **process_all.py** - Master script that runs all processing scripts with unified options
|
- **process_all.py** - Master script that runs all processing scripts with unified options
|
||||||
|
- **export_all_csv.py** - Exports CSV files for all account statements in one run
|
||||||
|
- **aggregate_by_month.py** - Aggregates all account statements by month and creates reports
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -71,9 +73,12 @@ python process_bourso.py --csv
|
|||||||
python process_bourso.py --pdf-dir ../data/pdf/boursobank --output-dir ../../output/csv --csv
|
python process_bourso.py --pdf-dir ../data/pdf/boursobank --output-dir ../../output/csv --csv
|
||||||
```
|
```
|
||||||
|
|
||||||
### Master Script
|
### Master Scripts
|
||||||
|
|
||||||
From the `scripts/` directory, the master script can process all statements at once:
|
From the `scripts/` directory, you can use these master scripts:
|
||||||
|
|
||||||
|
#### process_all.py
|
||||||
|
Process statements with the standard individual scripts:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Process all statements
|
# Process all statements
|
||||||
@@ -86,6 +91,28 @@ python process_all.py --csv
|
|||||||
python process_all.py --bourso --amex --csv
|
python process_all.py --bourso --amex --csv
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### export_all_csv.py
|
||||||
|
Export CSV files for all account statements in one run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Export all account statements to CSV
|
||||||
|
python export_all_csv.py
|
||||||
|
|
||||||
|
# Export to specific output directory
|
||||||
|
python export_all_csv.py --output-dir /path/to/output
|
||||||
|
```
|
||||||
|
|
||||||
|
#### aggregate_by_month.py
|
||||||
|
Create monthly and yearly aggregated reports from all CSV files:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Aggregate all transactions by month
|
||||||
|
python aggregate_by_month.py
|
||||||
|
|
||||||
|
# Specify input and output directories
|
||||||
|
python aggregate_by_month.py --input-dir /path/to/csv --output-dir /path/to/reports
|
||||||
|
```
|
||||||
|
|
||||||
## Output
|
## Output
|
||||||
|
|
||||||
When run with `--csv` flag, each script generates:
|
When run with `--csv` flag, each script generates:
|
||||||
|
|||||||
Reference in New Issue
Block a user