Skip to main content

マークダウンファイルを各種公開プラットフォーム用に変換するツール

Project description

Content-Converter

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

概要

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

主な機能

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

ドキュメント

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

サポートされているLLMプロバイダーとその設定方法については、LLMプロバイダー一覧を参照してください。

使用方法

content-converter --input article.md --template template.md --output converted.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

content_converter-1.1.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

content_converter-1.1.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file content_converter-1.1.0.tar.gz.

File metadata

  • Download URL: content_converter-1.1.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for content_converter-1.1.0.tar.gz
Algorithm Hash digest
SHA256 afbdd58903eaae0d1f530b5283832c3b16a9a0ab1504f1ef711a08f99cf053ac
MD5 1757a41b05c124972f9df0358f27ad31
BLAKE2b-256 62802cea57e30a2c2962bc51199e2430d485e033f6dc52f0ba6ae24064e75f5e

See more details on using hashes here.

File details

Details for the file content_converter-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for content_converter-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e138fbe79ec4fd36f7669afc2da85b297bcf8cc8f89e8078497ee8580cf33f
MD5 17882a6919654fecd4b696d46c700481
BLAKE2b-256 5ce018eb479d638290ad12985e421fb5353a70cd761933d46e6b2541ada1083a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page