Skip to main content

iil-outlinefw

Story Outline Framework for AI-assisted creative writing.

Pure Python — no Django, no DB dependency in the core.

PyPI Python License: MIT

Part of the iil- platform package family alongside iil-aifw, iil-authoringfw, iil-promptfw.

Install

pip install iil-outlinefw
# With Outline Wiki knowledge enrichment:
pip install "iil-outlinefw[knowledge]"
# With Django adapter:
pip install "iil-outlinefw[django]"
# Everything:
pip install "iil-outlinefw[full]"

Extras / Optional Dependencies

Extra Dependencies Purpose
knowledge httpx, pydantic-settings, tenacity Outline Wiki client + context enrichment
django django>=4.2 Django service adapter
full all above + dev Full feature set

Features

  • 5 story frameworks: Three-Act, Save the Cat, Hero's Journey, Five-Act, Dan Harmon Story Circle
  • Beat definitions with act position (0.0–1.0), tension level, emotional arc
  • OutlineGenerator: LLM-based outline generation via any iil-aifw-compatible router
  • parse_nodes(): Robust JSON parser for LLM responses (handles fencing, <think> tags, leading text)
  • Pydantic schemas: OutlineNode, OutlineResult, ProjectContext
  • Django adapter in outlinefw.django_adapter (optional, no hard dependency)

Quick Start

from outlinefw import OutlineGenerator, FRAMEWORKS
from outlinefw.schemas import ProjectContext

gen = OutlineGenerator(my_llm_router)

ctx = ProjectContext(
    title="My Novel",
    genre="Thriller",
    description="A story about ...",
)

# generate(framework_key, context) — always returns an OutlineResult, never raises
result = gen.generate("save_the_cat", ctx)
for node in result.nodes:
    print(f"{node.position:.2f} {node.title} [{node.beat_name}]")

Frameworks

Key Name Beats
three_act Drei-Akt-Struktur 7
save_the_cat Save the Cat 15
heros_journey Heldenreise 12
five_act Fuenf-Akt-Struktur 5
dan_harmon Dan Harmon Story Circle 8

Architecture

src/outlinefw/
    __init__.py        # Public API
    schemas.py         # Pydantic: OutlineNode, OutlineResult, ProjectContext
    frameworks.py      # FRAMEWORKS dict + BeatDefinition TypedDicts
    generator.py       # OutlineGenerator (LLMRouter Protocol)
    parser.py          # parse_nodes() -- robust LLM JSON parser
    django_adapter.py  # Optional Django bridge (override in host app)

Used By

  • writing-hub — outline generation + standalone Outlines section
  • travel-beat — scene-based story planning (migration planned)
  • bfagent — advanced outline handlers (migration planned)

Part of the iil- Platform

Package Purpose
iil-aifw LLM routing (DB-driven)
iil-promptfw Prompt templates (Jinja2)
iil-authoringfw Authoring schemas (chapters, style)
iil-outlinefw Story structure + outline generation
iil-weltenfw WeltenHub REST client

Changelog

See CHANGELOG.md.

Metadata

Release files for iil-outlinefw 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iil-outlinefw 0.4.0
File Size Uploaded Provenance
iil_outlinefw-0.4.0.tar.gz 44.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for iil-outlinefw 0.4.0
File Interpreter ABI Platform
iil_outlinefw-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 72.2 kB

Release files / iil_outlinefw-0.4.0.tar.gz

Download URL iil_outlinefw-0.4.0.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e58ce113736c9aff7199ba18b6b5ee32db47727fe4eda0109dcab4909d4e7136
BLAKE2b-256 checksum
How to use checksums
bd2d67438973f7968c0f27ba26b4fd2e72db8cd918fa74a86e08215c35c8f4d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / iil_outlinefw-0.4.0-py3-none-any.whl

Download URL iil_outlinefw-0.4.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cf31ab2a3e10f071138bb3da277efac0e0904d1124132e995ef34747ce9d222
BLAKE2b-256 checksum
How to use checksums
a1cd51b34ed52d7dca30456679befa91dab0bde2051635a953ffeb11647add65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Security for iil-outlinefw 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iil_outlinefw-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page