Comments (13)
Yes! You are right, I didn't know the feature. I still wonder if I would prefer to do the transformation before the import in YNAB. The new payees clutter my selection list in YNAB, setting up those renames in YNAB takes a lot longer and it seems like those renames can not be applied after import, which is an issue. I propose to implement it and users can still use the YNAB function on top as the prefer?
Does that make sense?
Yaml: It's better scalable. In your conf format you only have two levels of structure (variables and categories). As you already use categories for banks it would actually be difficult to mix in the proposed transformation map. Yaml would be better suited (and is used be a majority of new projects for good reason)
from bank2ynab.
It won't be major (I don't think). I'm switching the CSV input and output to rely on Pandas instead of our home rolled iterative approach. I also want to handle the API error responses a bit better. I may then also split up the files a bit for ease of maintenance.
from bank2ynab.
from bank2ynab.
Hi @ThomDietrich , this is something we discussed but it's actually a feature built into ynab already so it's not something we're going to implement. If you select "Manage Payees" when you're looking at the payee selection for a transaction (on the web app only I think), you can have rules for payee name processing.
from bank2ynab.
What's the benefit of yaml over conf?
from bank2ynab.
Interesting. I started a bit of a project restructure last night, so I'll look into that. If you're going to implement this feature, I would have the transformation map in a separate file - maybe user_payee_transforms.conf
or something similar.
from bank2ynab.
Btw I am a fond user of https://www.dynaconf.com/ (with yaml)
Don't get me wrong, I don't think you have to switch but it would certainly be a nice improvement from my humble point of view ;)
I started a bit of a project restructure last night
I will work on a PR this evening. Please let me know if you plan major restructuring
from bank2ynab.
Sounds great.
Just to confirm... I will follow your preference here: Shall I give a dynaconf example with the PR for the transformation map? Either you like it or we drop it for conf.
from bank2ynab.
I looked into this. I can hardly solve this in a clean way.
The existing config is tightly tailored to bank config data. If I wanted to introduce a new file, I would need to duplicate quite a few steps, add it as another parameter of B2YBank
etc. This doesn't feel meaningful. Alternative would be to load the file inside Bank2Ynab
which is anything but clean.
Edit: found an acceptable solution.
from bank2ynab.
It won't be major (I don't think). I'm switching the CSV input and output to rely on Pandas instead of our home rolled iterative approach. I also want to handle the API error responses a bit better. I may then also split up the files a bit for ease of maintenance.
The project restructure ended up being pretty major. If you point your pull request at the branch #401 it might be better! Very much still a work in progress.
from bank2ynab.
I closed #405 because of the scope of the refactor in #406, but it should be a bit easier to integrate the payee mapping functionality now.
from bank2ynab.
Hey,
what's the current state with this? After the apparent changes in #406 any hints what to do here? The method as I implemented it worked quite well. Would you like to receive another PR or could you implement this yourself?
from bank2ynab.
I don't currently have much time to put into this project, but I'd happily accept another PR. I promise I won't refactor everything this time!
I would suggest adding a "transform_payees" function in dataframe_handler.py
and calling it in the parse_data function. The function for loading the mapping file can be managed by config_handler.py
and called in bank_handler.py
, passing "payee_mapping" (as a dictionary, I assume?) as a variable into the dataframe handler, similar to how the various config parameters are currently passed.
from bank2ynab.
Related Issues (20)
- SE Länsförsäkringar checking - import broken - date format has changed
- Code refactor & migrate parsing functionality to Pandas
- Seems like it is not supporting ING anymore. HOT 6
- Extraction of transaction information from the memo HOT 1
- "Done! 0 files processed." HOT 8
- Label and README Github action fails for Pull Requests from external forks into Develop HOT 6
- John Lewis Partnership Card provider and data format changed HOT 1
- Bank format: IE PTSB
- Output file not showing Swedish letters å, ä and ö HOT 7
- No output file for this bank HOT 1
- Incorrect merging of duplicate inflow and outflow columns
- Linting Github action is failing
- PL Alior Bank format
- NL ING Checking 2020 works, but not when the bank web interface is set to English HOT 5
- filename pattern of "BE BNP Paribas Fortis Export” matches “NL Rabobank-2018” files HOT 3
- Question: two budgets with different accounts in same bank HOT 4
- Feature request: Add setting to delete fixed statement file after API upload HOT 6
- PWA adaptation HOT 1
- UOB SG HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bank2ynab.