Convert Santander Argentina account and credit-card statements to Markdown
Project description
santander2md
Convert Santander Argentina account and credit-card PDF statements to clean Markdown.
Installation
Recommended (using pipx - installs in isolated environment):
pipx install santander2md
Or with pip (in a virtual environment):
pip install santander2md
Note: On modern Linux systems (Debian, Ubuntu 23.04+, Fedora), use
pipxto avoid the "externally-managed-environment" error.
You also need the pdftotext binary from Poppler:
# Ubuntu/Debian
sudo apt-get install -y poppler-utils
# macOS
brew install poppler
Usage
Command line
# Convert a single PDF to Markdown
santander2md parse -i extracto.pdf -o reporte.md
# Process multiple statements
santander2md batch -i ./data -o ./output -f md
As a library
from santander2md import SantanderParser, to_markdown
parser = SantanderParser("extracto.pdf")
extracto = parser.parse()
md = to_markdown(extracto)
print(md)
Output
The tool produces Markdown summaries of:
- Account movements (pesos and dollars)
- Credit-card summaries and purchases
- Taxes and withholding details
- Loans and installment plans
- Pending installments (
cuotas a vencer)
Development
# Install system dependency
sudo apt-get install -y poppler-utils
# Create virtual environment
python -m venv .venv
source .venv/bin/activate
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest -v
# Lint and type check
ruff check .
ruff format --check .
pyright
Project Structure
santander2md/
├── src/santander2md/ # Source package
│ ├── parsers/ # PDF extraction and section parsers
│ ├── models.py # Data models
│ ├── exporter.py # Markdown exporter
│ ├── utils.py # Shared utilities
│ └── cli.py # CLI entry point
├── tests/ # Test suite
├── examples/ # Usage examples
├── pyproject.toml # Project metadata and tool config
└── README.md # This file
License
Apache-2.0
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 santander2md-0.1.1.tar.gz.
File metadata
- Download URL: santander2md-0.1.1.tar.gz
- Upload date:
- Size: 55.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f94e2e5a8e8b946a288633c2492eb4dc275a21dac789c8c7440eb810e8eabade
|
|
| MD5 |
6f541e93ff899431180b043e7ae1012d
|
|
| BLAKE2b-256 |
f3debd57943c18b89665d0c2a48185a00d47af7ad754d17264dd790aa48b0f5e
|
Provenance
The following attestation bundles were made for santander2md-0.1.1.tar.gz:
Publisher:
publish.yml on juanmanueldaza/santander2md
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
santander2md-0.1.1.tar.gz -
Subject digest:
f94e2e5a8e8b946a288633c2492eb4dc275a21dac789c8c7440eb810e8eabade - Sigstore transparency entry: 1846334270
- Sigstore integration time:
-
Permalink:
juanmanueldaza/santander2md@e4b4fd849438e2aa0fe671d64d6a9d2dfa6c7c42 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/juanmanueldaza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e4b4fd849438e2aa0fe671d64d6a9d2dfa6c7c42 -
Trigger Event:
release
-
Statement type:
File details
Details for the file santander2md-0.1.1-py3-none-any.whl.
File metadata
- Download URL: santander2md-0.1.1-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a4007197d69b0377bca3fb4859f36dc6b4158fe14db953224183fb9ef5c8f38
|
|
| MD5 |
1c2a820d42e889f348315f2843bdcb0d
|
|
| BLAKE2b-256 |
41bb632231c7d36b4eb48b24bef14d4ed0afb4e53549caf7567f513b1378aef9
|
Provenance
The following attestation bundles were made for santander2md-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on juanmanueldaza/santander2md
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
santander2md-0.1.1-py3-none-any.whl -
Subject digest:
5a4007197d69b0377bca3fb4859f36dc6b4158fe14db953224183fb9ef5c8f38 - Sigstore transparency entry: 1846334381
- Sigstore integration time:
-
Permalink:
juanmanueldaza/santander2md@e4b4fd849438e2aa0fe671d64d6a9d2dfa6c7c42 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/juanmanueldaza
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e4b4fd849438e2aa0fe671d64d6a9d2dfa6c7c42 -
Trigger Event:
release
-
Statement type: