Export Thai bank statements to accounting software formats (Peak, etc.)
Project description
thanakan-accounting
Export Thai bank statements to accounting software formats.
Supported Formats
- Peak Import Statement - Excel format for Peak reconciliation
Usage
from thanakan_statement import parse_all_pdfs, consolidate_by_account
from thanakan_accounting import export_to_peak, export_single_to_peak
# Parse bank statements
statements = parse_all_pdfs("./statements/")
accounts = consolidate_by_account(statements)
# Export all accounts to Peak format (one sheet per account)
export_to_peak(accounts, "peak_import.xlsx")
# Or export a single account
export_single_to_peak(accounts[0], "peak_import_single.xlsx")
Peak Import Format
The Peak exporter generates Excel files with 3 columns:
| Column | Name | Format |
|---|---|---|
| A | วันที่รายการ | YYYYMMDD |
| B | จำนวนเงิน | Number (- for withdrawal, + for deposit) |
| C | หมายเหตุ | Description + Channel + Check# + Reference |
Adding New Exporters
Add new exporters in exporters/ directory following the same pattern:
# exporters/zoho.py
from pathlib import Path
from thanakan_statement import Account
def export_to_zoho(accounts: list[Account], output_path: Path | str) -> None:
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thanakan_accounting-0.2.0.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thanakan_accounting-0.2.0.tar.gz.
File metadata
- Download URL: thanakan_accounting-0.2.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4530478fff8c5e06d5585c1d804d1306faefaed39ae9d06f05ad382fc9c6dce6
|
|
| MD5 |
6a2a52d3a61f5bf51c12043a4b6984b8
|
|
| BLAKE2b-256 |
16d92f27459d414a5b946b6d12ab884b2976ae83a675123b8667eae54f6124ad
|
File details
Details for the file thanakan_accounting-0.2.0-py3-none-any.whl.
File metadata
- Download URL: thanakan_accounting-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b48ba2d43de217f86f91e26e1603ad073fa8c43cfb0b4de16af8601c13284c11
|
|
| MD5 |
bf2b91cdf34b044e7a2bd010f69d8bd5
|
|
| BLAKE2b-256 |
60d4cf154bc1aa342971f682d2ae39a7b394c0a9ee871ef533ec1189615b4929
|