Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling files from http requests #276

Open
domaschh opened this issue Dec 18, 2023 · 1 comment
Open

Handling files from http requests #276

domaschh opened this issue Dec 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@domaschh
Copy link

Enhancement 🚀
Insetad of only analyzing Files from path it would be nice to have the possibility to handle files from a HTTP request

Motivation 💪
What are the benefits related to this project

makes deepdoctection easier to use in a web aspect

Alternatives ⚖️
Are there any alternatives you have considered
writing the file to disk and then analyzing the path and then deleting again but this is just wasteful

Additional context 🧬
Screenshots, etc. if relevant

Is there somethign in planning or are you open to pull requests?

@JaMe76
Copy link
Contributor

JaMe76 commented Dec 18, 2023

Hi!

Would be very helpful indeed. Nothing in this direction has been planned so far. I welcome
every type of implementation ideas and PRs as well.

I suggest to follow the pattern for loading files, PDFs, JSONS etc. i.e. something like

HTTPRequestSerializer

with a load method (loading to a local dir). This would make it easier later to integrate the Serializer into a pipeline.

@JaMe76 JaMe76 added the enhancement New feature or request label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants