markitdown/tests
Hemanth HM dd977ca1d8 Add serve command to start CORS enabled Flask server
Add a `serve` command to start a CORS-enabled Flask server for file conversion.

* **New Flask Server**: Add `src/markitdown/server.py` to define a Flask server with CORS enabled and a route to convert files to markdown.

* **Dependencies**: Update `pyproject.toml` to include `flask` and `flask-cors` as dependencies and add the `serve` command to the `[project.scripts]` section.
* **Documentation**: Update `README.md` with instructions on how to use the `serve` command.

* **Tests**: Add tests in `tests/test_markitdown.py` to verify the functionality of the `serve` command, including handling both URL and file POST data.

In case we decide not to have `serve` command we have [markdown-converter](https://pypi.org/project/markdown-converter/).
2024-12-30 21:30:22 -08:00
..
test_files Merge branch 'main' into main 2024-12-17 15:37:28 -08:00
__init__.py Initial commit. 2024-11-13 13:00:01 -08:00
test_markitdown.py Add serve command to start CORS enabled Flask server 2024-12-30 21:30:22 -08:00