Skip to main content

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


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.1.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thanakan_accounting-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file thanakan_accounting-0.1.1.tar.gz.

File metadata

  • Download URL: thanakan_accounting-0.1.1.tar.gz
  • Upload date:
  • Size: 15.0 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

Hashes for thanakan_accounting-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a6cb90762b7e1bc39d54a3a6f0f9c2920522efa515d3dcafed37422b0665290
MD5 c41b12fce348253500c9d148bea34b5e
BLAKE2b-256 5cf64dff22c790a3f7079a3154564496b245010b19415ac35775c9681de8fc22

See more details on using hashes here.

File details

Details for the file thanakan_accounting-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: thanakan_accounting-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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

Hashes for thanakan_accounting-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57a2459e4383dc1a4d4187e29832e2d64074df0801a2ba29672851063dfe1c6a
MD5 75782a6f8a7c2322d9316b6c4d1a6359
BLAKE2b-256 7cf16db5932fa8c574d132ba19c7f4da1611c53185a1bf63f153274d31920489

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page