markitdown

(★ 175,168)

파일 및 오피스 문서를 Markdown으로 변환하는 Python 도구입니다.

파일 탐색기

  • .dockerignore
  • .gitattributes
  • .gitignore
  • .pre-commit-config.yaml
  • CODE_OF_CONDUCT.md
  • Dockerfile
  • LICENSE
  • README.md
  • SECURITY.md
  • SUPPORT.md

# 설치 가이드

python
사전 준비물

설치 및 실행 절차

git clone https://github.com/microsoft/markitdown.git

저장소를 로컬에 복제합니다.

python -m venv .venv

파이썬 가상 환경을 생성합니다.

source .venv/bin/activate

가상 환경을 활성화합니다.

pip install -e 'packages/markitdown[all]'

모든 선택적 의존성을 포함하여 패키지를 개발 모드로 설치합니다.

핵심 명령어

pip install 'markitdown[all]'

MarkItDown 및 선택적 의존성을 설치합니다.

markitdown path-to-file.pdf -o document.md

파일을 마크다운으로 변환합니다.

I/O 작업을 수행하므로 신뢰할 수 없는 환경에서는 입력값을 정제하여 사용하세요.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

릴리즈 타임라인

활발히 관리 중

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

conda activate

설명 보기 ▼

Activate a conda environment.
See also: `conda deactivate`.

conda activate myenv

Activate an existing environment named `myenv`:

conda activate {{path/to/myenv}}

Activate an existing environment located at custom path:

conda activate --stack myenv

Stack `myenv` environment on top of a previous environment making libraries/commands/variables from both accessible:

🔍

conda create

설명 보기 ▼

Create new conda environments.

conda create {{[-y|--yes]}} {{[-n|--name]}} py39 python=3.9 "numpy>=1.11" scipy

Create a new environment named `py39`, install Python 3.9, NumPy v1.11 or above in it, and the latest stable version of SciPy. Say yes to all confirmations:

conda create {{[-n|--name]}} myenv --file {{file1.yml}} --file {{file2.yml}}

Create a new environment named `myenv` and install packages listed in files:

conda create {{[-p|--prefix]}} {{path/to/myenv}}

Create a new environment at a custom path (i.e. prefix):

🔍

docker build

설명 보기 ▼

Build an image from a Dockerfile.

docker build .

Build a Docker image using the Dockerfile in the current directory:

docker build {{github.com/creack/docker-firefox}}

Build a Docker image from a Dockerfile at a specified URL:

docker build {{[-t|--tag]}} {{name:tag}} .

Build a Docker image and tag it:

🔍

docker run

설명 보기 ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

hatch

설명 보기 ▼

현대적이고 확장 가능한 Python 프로젝트 관리자.
관련 항목: `poetry`.
더 많은 정보: <https://hatch.pypa.io/latest/cli/reference/>.

hatch new {{project_name}}

새로운 Hatch 프로젝트 생성:

hatch new --init

기존 프로젝트에 Hatch 초기화:

hatch build

Hatch 프로젝트 빌드:

🔍

pip install

설명 보기 ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

pre-commit

설명 보기 ▼

커밋 전에 실행되는 Git 훅을 생성.
더 많은 정보: <https://pre-commit.com/#command-line-interface>.

pre-commit install

Git 훅에 pre-commit 설치:

pre-commit run

모든 스테이지된 파일에 pre-commit 훅 실행:

pre-commit run --all-files

스테이지 여부와 상관없이 모든 파일에 pre-commit 훅 실행:

🔍

python

설명 보기 ▼

Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.

python

REPL(대화형 셸) 시작:

python {{path/to/file.py}}

특정 Python 파일 실행:

python -i {{path/to/file.py}}

특정 Python 파일 실행 후 REPL 시작:

🔍

uv venv

설명 보기 ▼

Create an isolated Python environment for installing packages.

uv venv

Create a virtual environment in the default location (`.venv`):

uv venv {{path/to/venv}}

Create a virtual environment at a specific path:

uv venv {{[-p|--python]}} {{3.12}}

Create using a specific Python version:

# 프로젝트 배지

// repository documentation