Metadata-Version: 2.4
Name: content-converter
Version: 1.2.0
Summary: マークダウンファイルを各種公開プラットフォーム用に変換するツール
Home-page: https://github.com/centervil/Content-Converter
Author: Centervil
Author-email: Centervil <info@centervil.example.com>
License: MIT License
        
        Copyright (c) 2025 Centervil
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://github.com/centervil/Content-Converter
Project-URL: Repository, https://github.com/centervil/Content-Converter
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyyaml>=6.0
Requires-Dist: python-frontmatter>=1.0.0
Requires-Dist: requests>=2.28.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: markdown>=3.4.0
Requires-Dist: pydantic>=2.5.2
Provides-Extra: oasis
Requires-Dist: oasis-article>=0.8.0; extra == "oasis"
Provides-Extra: dev
Requires-Dist: pytest>=7.3.1; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Requires-Dist: black>=23.3.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: mypy>=1.3.0; extra == "dev"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Content-Converter

テキストファイルを指定されたプロンプトとテンプレートに基づいて変換するツールです。

## 概要

Content-Converterは、LLMを活用して、入力テキストを指定されたプロンプトとテンプレートに基づいて変換します。CI/CDパイプラインから呼び出せる形式で提供され、自動化された変換処理を可能にします。

## 主な機能

- テキストファイルの変換処理
- プロンプトベースの変換制御
- テンプレートベースの出力形式定義
- 複数LLMプロバイダー対応
- カスタムプロンプト機能
- 任意のテキスト形式に対応

## ドキュメント

- [インストールガイド](docs/installation.md)
- [機能詳細](docs/features.md)
- [アーキテクチャー設計書](docs/architecture.md)
- [仕様書](docs/specification.md)
- [サポートされているLLMプロバイダー](docs/supported_llm_providers.md)

## サポートされているLLMプロバイダー

サポートされているLLMプロバイダーとその設定方法については、[LLMプロバイダー一覧](docs/supported_llm_providers.md)を参照してください。

## 使用方法

`content-converter` を使用する前に、Pythonの仮想環境を適切にセットアップし、依存関係が完全にインストールされていることを確認してください。

**重要: 仮想環境でのインストールに関する注意点**
`pip install content-converter` を実行した際に、稀に依存関係のインストールが不完全となる場合があります。特に `google.generativeai` モジュールが見つからない (`ModuleNotFoundError`) などのエラーが発生した場合は、以下の手順で対処してください。

1.  仮想環境内で `pip` を最新の状態に更新します。
    ```bash
    python -m ensurepip --upgrade
    python -m pip install --upgrade pip
    ```
2.  その後、`google-generativeai` を明示的にインストールします。
    ```bash
    pip install google-generativeai
    ```
これらの手順は、依存関係の完全な解決に役立ちます。

```bash
content-converter --input article.md --template template.md --output converted.md
```

詳細な使用方法や設定については、[仕様書](docs/specification.md)を参照してください。

## 出力形式

- 任意のテキスト形式に対応
- テンプレートベースの出力形式定義
- 入力と同形式の出力をサポート
- 環境変数またはコマンドライン引数でのAPIキー指定（[詳細](docs/specification.md#apiキーの指定方法)）

## 依存関係

必須依存パッケージ:
- pyyaml>=6.0
- python-frontmatter>=1.0.0
- requests>=2.28.0
- python-dotenv>=1.0.0
- markdown>=3.4.0
- pydantic>=2.5.2

## ライセンス

MIT License
