Markdown
ai-blog-publisher
ai-blog-publisher (aiblog) is an enterprise-grade, resilient CLI utility that leverages local Ollama LLMs to generate structured blog posts and safely commit them to remote JSON schema files on GitHub.
Features
- LLM Resilience & JSON Repair: Strips markdown code fences and repairs malformed model outputs automatically.
- Service Health-Check: Validates that the local Ollama daemon and selected model are online before execution.
- Exponential Backoff Retries: Handles transient network failures during GitHub API interactions.
- Dry-Run Safety Mode: Test generation locally without committing to remote repositories (
--dry-run).
Installation
pip install --editable .
Configuration
Set your environment variables:
Bash
export GITHUB_TOKEN="your_github_token"
export GITHUB_REPO="your-username/your-repo-name"
Usage
Bash
# Standard interactive run
aiblog
# Test generation without pushing to GitHub
aiblog --dry-run
# Use custom model or file path
aiblog --model "llama3" --path "_data/posts.json"
License
Distributed under the MIT License. See LICENSE for more information.
Metadata
Release files for ai-blog-publisher 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai_blog_publisher-0.2.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_blog_publisher-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / ai_blog_publisher-0.2.0.tar.gz
| Download URL | ai_blog_publisher-0.2.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abcd7300516578eb42ad323e820bfc80dc6e8a55364825f9092a3d639e7d9e7a
|
|
BLAKE2b-256 checksum How to use checksums |
5999ab20018795b5503ed2782f52352f22be9b32cde3e3c01a7093abb6b5f3bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / ai_blog_publisher-0.2.0-py3-none-any.whl
| Download URL | ai_blog_publisher-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9d43dcdb6624c274ee91ea872425567ed828fc137bd854267530b18933a54fe
|
|
BLAKE2b-256 checksum How to use checksums |
b91ed857c2f7dbcf8bfb4c1f2e86421ecb21427199e8a29324ad87aa2659a116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|