cgiacofei / pyledgertools Goto Github PK
View Code? Open in Web Editor NEWTools for managing banking data with Ledger-cli.
License: The Unlicense
Tools for managing banking data with Ledger-cli.
License: The Unlicense
Maintaining shell scripts separate from this repo is annoying.
It would be easier to merge them together and not bother making this an installable package.
Pulling data from ADP using a ruby gem (adp-downloader).
Paycheck is formatted as json.
Need to either ignore calculated values or teach the script how to dot the calculation.
example transaction that breaks the system:
YYYY-MM-DD * Payee name
Account:Name ($ 50.00 + $ 45.00)
As long as we're in there might as well try to grab check images.
This will simplify manual account entry by allowing for autocomplete of account names.
Example code from stackoverflow
import sys, tempfile, os
from subprocess import call
EDITOR = os.environ.get('EDITOR','vim')
initial_message = ''
with tempfile.NamedTemporaryFile(suffix='.tmp') as tf:
tf.write(initial_message)
tf.flush()
call([EDITOR, tf.name])
# Read new file contents.
tf.seek(0)
edited_message = tf.read()
Something to consider:
I ran into the same problem of reading back the old contents of the file, and its true that in many cases, vim moves the old file aside and writes the new file, leaving our tf file descriptor still open on the now-backup file. The command line option "+set backupcopy=yes" added before the file name prevents this problem, and I'm now happily able to read the new contents of the file. call([EDITOR, '+set backupcopy=yes', tf.name]) โ Chuck Buche Nov 22 '16 at 6:56
Need to be able to expand the transaction list and select more transsactions.
Package is already available at https://github.com/muatik/naive-bayes-classifier.
Process Mortgage:
conditions:
- AND:
- PAYEE CONTAINS Mortgage
process:
mortgage_process:
file: "mortgage_schedule.csv"
currency: $
principal_pmt: "Liabilities:Mortgage:Principle"
interest_pmt: "Expenses:Interest:Mortgage"
escrow_pmt: "Assets:Escrow:Mortgage"
Put accounts in a list so the order is preserved, ensuring escrow is always processed last.
Process Mortgage:
conditions:
- AND:
- PAYEE CONTAINS Mortgage
process:
mortgage_process:
file: "mortgage_schedule.csv"
currency: $
accounts:
- principal_pmt: "Liabilities:Mortgage:Principle"
- interest_pmt: "Expenses:Interest:Mortgage"
- escrow_pmt: "Assets:Escrow:Mortgage"
I suspect the issue is the cron environment not finding phantomjs or its libraries...
Ledger comes with python bindings that may work out of the box. Need to try and get them to work...
Otherwise, may need to write something from scratch.
This will make it easier to provide a raw html file for processing without having to load the page automatically.
See README for a usage example.
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.