maybankpdf2json
Convert Maybank PDF statements into structured data.
TL;DR
- Use one method:
json() - Output includes:
account_number,statement_date,transactions
Install
pip install maybankpdf2json
Usage
from maybankpdf2json import MaybankPdf2Json
with open("statement.pdf", "rb") as f:
data = MaybankPdf2Json(f, "your_pdf_password").json() # No password? Omit the second argument.
print(data)
Example output:
{
"account_number": "162021-851156",
"statement_date": "30/09/24",
"transactions": [
{
"date": "01/09/24",
"desc": "BEGINNING BALANCE",
"trans": 0,
"bal": 3285.77
}
]
}
Response Schema
Root Object
| Field | Type | Format | Notes |
|---|---|---|---|
account_number |
str | None |
NNNNNN-NNNNNN |
May be None if not detected |
statement_date |
str | None |
dd/mm/yy |
May be None if not detected |
transactions |
list[Transaction] |
Array | Ordered as parsed from statement |
Transaction Object
| Field | Type | Format | Example |
|---|---|---|---|
date |
str |
dd/mm/yy |
01/09/24 |
desc |
str |
Free text | BEGINNING BALANCE |
trans |
float | int |
Signed numeric | -10.0, 0, 250.5 |
bal |
float |
Signed numeric | 3285.77 |
Date format is dd/mm/yy.
Quick Full-Data Test (tests folder)
- Put your statement PDF at
tests/test.pdf. - Run this from the project root:
TEST_PDF_PASSWORD='passwordOfTest.pdf' python3 -c "import json, os; from maybankpdf2json.extractor import MaybankPdf2Json; f=open('tests/test.pdf','rb'); print(json.dumps(MaybankPdf2Json(f, os.environ.get('TEST_PDF_PASSWORD','')).json(), indent=2)); f.close()"
If your PDF has no password, use TEST_PDF_PASSWORD=''.
MIT License.
Metadata
Release files for maybankpdf2json 0.2.7
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 |
|---|---|---|---|---|
| maybankpdf2json-0.2.7.tar.gz | 7.3 kB | With provenance | Details for maybankpdf2json-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maybankpdf2json-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for maybankpdf2json-0.2.7-py3-none-any.whl |
Total release size: 13.4 kB
Release files / maybankpdf2json-0.2.7.tar.gz
| Download URL | maybankpdf2json-0.2.7.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6236922934e0c1036e8151fadbf4d7bfa490d885023f010ec3022bd8983839d4
|
|
BLAKE2b-256 checksum How to use checksums |
024fa16f60fd0565ff4ec2d25492c46a9c84216da2d82e3041dcb33e169ba062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 7, 2026.
Transparency logRelease files / maybankpdf2json-0.2.7-py3-none-any.whl
| Download URL | maybankpdf2json-0.2.7-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fcefc6ed62e730df0f2f8ae0382c28447fd37203faa39db5365d9fccad51674
|
|
BLAKE2b-256 checksum How to use checksums |
e01d7248a9a3ff49816722072108c908749e1e34749fb8a41ca87eeb4e8bd30d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 7, 2026.
Transparency logSecurity for maybankpdf2json 0.2.7
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for maybankpdf2json-0.2.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 7, 2026.
Transparency logA 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.