Skip to main content


HovercraftAPI

~ Craft your story, let HovercraftAPI do the rest ~
PyPI - Version PyPI - Format PyPI - Implementation PyPI - Status PyPI - Downloads PyPI - Downloads PyPI - Downloads PyPI - Downloads

GitHub Repo stars forks - Sunwood-ai-labs GitHub Last Commit GitHub Top Language GitHub Release GitHub Tag GitHub Actions Workflow Status

[🌐 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 ファイルを参照してください。

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)

Source distribution for hovercraft-api 0.4.1
File Size Uploaded
hovercraft_api-0.4.1.tar.gz 20.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hovercraft-api 0.4.1
File Interpreter ABI Platform
hovercraft_api-0.4.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page