bankstatementconverter (Python)
Convert PDF bank statements to CSV or JSON from the command line, using the Bank Statement Converter API.
Requires Python 3.9 or later and a Bank Statement Converter API key, which you can find at https://bankstatementconverter.com/settings.
Install
pip install bankstatementconverter
This installs the bsc command (also available as bankstatementconverter). To run it without
installing, use pipx run --spec bankstatementconverter bsc <command>.
Quick start
bsc set-api-key # asks for your API key and saves it
bsc convert statement.pdf # writes ./statement.csv
convert uploads the PDF, asks for the password if the PDF is protected, waits while scanned
PDFs are processed, then writes the result to the current directory.
bsc convert a.pdf b.pdf # writes both statements to ./statements.csv
bsc convert a.pdf b.pdf --split # writes ./a.csv and ./b.csv
bsc convert statement.pdf -f JSON # writes ./statement.json
bsc convert statement.pdf -o - # prints to stdout
bsc credits # shows your remaining credits
Existing files are never overwritten: if statement.csv already exists, the result is written to
statement (1).csv, then statement (2).csv, and so on. Passing -o <file> writes to exactly
that file.
Commands
| Command | Description |
|---|---|
set-api-key [key] |
Save your API key (asks for it if not given) |
convert <pdf...> |
Upload, unlock, wait for and convert PDF statements |
convert <uuid...> |
Convert statements that were already uploaded |
upload <pdf...> |
Upload PDF statements and print their status |
status <uuid...> |
Print the status of uploaded statements |
set-password <uuid> <password>... |
Provide passwords for protected PDFs |
credits |
Show your account and remaining credits |
Options
| Option | Description |
|---|---|
-k, --api-key <key> |
API key. Defaults to $BSC_API_KEY, then the key saved by set-api-key |
-f, --format <format> |
CSV (default) or JSON |
--raw |
Return all columns instead of normalised records |
-o, --output <file> |
File to write to, or - for stdout |
--split |
Write each statement to its own file instead of combining them |
-p, --password <pw> |
Password to try for protected PDFs. Without it you are asked per file |
--base-url <url> |
API base URL. Defaults to $BSC_API_URL or the production API |
-h, --help |
Show help |
The API key is saved to ~/.config/bsc/config.json (or $XDG_CONFIG_HOME/bsc/config.json),
readable only by you.
Metadata
Release files for bankstatementconverter 1.0.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 | Actions |
|---|---|---|---|---|
| bankstatementconverter-1.0.0.tar.gz | 8.4 kB | Without provenance | Details for bankstatementconverter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bankstatementconverter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for bankstatementconverter-1.0.0-py3-none-any.whl |
Total release size: 17.7 kB
Release files / bankstatementconverter-1.0.0.tar.gz
| Download URL | bankstatementconverter-1.0.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2801b674ccb093df6d3c0fd1c0af1117db6481aa261468bdd7142b3963ecaa4e
|
|
BLAKE2b-256 checksum How to use checksums |
fe56169550445385d6d01edfa92c9dd66cfc49198a0ac4fcfe2f2e52f9cece73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / bankstatementconverter-1.0.0-py3-none-any.whl
| Download URL | bankstatementconverter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d0304fb0859754e987752c47673a8552457077687d037c38883bc89652bcb25
|
|
BLAKE2b-256 checksum How to use checksums |
2674071d68375998af0cf47b454aae0ee408c729b22339111fdd32152da3c9a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Security for bankstatementconverter 1.0.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.