本リポジトリは、授業用資料の視覚的理解を助けるため、YAMLで定義された絵文字、矢印、テキスト要素を基に画像を自動生成する Python ライブラリを提供します。
プロジェクトに emograph を追加するには、以下のコマンドを実行してください。
poetry add git+https://github.com/Dot-labo/emograph.git- Poetry (2.0以上) をインストール
- 依存関係をインストール
poetry install
以下の手順で example ディレクトリ内のサンプルを実行できます。
cd example
poetry run python main.py --config=config_example.yml --output-name=output.pngまたは、仮想環境を手動で有効化してから実行することもできます。
cd example
source $(poetry env info --path)/bin/activate # 仮想環境を有効化 (必要なら)
python main.py --config=config_example.yml --output-name=output.png