This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.
gen-epub
用于生成 EPUB 的小工具。
安装
通过 pypi(推荐):
pip install GenEpub
从源码安装:
pip install git+https://github.com/apachecn/gen-epub
导入
from GenEpub import gen_epub
函数参考
gen_epub(articles, imgs, name, path)
-
articles: [{title: String, content: String}]文章列表,每个文章以对象表示,
title属性为标题(纯文本),content属性为正文(HTML)。在正文中引用图片时,将
<img>的src属性设为../Images/{文件名}。 -
imgs: Map{String: Buffer}图片字典,键为文件名,值为图片二进制数据。
-
name: String在书籍元信息中显示的书名,默认为
articles[0].title。 -
path: String保存文件的路径名,默认为当前工作目录下的
name + '.epub'。
协议
本项目基于 SATA 协议发布。
您有义务为此开源项目点赞,并考虑额外给予作者适当的奖励。
赞助我们
另见
Metadata
Release files for GenEpub 2023.7.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| GenEpub-2023.7.9.0.tar.gz | 8.3 kB | Without provenance | Details for GenEpub-2023.7.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| GenEpub-2023.7.9.0-py3-none-any.whl | Python 3 | none | any | Details for GenEpub-2023.7.9.0-py3-none-any.whl |
Total release size: 18.0 kB
Release files / GenEpub-2023.7.9.0.tar.gz
| Download URL | GenEpub-2023.7.9.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a912914b4c44327ee9016c08748e1ccf3bc197e8fb8d36097a8a8380e93ba61
|
|
BLAKE2b-256 checksum How to use checksums |
8289524a74e4915cb897b578d0aaafc43d61c9a18feba1bcc6bb745c87b122d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / GenEpub-2023.7.9.0-py3-none-any.whl
| Download URL | GenEpub-2023.7.9.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a5e6bd68f8c805595502ce8cbedefd9599b3c25cdd29333010ed142695e9463
|
|
BLAKE2b-256 checksum How to use checksums |
61f9efbaf768f61367948d8a685971f304f80a8e39876bc3ec6b4d93f99be1f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for GenEpub 2023.7.9.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.