nova-book 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 单保录 (eagleye-china)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: nova-book
3
+ Version: 0.1.0
4
+ Summary: A stunning, GPU-accelerated desktop application for PySide6.
5
+ Author-email: eagleye-china <zdt168@sina.cn>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/eagleye-china/nova-book
8
+ Project-URL: Repository, https://github.com/eagleye-china/nova-book
9
+ Project-URL: Issues, https://github.com/eagleye-china/nova-book/issues
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: PySide6>=6.6
14
+ Requires-Dist: openai>=1.0
15
+ Requires-Dist: markdown>=3.5
16
+ Dynamic: license-file
17
+
18
+ # nova-book 🌟
19
+
20
+ > **A stunning, GPU-accelerated desktop application for PySide6.**
21
+
22
+ **English** | [简体中文](https://github.com/eagleye-china/nova-book/blob/main/README_zh.md)
23
+
24
+ [![PyPI version](https://img.shields.io/pypi/v/nova-book?color=blue&label=PyPI)](https://pypi.org/project/nova-book/)
25
+ [![Python Version](https://img.shields.io/pypi/pyversions/nova-book)](https://pypi.org/project/nova-book/)
26
+ [![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/eagleye-china/nova-book/blob/main/LICENSE)
27
+ [![GitHub Stars](https://img.shields.io/github/stars/eagleye-china/nova-book?style=social)](https://github.com/eagleye-china/nova-book)
28
+
29
+ ## 🤔 Why nova-book?
30
+
31
+ - 🚀 **Blazing Fast**: Built with pure PySide6 and QML.
32
+ - 🎨 **Stunning UI**: Native dark mode, smooth animations.
33
+
34
+ ## 📦 Installation
35
+
36
+ ```bash
37
+ pip install nova-book
38
+ ```
39
+
40
+ ## 🚀 Quick Start
41
+
42
+ ```python
43
+ from nova_book import __version__
44
+ print(f"Version: {__version__}")
45
+ ```
46
+
47
+ ## 📜 License
48
+
49
+ MIT License. See [LICENSE](https://github.com/eagleye-china/nova-book/blob/main/LICENSE).
@@ -0,0 +1,32 @@
1
+ # nova-book 🌟
2
+
3
+ > **A stunning, GPU-accelerated desktop application for PySide6.**
4
+
5
+ **English** | [简体中文](https://github.com/eagleye-china/nova-book/blob/main/README_zh.md)
6
+
7
+ [![PyPI version](https://img.shields.io/pypi/v/nova-book?color=blue&label=PyPI)](https://pypi.org/project/nova-book/)
8
+ [![Python Version](https://img.shields.io/pypi/pyversions/nova-book)](https://pypi.org/project/nova-book/)
9
+ [![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/eagleye-china/nova-book/blob/main/LICENSE)
10
+ [![GitHub Stars](https://img.shields.io/github/stars/eagleye-china/nova-book?style=social)](https://github.com/eagleye-china/nova-book)
11
+
12
+ ## 🤔 Why nova-book?
13
+
14
+ - 🚀 **Blazing Fast**: Built with pure PySide6 and QML.
15
+ - 🎨 **Stunning UI**: Native dark mode, smooth animations.
16
+
17
+ ## 📦 Installation
18
+
19
+ ```bash
20
+ pip install nova-book
21
+ ```
22
+
23
+ ## 🚀 Quick Start
24
+
25
+ ```python
26
+ from nova_book import __version__
27
+ print(f"Version: {__version__}")
28
+ ```
29
+
30
+ ## 📜 License
31
+
32
+ MIT License. See [LICENSE](https://github.com/eagleye-china/nova-book/blob/main/LICENSE).
@@ -0,0 +1,44 @@
1
+ # ==========================================================
2
+ # 🚀 nova-book 企业级打包配置
3
+ # ==========================================================
4
+ [build-system]
5
+ requires = ["setuptools>=77", "wheel"]
6
+ build-backend = "setuptools.build_meta"
7
+
8
+ [project]
9
+ name = "nova-book"
10
+ version = "0.1.0"
11
+ description = "A stunning, GPU-accelerated desktop application for PySide6."
12
+ readme = "README.md"
13
+ requires-python = ">=3.10"
14
+ license = "MIT"
15
+ authors = [{ name = "eagleye-china", email = "zdt168@sina.cn" }]
16
+ dependencies = ["PySide6>=6.6", "openai>=1.0", "markdown>=3.5"]
17
+
18
+ [project.urls]
19
+ Homepage = "https://github.com/eagleye-china/nova-book"
20
+ Repository = "https://github.com/eagleye-china/nova-book"
21
+ Issues = "https://github.com/eagleye-china/nova-book/issues"
22
+
23
+ [tool.setuptools.packages.find]
24
+ where = ["src"]
25
+
26
+ [tool.setuptools.package-data]
27
+ "nova_book" = [
28
+ "ui/*.qml",
29
+ "qml/*.qml",
30
+ "resources/*"
31
+ ]
32
+
33
+ [tool.ruff]
34
+ line-length = 100
35
+ target-version = "py310"
36
+
37
+ [tool.ruff.lint]
38
+ select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM"]
39
+ ignore = ["N802", "E501"]
40
+
41
+ [tool.mypy]
42
+ python_version = "3.10"
43
+ strict = true
44
+ ignore_missing_imports = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,25 @@
1
+ # -*- coding: utf-8 -*-
2
+ from pathlib import Path
3
+ import sys
4
+
5
+ # 优先从本地的 pyproject.toml 读取版本号(开发模式)
6
+ if sys.version_info >= (3, 11):
7
+ import tomllib
8
+ else:
9
+ import tomli as tomllib
10
+
11
+ try:
12
+ # 假设当前文件在 src/项目名/__init__.py,往上找 3 层就是项目根目录
13
+ _pyproject_path = Path(__file__).parent.parent.parent / "pyproject.toml"
14
+ with open(_pyproject_path, "rb") as f:
15
+ _data = tomllib.load(f)
16
+ __version__ = _data["project"]["version"]
17
+ except Exception: # noqa: BLE001
18
+ # 如果读不到,再尝试从已安装的包元数据读取(生产模式)
19
+ from importlib.metadata import version, PackageNotFoundError
20
+ try:
21
+ __version__ = version("nova-book")
22
+ except PackageNotFoundError:
23
+ __version__ = "0.1.0"
24
+
25
+ __all__ = ["__version__"]
@@ -0,0 +1,63 @@
1
+ import os
2
+ import zipfile
3
+
4
+
5
+ def create_book_zip():
6
+ book_name = "Nova_Book_v1.0"
7
+ os.makedirs(book_name, exist_ok=True)
8
+
9
+ # 定义全书结构(对应 CARF 四卷)
10
+ structure = {
11
+ "00_卷首": ["版权页.md", "著书宣言.md", "全书纲领.md"],
12
+ "01_卷一_构想_预构之道": [
13
+ "第01章_失控的前端.md",
14
+ "第02章_CARF宣言.md",
15
+ "第03章_预判与契约.md",
16
+ ],
17
+ "02_卷二_实现_旗舰基石": [
18
+ "第04章_PySide6架构.md",
19
+ "第05章_QML高级工程.md",
20
+ "第06章_四性标准.md",
21
+ ],
22
+ "03_卷三_打磨_应用孵化": [
23
+ "第07章_配方与七槽.md",
24
+ "第08章_P1至P10实战.md",
25
+ "第09章_业务注入.md",
26
+ ],
27
+ "04_卷四_封版_终极门禁": [
28
+ "第10章_CARF机检.md",
29
+ "第11章_API冻结与指纹.md",
30
+ "第12章_CI_CD集成.md",
31
+ ],
32
+ }
33
+
34
+ print(f"🚀 开始孵化《{book_name}》工程...")
35
+
36
+ # 1. 生成目录和 Markdown 骨架
37
+ for folder, files in structure.items():
38
+ folder_path = os.path.join(book_name, folder)
39
+ os.makedirs(folder_path, exist_ok=True)
40
+
41
+ for file in files:
42
+ file_path = os.path.join(folder_path, file)
43
+ with open(file_path, "w", encoding="utf-8") as f:
44
+ f.write(
45
+ f"# {file.replace('.md', '')}\n\n> 由小诺与伙伴共同撰写。\n\n<!-- 正文内容从这里开始 -->\n"
46
+ )
47
+
48
+ # 2. 打包成 ZIP
49
+ zip_filename = f"{book_name}.zip"
50
+ with zipfile.ZipFile(zip_filename, "w", zipfile.ZIP_DEFLATED) as zipf:
51
+ for root, _, files in os.walk(book_name):
52
+ for file in files:
53
+ file_path = os.path.join(root, file)
54
+ # 在 ZIP 中保留相对目录结构
55
+ arcname = os.path.relpath(file_path, book_name)
56
+ zipf.write(file_path, arcname)
57
+
58
+ print(f"✅ 孵化完成!已生成:{zip_filename}")
59
+ print("👉 你可以直接解压这个 ZIP,用 Typora 或 VS Code 开始写作了。")
60
+
61
+
62
+ if __name__ == "__main__":
63
+ create_book_zip()
@@ -0,0 +1 @@
1
+ // Desktop QML template...
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: nova-book
3
+ Version: 0.1.0
4
+ Summary: A stunning, GPU-accelerated desktop application for PySide6.
5
+ Author-email: eagleye-china <zdt168@sina.cn>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/eagleye-china/nova-book
8
+ Project-URL: Repository, https://github.com/eagleye-china/nova-book
9
+ Project-URL: Issues, https://github.com/eagleye-china/nova-book/issues
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: PySide6>=6.6
14
+ Requires-Dist: openai>=1.0
15
+ Requires-Dist: markdown>=3.5
16
+ Dynamic: license-file
17
+
18
+ # nova-book 🌟
19
+
20
+ > **A stunning, GPU-accelerated desktop application for PySide6.**
21
+
22
+ **English** | [简体中文](https://github.com/eagleye-china/nova-book/blob/main/README_zh.md)
23
+
24
+ [![PyPI version](https://img.shields.io/pypi/v/nova-book?color=blue&label=PyPI)](https://pypi.org/project/nova-book/)
25
+ [![Python Version](https://img.shields.io/pypi/pyversions/nova-book)](https://pypi.org/project/nova-book/)
26
+ [![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/eagleye-china/nova-book/blob/main/LICENSE)
27
+ [![GitHub Stars](https://img.shields.io/github/stars/eagleye-china/nova-book?style=social)](https://github.com/eagleye-china/nova-book)
28
+
29
+ ## 🤔 Why nova-book?
30
+
31
+ - 🚀 **Blazing Fast**: Built with pure PySide6 and QML.
32
+ - 🎨 **Stunning UI**: Native dark mode, smooth animations.
33
+
34
+ ## 📦 Installation
35
+
36
+ ```bash
37
+ pip install nova-book
38
+ ```
39
+
40
+ ## 🚀 Quick Start
41
+
42
+ ```python
43
+ from nova_book import __version__
44
+ print(f"Version: {__version__}")
45
+ ```
46
+
47
+ ## 📜 License
48
+
49
+ MIT License. See [LICENSE](https://github.com/eagleye-china/nova-book/blob/main/LICENSE).
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/nova_book/__init__.py
5
+ src/nova_book/main.py
6
+ src/nova_book.egg-info/PKG-INFO
7
+ src/nova_book.egg-info/SOURCES.txt
8
+ src/nova_book.egg-info/dependency_links.txt
9
+ src/nova_book.egg-info/requires.txt
10
+ src/nova_book.egg-info/top_level.txt
11
+ src/nova_book/qml/main.qml
@@ -0,0 +1,3 @@
1
+ PySide6>=6.6
2
+ openai>=1.0
3
+ markdown>=3.5
@@ -0,0 +1 @@
1
+ nova_book