Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

インストール

PyPI からインストール

pip install laurus

ソースからビルド

ソースからビルドするには Rust ツールチェーン(1.75 以降)と Maturin が必要です。

# Maturin をインストール
pip install maturin

# リポジトリをクローン
git clone https://github.com/mosuka/laurus.git
cd laurus/laurus-python

# 開発モードでビルドとインストール
maturin develop

# またはリリースホイールをビルド
maturin build --release
pip install target/wheels/laurus-*.whl

動作確認

import laurus
index = laurus.Index()
print(index)  # Index()

動作要件

  • Python 3.8 以降
  • コンパイル済みネイティブ拡張以外のランタイム依存関係なし