Catalog PyPI
PACKAGE EXPLORERView in registry

ai-blog-publisher

PyPI

An enterprise-grade CLI utility to generate structured blog posts using local Ollama and push them to GitHub JSON schemas.

Versions collected1
Direct dependencies3From release 0.2.0
Last observed21 Oct, 10:02 UTC

README

Version 0.2.0 documentation

Markdown

ai-blog-publisher

PyPI version Python Versions License: MIT

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.026 Jul 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:02 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:be2969b890b2c5040b926f75fa968db2c38160b65950d4968157121653ad0c17