Skip to main content

Convert Santander Argentina account and credit-card statements to Markdown

Project description

santander2md

PyPI version

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.1.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.1-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

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

Hashes for santander2md-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f94e2e5a8e8b946a288633c2492eb4dc275a21dac789c8c7440eb810e8eabade
MD5 6f541e93ff899431180b043e7ae1012d
BLAKE2b-256 f3debd57943c18b89665d0c2a48185a00d47af7ad754d17264dd790aa48b0f5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for santander2md-0.1.1.tar.gz:

Publisher: publish.yml on juanmanueldaza/santander2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for santander2md-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a4007197d69b0377bca3fb4859f36dc6b4158fe14db953224183fb9ef5c8f38
MD5 1c2a820d42e889f348315f2843bdcb0d
BLAKE2b-256 41bb632231c7d36b4eb48b24bef14d4ed0afb4e53549caf7567f513b1378aef9

See more details on using hashes here.

Provenance

The following attestation bundles were made for santander2md-0.1.1-py3-none-any.whl:

Publisher: publish.yml on juanmanueldaza/santander2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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