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

Expose via Web API #133

Open
lqdev opened this issue Dec 19, 2024 · 4 comments
Open

Expose via Web API #133

lqdev opened this issue Dec 19, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request open for contribution Invites open-source developers to contribute to the project.

Comments

@lqdev
Copy link

lqdev commented Dec 19, 2024

Set up a Web API so users can use the library via a REST endpoint.

This is also useful for Docker scenarios as well.

@lqdev
Copy link
Author

lqdev commented Dec 19, 2024

Feel free to assign this one to me.

@gagb gagb added enhancement New feature or request open for contribution Invites open-source developers to contribute to the project. labels Dec 19, 2024
@gautam-e
Copy link

I started working on something like this but the moment I import from markitdown import MarkItDown I get the ugly warning:

python3.12/site-packages/starlette/routing.py:297: ResourceWarning: Unclosed file <tempfile.SpooledTemporaryFile object at 0x149021990>
  await self.app(scope, receive, send)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

This is without even actually instantiating a MarkItDown object let alone using it. Is that a bug in the package?

vs4vijay added a commit to vs4vijay/markitdown that referenced this issue Dec 22, 2024
@gautam-e
Copy link

Here's a web app I made that works with Markitdown. I use it for my personal workflow: www.docx2md.com

@luisquintanilla
Copy link
Member

Great to see the community work and samples around this!

@elbruno also put together a quick sample of how such an API might be consumed in a C# client application.

https://github.com/elbruno/MarkItDownServer

Once #202 is merged, it'd be great to publish the Dockerfile as an image to the Microsoft Container Registry so you don't have to pull down the entire repo to use the container / server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open for contribution Invites open-source developers to contribute to the project.
Projects
None yet
Development

No branches or pull requests

4 participants