Skip to main content

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 pipx to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

santander2md-0.1.0.tar.gz (55.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

santander2md-0.1.0-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file santander2md-0.1.0.tar.gz.

File metadata

  • Download URL: santander2md-0.1.0.tar.gz
  • Upload date:
  • Size: 55.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for santander2md-0.1.0.tar.gz
Algorithm Hash digest
SHA256 913227afefd7d3e9fc16c2e7233892d88028adf257f3b52d14f46d8ecd98c456
MD5 af5b29697fc5753d121ce432d02bfc17
BLAKE2b-256 762473853aac6dfd0bf5c99b15b8bd740d41f5bc6b1e03b009224ab77412422c

See more details on using hashes here.

File details

Details for the file santander2md-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: santander2md-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for santander2md-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 253682ee454b3a15361e91f888d3d1a6684de51c3eea22d3cea4e76f349fcd93
MD5 85a323c335c18e2c5b2dc0cbdbedd54b
BLAKE2b-256 2fca601eccf3f2cc5382f6d44be1510ce4a317d740305410e871e92583cfca76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page