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
Release files for santander2md 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| santander2md-0.1.2.tar.gz | 55.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| santander2md-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.3 kB
Release files / santander2md-0.1.2.tar.gz
| Download URL | santander2md-0.1.2.tar.gz |
|---|---|
| Size | 55.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a753ec934278b7442a77270e98a9d78062df5a62e4fd8349e39759edf8ea4dfe
|
|
BLAKE2b-256 checksum How to use checksums |
cef37caeac28fcc7fdef601d9131d645ff243164fdbed9eb4862561000f4877a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 12, 2026.
Transparency logRelease files / santander2md-0.1.2-py3-none-any.whl
| Download URL | santander2md-0.1.2-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91c598295c32c59ff09bf5223e5eec8f6b4253ca8b84b3d9c6415892bc824633
|
|
BLAKE2b-256 checksum How to use checksums |
dfab96912d0f909f4b9137f710672594dbae15d9d8a0a98a0fbd6cab94ad8518
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 12, 2026.
Transparency log