Skip to main content

A powerful CLI tool for converting bank export files to YNAB-compatible CSV format with interactive preset management

Project description

YNAB Import Tool

PyPI version Python versions License: MIT PyPI Downloads

A command-line tool for converting bank export files (CSV, Excel) to YNAB-compatible CSV format.

What it does

  • Converts bank transaction files to YNAB's required CSV format
  • Supports CSV and Excel files (.csv, .xlsx, .xls)
  • Interactive terminal interface for file conversion
  • Saves conversion settings as reusable presets
  • Preview data before conversion

Installation

pip install ynab-converter

Quick Start

  1. Run the tool:

    ynab-converter
    
  2. Create a preset using a sample file from your bank

  3. Convert your bank files using the preset

  4. Import the generated CSV into YNAB

How it works

Creating a preset

When you first run the tool, you'll create a preset for your bank's file format:

  1. Select a sample file - Choose a transaction file from your bank
  2. Preview the data - See how your file looks
  3. Clean up data - Remove header/footer rows if needed
  4. Map columns - Tell the tool which columns contain:
    • Date
    • Payee/Description
    • Amount (or separate Inflow/Outflow columns)
    • Memo (optional)

Converting files

Once you have a preset:

  1. Select "Convert File"
  2. Choose your transaction file
  3. The tool generates a YNAB-ready CSV file

File Support

Format Extensions Notes
CSV .csv Auto-detects separators
Excel .xlsx, .xls Reads first sheet

Platform Compatibility

Supported platforms:

  • macOS (tested on macOS 15)
  • Linux (tested on Ubuntu and other distributions)

Not supported:

  • Windows (not tested, may have compatibility issues)

Requirements

  • Python 3.12+

Configuration

Settings and presets are saved in:

  • Config: ~/.config/ynab-converter/config.toml
  • Presets: ~/.config/ynab-converter/presets/presets.json
  • Output: ~/Downloads/ynab-exports/ (default)

Development

git clone https://github.com/pavelapekhtin/ynab-import.git
cd ynab-import
uv sync --dev

Run tests:

pytest

License

MIT License - see LICENSE file for details.

Support


Note: This tool is not affiliated with YNAB (You Need A Budget). It's an independent utility to help convert bank files to YNAB's CSV format.

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

ynab_converter-0.4.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

ynab_converter-0.4.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file ynab_converter-0.4.0.tar.gz.

File metadata

  • Download URL: ynab_converter-0.4.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ynab_converter-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f8de6d344d699b0974d5e60570a317368f094333c900d36680d1912c08cad8e8
MD5 8f5bba1b0622692828ef1f98d8a957b4
BLAKE2b-256 add1dace91cb6465041f2f4adfc5d7ac7b86dc64a20c235b254ad228291a3acb

See more details on using hashes here.

File details

Details for the file ynab_converter-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ynab_converter-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ynab_converter-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65b781b9921a5c7b576ccee48c1e0bf963eb922f3139441ed7bc1e2c7dacd7cb
MD5 8b0c3f936041e449bb296a3ed926ff93
BLAKE2b-256 5f72f80c9e2c1e6af89cf8dc5d08edc8033a56c2173bb7f72ec017c5f179b623

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