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:
...
Metadata
Release files for thanakan-accounting 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| thanakan_accounting-0.2.0.tar.gz | 15.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thanakan_accounting-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / thanakan_accounting-0.2.0.tar.gz
| Download URL | thanakan_accounting-0.2.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4530478fff8c5e06d5585c1d804d1306faefaed39ae9d06f05ad382fc9c6dce6
|
|
BLAKE2b-256 checksum How to use checksums |
16d92f27459d414a5b946b6d12ab884b2976ae83a675123b8667eae54f6124ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / thanakan_accounting-0.2.0-py3-none-any.whl
| Download URL | thanakan_accounting-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b48ba2d43de217f86f91e26e1603ad073fa8c43cfb0b4de16af8601c13284c11
|
|
BLAKE2b-256 checksum How to use checksums |
60d4cf154bc1aa342971f682d2ae39a7b394c0a9ee871ef533ec1189615b4929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for thanakan-accounting 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.