Skip to content

SeimoDev/Turn2Markdown-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turn2Markdown

Turn2Markdown Logo

Description

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.

Features

  • Upload files
  • Convert files using MarkItDown
  • Download converted files
  • Automatically delete files after 10 minutes
  • CORS support

Installation

  1. Clone the repository:

    git clone https://github.com/SeimoDev/Turn2Markdown-Server.git
    cd Turn2Markdown-Server
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt

Usage

  1. Run the FastAPI application:

    uvicorn main:app --reload
  2. Open your browser and navigate to http://127.0.0.1:8000/docs to access the API documentation.

License

This project is licensed under the GPL v3 License. See the LICENSE file for more details.


描述

该项目是一个FastAPI应用程序,允许用户上传文件,使用MarkItDown进行转换,并下载转换后的文件。该应用程序还包括一个功能,可以在10分钟后自动删除上传和转换的文件。

功能

  • 上传文件
  • 使用MarkItDown转换文件
  • 下载转换后的文件
  • 10分钟后自动删除文件
  • 支持CORS

安装

  1. 克隆仓库:

    git clone git clone https://github.com/SeimoDev/Turn2Markdown-Server.git
    
    cd Turn2Markdown-Server
  2. 创建虚拟环境并激活:

    python -m venv venv
    source venv/bin/activate  # 在Windows上使用 `venv\Scripts\activate`
  3. 安装依赖:

    pip install -r requirements.txt

使用

  1. 运行FastAPI应用程序:

    uvicorn main:app --reload
  2. 打开浏览器并导航到 http://127.0.0.1:8000/docs 以访问API文档。

许可证

该项目使用GPL v3许可证。有关更多详细信息,请参阅LICENSE文件。

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages