REST api?
Has anyone done any work toward building a REST api around this script? It shouldn't be much effort. Wanted to check before starting on my own.
Not that I know of. If you mean a full hosted service, there are a few similar commercial ones. Matching them would be a major effort though. You'd probably need a new way to match fields, as mosts users won't use Regex.
If you just want to use the current system, you will still need a web interface to manage templates, users and files somehow. That would take about a week to add.
Thx fór the reply. I did manage to create a simple api using flask. Receives a file, iterates through it and returns the result ins Json. The editing of templates should be easy to add with some html editor if you control the server anyway.
Whats your use-case for this? Using the Python lib with something else?
I can see some use in a web service for making the lib easier to use and involving more people to make templates. But I also worry that without a different system to make templates/teach it what to extract it will still be too hard to use.
Yes. Basically to handle query's from a web app which has a bunch of invoices to autofill some forms.
I see. So it would be a microservice.
If you have some code, we could host it under the invoice-x organization, and link it in some places, so others can improve and use it. Would just need to have some kind of permissive license and a README, so new contributors can find their way around. I can later set up testing and other admin stuff.
+1
Any news about that ?
Any news?
I have & use trivial Flask based web API, I'll try to clean it up and share next month.
I have & use trivial
Flaskbased web API, I'll try to clean it up and share next month
This is very good news for those unfamiliar with the python environment. Thanks