Skip to main content

Useful ai tools for markdown blog posts, support ai seo, ai summary, ai translation, etc. Compatible with blog framework like Hexo, Hugo, etc.

Project description

🤖 Blog AI tool

PyPI - Version PyPI - License Static Badge Static Badge

🌟 Useful ai tools for blog framework like Hexo, Hugo, etc, as long as you manage your blog with markdown format. 简体中文

✨ Features

  • 🎯 Generate seo content (title, description, keywords) for blog posts in markdown format
  • 📝 Generate ai summary for blog posts
  • 🌍 Translate blog posts to multiple languages
  • 🛠️ 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

# if the above command is not working, try to use this following command instead
python -m 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

Disclaimer: AI may destory your blog, please use git to backup your blog before use. Also, its not recommended to use this tool without reviewing the generated content. Always check the generated content before publishing. The best time to use this tool is right after you have written the blog post, before publishing.

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.

🤝 Development

We sincerely welcome any contributions to this project. Please feel free to submit your ideas and suggestions.

📝 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.2.tar.gz (21.8 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.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for blog_ai_tool-0.1.2.tar.gz
Algorithm Hash digest
SHA256 34d90dd8cb56b335a08d4a2d15ff563de8cfe12a45e6e1670e8aff78c90efb68
MD5 a8fd03c447a7ce940872bd74639abe83
BLAKE2b-256 f07ee3d3da84f631c302aff9d8ffdd6868d28dc12a9fd0928cfb48cf583473d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blog_ai_tool-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6df27a7076f82e1eefbd780fba5d4ffed490c71f557919d5b41bf1a7410f5df
MD5 d522f5fba294b78d5b7dffbf8acd012a
BLAKE2b-256 4d6c10f330e65d1af29e1f645322a151ba4e2e9418d52b705460bb8e48cce22d

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