vermiceli / ynab-to-ledger Goto Github PK
View Code? Open in Web Editor NEWA tool to convert a YNAB-exported CSV file to a plaintext accounting ledger dat file
License: MIT License
A tool to convert a YNAB-exported CSV file to a plaintext accounting ledger dat file
License: MIT License
Leaving this here for reference in case someone else finds this handy:
Dockerfile:
FROM ubuntu:22.04
RUN mkdir /import && \
useradd nonroot
WORKDIR /import
RUN apt-get update && \
apt-get install -y \
curl \
dotnet6 \
unzip && \
rm -rf /var/lib/apt/lists/*
RUN project_url='https://github.com/vermiceli/ynab-to-ledger' && \
version='1.0' && \
checksum='4b196e6cc56e9fadd91ad54d487a827e5c840a740281498ff7373b31f8cbf01a' && \
curl -sSLo /tmp/linux.zip "$project_url/releases/download/v$version/linux.zip" && \
echo "$checksum /tmp/linux.zip" | sha256sum -c && \
unzip /tmp/linux.zip -d /tmp && \
mv /tmp/linux /usr/local/bin/ynab-to-leger && \
chmod +x /usr/local/bin/ynab-to-leger/YNABCSVToLedger && \
ln -s /usr/local/bin/ynab-to-leger/YNABCSVToLedger /usr/local/bin/YNABCSVToLedger && \
rm /tmp/linux.zip
USER nonroot
To run:
docker build . -t ynab-to-ledger
# Lets say your file is ynab.csv in the current folder
docker run --rm \
--volume $PWD:/import \
--interactive --tty ynab-to-ledger
# Once inside the container YNABCSVToLedger is available to run imports
Hi
first thank you for bulding this.
I was giving it a try and I ended up with this error
Unhandled Exception: System.Exception: A split transfer is not supported.
at YNABCSVToLedger.Transaction..ctor(IDictionary2 accountTypes, Boolean useClear, CultureInfo culture, IList
1 lineItems) in C:\projects\ynab-to-ledger\YNABCSVToLedger\Transaction.cs:line 24
at YNABCSVToLedger.Program.<>c__DisplayClass1_0.b__0() in C:\projects\ynab-to-ledger\YNABCSVToLedger\Program.cs:line 123
at YNABCSVToLedger.Program.GroupLineItems(IEnumerable1 lineItems, IDictionary
2 accountTypes, Boolean useClear, CultureInfo culture) in C:\projects\ynab-to-ledger\YNABCSVToLedger\Program.cs:line 162
at YNABCSVToLedger.Program.Main() in C:\projects\ynab-to-ledger\YNABCSVToLedger\Program.cs:line 89
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.