This project is a FastAPI application that allows users to upload files, convert them using MarkItDown, and download the converted files. The application also includes a feature to automatically delete uploaded and converted files after 10 minutes.
- Upload files
- Convert files using MarkItDown
- Download converted files
- Automatically delete files after 10 minutes
- CORS support
-
Clone the repository:
git clone https://github.com/SeimoDev/Turn2Markdown-Server.git cd Turn2Markdown-Server
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Run the FastAPI application:
uvicorn main:app --reload
-
Open your browser and navigate to
http://127.0.0.1:8000/docs
to access the API documentation.
This project is licensed under the GPL v3 License. See the LICENSE file for more details.
该项目是一个FastAPI应用程序,允许用户上传文件,使用MarkItDown进行转换,并下载转换后的文件。该应用程序还包括一个功能,可以在10分钟后自动删除上传和转换的文件。
- 上传文件
- 使用MarkItDown转换文件
- 下载转换后的文件
- 10分钟后自动删除文件
- 支持CORS
-
克隆仓库:
git clone git clone https://github.com/SeimoDev/Turn2Markdown-Server.git cd Turn2Markdown-Server
-
创建虚拟环境并激活:
python -m venv venv source venv/bin/activate # 在Windows上使用 `venv\Scripts\activate`
-
安装依赖:
pip install -r requirements.txt
-
运行FastAPI应用程序:
uvicorn main:app --reload
-
打开浏览器并导航到
http://127.0.0.1:8000/docs
以访问API文档。
该项目使用GPL v3许可证。有关更多详细信息,请参阅LICENSE文件。