invoice2data icon indicating copy to clipboard operation
invoice2data copied to clipboard

REST api?

Open Gsuz opened this issue 7 years ago • 10 comments

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.

Gsuz avatar Dec 31 '18 05:12 Gsuz

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.

m3nu avatar Dec 31 '18 08:12 m3nu

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.

m3nu avatar Dec 31 '18 08:12 m3nu

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.

Gsuz avatar Jan 02 '19 04:01 Gsuz

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.

m3nu avatar Jan 02 '19 13:01 m3nu

Yes. Basically to handle query's from a web app which has a bunch of invoices to autofill some forms.

Gsuz avatar Jan 03 '19 12:01 Gsuz

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.

m3nu avatar Jan 03 '19 13:01 m3nu

+1

Any news about that ?

gwendall avatar Oct 23 '19 13:10 gwendall

Any news?

GeorgeMihalache avatar Dec 12 '20 22:12 GeorgeMihalache

I have & use trivial Flask based web API, I'll try to clean it up and share next month.

rmilecki avatar Dec 12 '20 22:12 rmilecki

I have & use trivial Flask based 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

GeorgeMihalache avatar Dec 13 '20 07:12 GeorgeMihalache