txt2mobi3_app
Create a simple PyQt5 application for converting Chinese txt files into mobi files. It wraps txt2mobi3. Since it supports Chinese only, the documentation and the code comments are written in Chinese.
1. 安装和运行
1.1. 从PyPI安装和运行:
$ pip install txt2mobi3_app
$ txt2mobi3_app
1.2. 从安装包:
Linux
下面以Ubuntu 16.04LTS为例:
$ sudo dpkg -i target/txt2mobi3_app.deb
MacOS
将txt2mobi3_app.dmg移动到Application中。
Windows
点击运行txt2mobi3_appSetup.exe。
2. 产生安装包
这里我们使用fbs来产生Linux、MacOS和Windows上的安装包。注意我们依赖的三个关键python包的版本如下:
fbs==0.3.6 PyQt5==5.11.3 PyInstaller==3.4
2.1. Linux
下面以Ubuntu 16.04LTS为例:
$ sudo apt install ruby ruby-dev rubygems build-essential
$ sudo gem install --no-ri --no-rdoc fpm
产生安装包
$ python -m fbs installer
生成的安装包txt2mobi3_app.deb会在target目录中。
如果想产生一个可以单独运行的可执行文件,那么就运行下面这个fbs命令。
$ python -m fbs freeze
生成的可执行文件位于target/txt2mobi3_app目录中。将target/txt2mobi3_app目录复制到别的机器上后就可运行其中的可执行文件。
2.2. MacOS
以macOS Sierra 10.12.6为例:
先产生一个可以单独执行的可执行文件。
$ python -m fbs freeze
产生安装包。
$ python -m fbs installer
2.3. Windows
如果是Windows 10,你可能需要安装Windows 10 SDK。
安装NSIS并将其安装目录添加到PATH环境变量中。
产生安装包
$ python -m fbs installer
生成的安装包txt2mobi3_appSetup.exe.ext会在target目录中。
如果想产生一个可以单独运行的可执行文件,那么就运行下面这个fbs命令。
$ python -m fbs freeze
3. README.rst
README.rst is generated from README.md via pandoc.
$ pandoc --from=markdown --to=rst --output=README.rst README.md
Metadata
Release files for txt2mobi3-app 0.2.1
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 |
|---|---|---|---|---|
| txt2mobi3_app-0.2.1.tar.gz | 23.8 MB | Without provenance | Details for txt2mobi3_app-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| txt2mobi3_app-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for txt2mobi3_app-0.2.1-py3-none-any.whl |
Total release size: 47.8 MB
Release files / txt2mobi3_app-0.2.1.tar.gz
| Download URL | txt2mobi3_app-0.2.1.tar.gz |
|---|---|
| Size | 23.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c772249e11f873ee664856accc234a4bb051c5dde2c060632546314dbf412ac
|
|
BLAKE2b-256 checksum How to use checksums |
d2b791cab59f8ab308819e624c66f74a4e808beb7b08ba9977431cf97aa7e01f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6
|
Release files / txt2mobi3_app-0.2.1-py3-none-any.whl
| Download URL | txt2mobi3_app-0.2.1-py3-none-any.whl |
|---|---|
| Size | 23.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a8b71d446df76fbe0dbe4d6ce125016940406ede50baf6b3ff5c590233ef4b8
|
|
BLAKE2b-256 checksum How to use checksums |
e4cf99b1e91a793b4a122fc40875be4773d6b5f0e97d615dfbfbdf30e37f2f94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6
|
Security for txt2mobi3-app 0.2.1
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.