Skip to main content

Generate seo content (title, description, keywords) for blog post with AI, support blog framework like Hexo, Hugo, etc.

Project description

Blog AI tool

Genertate seo content for static blog post with AI, support blog framework like Hexo, Hugo, etc.

Features

  • Generate seo content (title, description, keywords) for blog posts in markdown format
  • Support blog framework like Hexo, Hugo, etc.
  • Support multiple language
  • Support multiple AI model like OpenAI, Qwen, Llama, etc. As long as the model provides openai-compatible API.

Installation

pip install blog-ai-tool

Usage

Command Line

# Using default config file
blog-ai-tool

# Using custom config file
blog-ai-tool --config my-config.toml

# Override specific settings
blog-ai-tool --directory content/posts --model gpt-4

Python API

from blog_ai_tool import HugoBlogProcessor, load_config

# Load configuration
config = load_config("blog-ai-tool.toml")

# Initialize processor
processor = HugoBlogProcessor(
    api_key="your-api-key",
    base_url="https://api.openai.com/v1",
    model="gpt-4",
    language="auto",
    config=config
)

# Process a single file
processor.process_markdown("path/to/post.md")

Configuration

Download the example config file and modify it to your needs. Put the config file in your blog root directory (the same level as as your blog config file), then run the command.

License

MIT

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

blog_ai_tool-0.1.1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

blog_ai_tool-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file blog_ai_tool-0.1.1.tar.gz.

File metadata

  • Download URL: blog_ai_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for blog_ai_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 71633922c8323a6686d77294efe16388c23c371b2a10977a23116a8b744c7599
MD5 9807bf056018b6c6acf3d3975232ec03
BLAKE2b-256 5591c9523726f6c5a770d2f97f6010106939891e47c2a02a99a33e0fd54e8a78

See more details on using hashes here.

File details

Details for the file blog_ai_tool-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for blog_ai_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5de21a4754541fa511336966eb5e7daf039ce11f7fa58c99ae4e8c831a51589
MD5 3345aa98cce910de8b5e95090c19e5f0
BLAKE2b-256 9240c337832315a02d3395f35751145e1d927a52b81b9f7dc2fe7aebcd747d8b

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