HovercraftAPI
~ Craft your story, let HovercraftAPI do the rest ~
[🌐 Website] • [🐱 GitHub] [🐦 Twitter] • [🍀 Official Blog]
[!IMPORTANT] このリポジトリのリリースノートやREADME、コミットメッセージの9割近くはclaude.aiやChatGPT4を活用したAIRA, SourceSage, Gaiah, HarmonAI_IIで生成しています。
🌟 HovercraftAPI
HovercraftAPIは、Markdownファイルから印象的なHovercraftプレゼンテーションを簡単に作成するためのPythonツールです。Mermaidダイアグラムやコードブロックのサポート、カスタムCSSによるスタイリング、動的な3Dトランジション、SVG変換など、多彩な機能を提供します。
🎥 デモ
https://github.com/user-attachments/assets/670f8b37-88eb-4f8e-9bbe-2bf9f7797d5e
🚀 はじめに
インストール
pip install hovercraft-api
📝 HovercraftAPIの使い方
コマンドラインインターフェース
基本的な使用方法:
hovercraftapi example/README.md -c css/mytheme.css
3Dダイナミックトランジションを有効にする場合:
hovercraft-api example3/README.md -c css/mytheme.css --enable-dynamic-position
カスタムCSSの使用
poetry run hovercraft-api example3/README.md -c css/oasis.css --enable-dynamic-position
poetry run hovercraft-api example3/README.md -c css/Deepsea_and_Rust.css --enable-dynamic-position --svg-css-file css/svg_oasis.css
Pythonスクリプト内での使用
from hovercraft_api import HovercraftAPI
api = HovercraftAPI("your_markdown_file.md", css_file="path/to/your/custom.css", enable_dynamic_position=True)
api.generate_slides()
特徴
- Markdownからスライドを生成
- Mermaidダイアグラムとコードブロックをサポート
- カスタムCSSによるスタイリング
- CLIインターフェース対応
- スライドのキャプチャと動画生成機能
- 動的なスライド位置決め機能
- MermaidダイアグラムのSVG変換とアニメーション
- ローカルMermaid SVGプレビューサーバー
必要条件
- Python 3.10以上
- Poetry(依存関係管理に使用)
- その他の依存関係は
pyproject.tomlを参照してください。
プロジェクト構造
HovercraftAPI/
├─ css/
│ ├─ mytheme.css
│ ├─ flowchart1.css
├─ docs/
│ ├─ usage.md
├─ example/
│ ├─ README.md
│ ├─ sample.py
├─ hovercraft_api/
│ ├─ code_block_alchemist.py
│ ├─ dynamic_rst_adjuster.py
│ ├─ HovercraftAPI.py
│ ├─ hovercraft_converter.py
│ ├─ markdown_to_rst_converter.py
│ ├─ markdown_to_slides_converter.py
│ ├─ mermaid_alchemist.py
│ ├─ mermaid_server.py
│ ├─ mermaid_svg_converter.py
│ ├─ rst_adjuster.py
│ ├─ slide_capturer.py
│ ├─ svg_animator.py
│ ├─ utils.py
│ ├─ __init__.py
├─ pyproject.toml
├─ README.md
🛠️ 開発
このプロジェクトはPoetryを使用して依存関係を管理しています。開発環境のセットアップは以下のコマンドで行えます:
poetry install
3Dダイナミックトランジションを有効にしてHovercraftAPIを実行:
poetry run hovercraft-api example2\README.md --enable-dynamic-position
ローカルMermaid SVGプレビューサーバーを起動:
poetry run python hovercraft_api\mermaid_server.py
MermaidダイアグラムをSVGに変換:
poetry run python hovercraft_api\mermaid_svg_converter.py
スライドのキャプチャと動画生成:
poetry run hovercraft-api example2\README.md --stages capture_slides --capture-images --capture-video
🤝 貢献
プルリクエストは大歓迎です。大きな変更の場合は、まずissueを開いて議論してください。
🙏 サポート
問題が発生した場合は、GitHubのissueを開いてください。
📄 ライセンス
このプロジェクトはMITライセンスの下で公開されています。詳細は LICENSE ファイルを参照してください。
Metadata
Release files for hovercraft-api 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hovercraft_api-0.4.1.tar.gz | 20.2 kB | Without provenance | Details for hovercraft_api-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hovercraft_api-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for hovercraft_api-0.4.1-py3-none-any.whl |
Total release size: 47.2 kB
Release files / hovercraft_api-0.4.1.tar.gz
| Download URL | hovercraft_api-0.4.1.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87c9b4712fe1ee1fd15f31ad71a36367aef45d56dd724283dd6be237cbcec39d
|
|
BLAKE2b-256 checksum How to use checksums |
cb12805541f936c8d5c1768a51487396b831ac32272449f58d63b9cd5219778a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / hovercraft_api-0.4.1-py3-none-any.whl
| Download URL | hovercraft_api-0.4.1-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
debbacff4628bd2f06d45410ecb79bdadaa019c35d3d74204c41d9451ce40d65
|
|
BLAKE2b-256 checksum How to use checksums |
1576144490a61884e5aa31a7cedc39b02446c3232dc09a2421c2834128f0bb9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for hovercraft-api 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.