/ynab-importer

Import transactions from banks to YNAB via the API

Primary LanguagePython

YNAB Importer

Codacy Badge

Import transactions from N26 directly to YNAB via the API.

Usage

Works with Python 3.7+.

Install requirements:

pip install -r requirements.txt

Create config.yml file based on config.yml.example file.

Now you can interact with ynab-import with the CLI. Check help for more details:

python cli.py --help

Deploy to AWS Lambda

The application is managed with Serverless and is hosted on AWS Lambda.

Prerequisites

  1. Install npm

  2. Install Serverless globally: npm install -g serverless

  3. Install dependencies: npm install

  4. Setup AWS Credentials

Deploy

Run make deploy.

CLI Installation and Autocomplete

First install ynab_importer package:

pip install .

Bash

Add the following lines to .bashrc:

# Enable autocomplete for ynab_importer's CLI
eval "$(_YNAB_IMPORTER_COMPLETE=source ynab_importer)"

Zsh

Add the following lines to .zshrc:

# Enable autocomplete for ynab_importer's CLI
autoload bashcompinit
bashcompinit
eval "$(_YNAB_IMPORTER_COMPLETE=source ynab_importer)"

Python Requirements

This project uses pip-compile-multi project to manage Python requirements.

To add/change python requirements:

  1. edit requirements.in file

  2. run pip-compile-multi -d .