OFXStatement plugins for Japanese banks
Project description
This project provides plugins for Japanese banks for ofxstatement.
ofxstatement is a tool to convert proprietary bank statement to OFX format, suitable for importing to GnuCash. Plugin for ofxstatement parses a particular proprietary bank statement format and produces common data structure, that is then formatted into an OFX file.
Supported Banks
Prestia (SMBC Trust Bank)
This plugin supports CSV exports from Prestia (SMBC Trust Bank) online banking.
Installation
You can install the plugin from source:
$ git clone https://github.com/elrandar/ofxstatement-japan.git $ cd ofxstatement-japan $ pip install -e .
Usage
List available plugins:
$ ofxstatement list-plugins The following plugins are available: prestia Prestia (SMBC Trust Bank) Japan CSV statement plugin
Convert Prestia CSV to OFX:
$ ofxstatement convert -t prestia statement.csv statement.ofx
The plugin will automatically detect and use CP932 (Shift-JIS) encoding, which is the default encoding used by Japanese banks.
Configuration
If you need to customize the encoding, create a configuration file at ~/.config/ofxstatement/config.ini:
[prestia] encoding = utf-8
CSV Format
The Prestia plugin expects CSV files with the following format:
Column 1: Date (YYYY/MM/DD)
Column 2: Description (Japanese and English)
Column 3: Amount (e.g., “-1,590 JPY” or “+500,000 JPY”)
Column 4: Account number
Development
To set up a development environment:
$ git clone https://github.com/elrandar/ofxstatement-japan.git $ cd ofxstatement-japan $ python3 -m venv .venv $ source .venv/bin/activate # On Windows: .venv\Scripts\activate $ pip install -e .
Run tests:
$ pip install pytest $ pytest tests/
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
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 ofxstatement_japan-0.0.1.tar.gz.
File metadata
- Download URL: ofxstatement_japan-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b42e713e5d8ff97e5287aa2cc47ba7cb1dc1daa2f62e6c79c9aa3c4f3e1780b
|
|
| MD5 |
ff10acf984c7673e636edc7d2c120b88
|
|
| BLAKE2b-256 |
28a48d27d21d78dd99f8cbb1fc49d0bb09848bd50d4e0b1011cdc644aa7aabc3
|
File details
Details for the file ofxstatement_japan-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ofxstatement_japan-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18ea9f77cfb213e370e9f38ae3753fb8df43810fb94af0ba14d7bc11c017c933
|
|
| MD5 |
324750394253d3bf0bc45b7f07d3eb2e
|
|
| BLAKE2b-256 |
fad959f7610b88cdd00b8b0339e85b60748a68f2d761aaaf3d78ffd22d6804cc
|