Django eBook Generator Script

Description
eBook Generator is a Django-based tool that converts manuscripts (TXT, DOCX, or PDF) into professionally formatted PDF eBooks. It automatically detects chapter and section structure — including headings, numbered sections, and list-style entries — and presents it on an editable Structure step so nothing gets baked into the final book without review. The output PDF ships with an auto-generated table of contents, branded typography (Inter for body, Coderobotics for headings), and a matching AI-generated cover produced via Pollinations.ai, with Hugging Face as a free-tier fallback. The entire pipeline — parsing, cover generation, and PDF building — runs as background jobs, synchronously by default for local development or via Celery and Redis for production. Built entirely on free tools and free-tier services, it requires no paid APIs to run. Complete source code included.
Features
What You Get
- Manuscript upload and parsing for TXT, DOCX, and PDF source files
- Automatic chapter/section detection (heading styles, "Chapter/Part N" markers, numbered listicle entries, and list-style formatting)
- An editable Structure step so detected chapters/sections can be reviewed and corrected before generation
- Auto-generated table of contents in the final PDF
- AI-generated cover art (Pollinations.ai, with Hugging Face free tier as fallback) with the title/author rendered as a clean text overlay — never baked into the image
- Optional reference image upload used as loose style inspiration for the cover
- Branded PDF output with custom embedded fonts (Inter for body text, CodeRobotics for headings)
- Background job processing for parsing, cover generation, and PDF building
Why This Toolkit?
- Zero paid dependencies — runs entirely on free tools and free-tier AI services
- Human-in-the-loop structure editing means auto-detection mistakes never make it into the final book
- Clean, modern UI (Tailwind + HTMX + Alpine.js) with no page-reload workflow
- Runs fully locally with no external job queue required for development
Perfect For
- Independent authors self-publishing a manuscript as a PDF e-book
- Small publishers needing a fast first-pass layout and cover concept
- Writers who want a quick, presentable PDF without touching design tools
Requirements
- Django 6
- Celery (background task processing)
- WeasyPrint (PDF rendering)
- python-docx, PyMuPDF (document parsing)
- Tailwind CSS, HTMX, Alpine.js (frontend)
- Pollinations.ai / Hugging Face (AI cover generation)
Instructions
- Python environment with project dependencies installed
- GTK3 runtime on Windows (for WeasyPrint/PDF rendering); native on Linux/Docker via standard Pango/Cairo libraries
- Redis + Celery worker for production-style background processing (optional for local development, which runs jobs synchronously)
| Author | coderobotics |
|---|---|
| Category | Scripts & Code / Django |
| Price | $30 |
| Extended License | $90 |
| First Release | Sep 22, 2026 |
| Last Update | Sep 22, 2026 |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 3,957 views · 16 clicksOther · Week 47 · 3,957 views · 16 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 4,075 views · 18 clicksSaaS · Week 47 · 4,075 views · 18 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 11,557 views · 80 clicksSaaS · Week 47 · 11,557 views · 80 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 3,936 views · 7 clicksSaaS · Week 47 · 3,936 views · 7 clicks