This project is a simple web server application built using Flask that receives binary data from a file, converts it to Markdown format using the MarkItDown library, and returns the Markdown content.
python-web-server
├── src
│ ├── app.py # Entry point of the web server application
│ ├── mdserver.py # Contains the function to convert files to Markdown
│ └── utils
│ └── file_handler.py # Utility functions for file operations
├── requirements.txt # Lists the dependencies required for the project
└── README.md # Documentation for the project
-
Clone the repository:
git clone <repository-url> cd python-web-server
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the web server:
python src/app.py
-
Send a POST request with binary data to the server. The server will process the file, convert it to Markdown, and return the Markdown content in the response.
- Flask
- MarkItDown
This project is licensed under the MIT License.