Skip to main content

novel_generator

仓库:https://gitee.com/siwpan/novel-generator | 许可:MIT(见 LICENSE)

ASP 模板流中文小说自动生成引擎:基于多层嵌套循环 + 词库随机替换,可离线生成单章、整卷乃至全本小说。

语言 / 类型

  • 语言:Python 3(纯标准库,无第三方运行依赖)
  • 类型:命令行程序(含 setuptools 打包,python -m novel_generator 可用)

目录要点

  • main.py / run.py / unified_engine.py:命令行入口与统一引擎
  • engine/:生成器核心(章节、角色、战斗、叙事约束、词库等)
  • word_banks/:各类 JSON 词库(修仙、科幻、克苏鲁、武侠等题材)
  • tests/:pytest 测试;output/:历史生成结果
  • ARCHITECTURE.md:架构说明;pyproject.toml:打包配置

运行方式与依赖

无第三方运行依赖,Python >= 3.9。

python run.py --mode single --chapter-num 1 --seed 42
python run.py --mode volume --volume-num 1 --chapters 7
python -m novel_generator --help

测试状态

  • 语法检查:通过(34 个 .py 文件无语法错误)
  • 运行:单章生成实测通过(--mode single --chapter-num 1 --seed 42,输出 3412 字,退出码 0)

Metadata

Release files for novel-generator 2.0.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 novel-generator 2.0.0
File Size Uploaded Provenance
novel_generator-2.0.0.tar.gz 172.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for novel-generator 2.0.0
File Interpreter ABI Platform
novel_generator-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 357.7 kB

Release files / novel_generator-2.0.0.tar.gz

Download URL novel_generator-2.0.0.tar.gz
Size 172.2 kB
Tags Source
SHA-256 checksum
How to use checksums
83e4374eb78e18a21f6fce52056e4fa79457763b430e82c223109dca8116e227
BLAKE2b-256 checksum
How to use checksums
67f3642a0451de17bd3f2871bec13d531036291863e4b3d30dc183ce505aefa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / novel_generator-2.0.0-py3-none-any.whl

Download URL novel_generator-2.0.0-py3-none-any.whl
Size 185.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf3f2903562477803c90c60c0b03b6276815e6c9c8c974d2b6bfe4f80de049af
BLAKE2b-256 checksum
How to use checksums
3835d77e2a84a91406e3e6644eec4faefc8fd1df5b2d1cbb1c7330c0d0eeb819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for novel-generator 2.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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