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🥇
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 · 3,107 views · 28 clicksSaaS · Week 45 · 3,107 views · 28 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 40,503 views · 216 clicksWebsite · Week 45 · 40,503 views · 216 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 38,595 views · 110 clicksSaaS · Week 45 · 38,595 views · 110 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 57,633 views · 197 clicksSaaS · Week 45 · 57,633 views · 197 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 27,065 views · 119 clicksDesktop App · Week 45 · 27,065 views · 119 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 3,000 views · 18 clicksWebsite · Week 45 · 3,000 views · 18 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
1,695 views · 16 clicksWeek 45 · 1,695 views · 16 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
1,587 views · 13 clicksWeek 45 · 1,587 views · 13 clicks