将图像文件重命名为数字名称并转换电子书文件。

ebook-homebrew的Python项目详细描述


电子书_自制

e book_homebrew 正在将文件名更改为只有数字名,如 001.jpg 并生成电子书格式的文件。


http://img.shields.io/badge/license-mit-blue.svg?style=flathttps://img.shields.io/badge/prs-welcome-brightgreen.svg?style=flat squarehttps://travis-ci.org/tubone24/ebook庠u Homebrew.svg?branch=masterhttps://codecov.io/gh/tubone24/ebook廑u homebrow/branch/master/graph/badge.svgmaintabilitytest coveragehttps://img.shields.io/codeChimate/tech-debt/tubone24/ebook\u自制.svg?style=flathttps://scrunizer-ci.com/g/tubone24/ebook椆homebrew/badges/quality-score.png?B=masterhttps://scrunizer-ci.com/g/tubone24/ebook椆homebrew/badges/code-intelligence.svg?b=masterhttps://ci.appveyor.com/api/projects/status/mx93pu69tqkngjxv?我想问一下,你是谁?svg=truehttps://img.shields.io/appveyor/tests/tubone24/ebook-homebrew.svg?https://dev.azure.com/meitantei-conan/ebook\u自制/api/build/status/tubone24.ebook\u自制?BranchName=masterhttps://img.shields.io/azure-devops/tests/meitantei-conan/ebook椆homebrew/1.svg?https://api.shippable.com/projects/5c64353c33944406008b4ae8/badge?branch=masterhttps://circleci.com/gh/tubone24/ebook庠u homebrow.svg?style=svghttps://img.shields.io/lgtm/alerts/g/tubone24/ebook廑homebrow.svg?logo=lgtm&logowwidth=18https://img.shields.io/lgtm/grade/python/g/tubone24/ebook\u自制.svg?logo=lgtm&logowwidth=18https://snyk.io/test/github/Tubone24/ebook_自制/badge.svg?targetfile=requirements.txtdocumentation statushttps://img.shields.io/badge/code%20Style-black-000000.svghttps://img.shields.io/pypi/dm/ebook-homembrew.svg最新的pypi版本https://img.shields.io/pypi/pyversions/ebook-homembrew.svghttps://img.shields.io/pypi/format/ebook-homembrew.svghttps://img.shields.io/gitter/room/tubone24/ebook_Homebrew.svghttps://img.shields.io/badge/say%20谢谢-!-1aedb.svghttps://beerpay.io/tubone24/ebook\u自酿自酿/badge.svghttps://dply.me/yv0jty/button/smalldockerhub部署到heroku

e book_homebrew是一个命令行界面,它将文件名更改为只有数字名,如001.jpg,并生成电子书格式的文件。

入门

电子书是一个python包,因此您可以使用 setup.py pip 安装程序。

使用setup.py
$ python setup.py install

或使用PIP安装程序
$ pip install ebook-homebrew

用法

您可以使用全局命令 电子书自制程序

显示帮助。

$ ebookhomebrew -h

ex1)将图像文件重命名为数字并创建pdf文件。

$ ebookhomebrew auto -s ./tests -d 3,4 -e jpg -f test.pdf

ex2)运行rest api服务器从图像转换pdf。

$ ebookhomebrew api -p 8080

电子书自制命令行界面

您可以使用电子书自制的命令行界面。

子命令
Choose subcommands. Usually choose "auto"{auto,api,makezip}
 auto      Make only digit file name, convert e-book file such as PDF
 api               Provides Rest API interfaces
 makezip           Make zip file for adding specify extension files.
自动选项
-h, --help            show this help message and exit
-s SRC_DIR, --src_dir SRC_DIR
                      Source directory which put original image files.
--dst_dir DST_DIR     Destination directory which put e-book file.
-d N,N, --digit N,N   Serial number digits you remain file name
-e EXT, --extension EXT
                      Destination directory which put e-book file.
-f FILENAME, --filename FILENAME
                      Destination directory which put e-book file.
-m, --manual          Duplicate file name, solving manually.
-r, --remove          Remove original image file.
-y, --assume_yes      no verify users.
选项API
optional arguments:
-h, --help            show this help message and exit
-p PORT, --port PORT  API Server Port

测试

单元测试

如果要测试,请使用pytest。

$ pytest

如果您得到覆盖率报告,请运行覆盖率和报告。

$ python setup.py install
0

或pytest cov param用于pytest

$ python setup.py install
1

集成测试

使用pytest,如果您想用mark"–it"

$ python setup.py install
2

含毒素

使用tox,您可以测试多个python版本(仅python3.5、3.6)

$ python setup.py install
3

ci/cd

本文研究的是tubone对ci/cd进行配置的回购协议。 检查此回购的配置!

特拉维斯指数

该存储库使用travis-ci travis ci 并通过push或pr分支创建作业。

codecov

此外,您还可以使用codecov查看覆盖率。

编码气候

您可以使用codeComplate查看代码的可维护性、气味和技术债务

审查者

审查者 是构建应用程序并检查代码质量的CI

供应商

appveyor 是使用Windows平台并将工件推送到 pypi的CI

可发货

可发货 是CI使用的Docker容器。

圆圈

Circleci 是可以使用硒的伟大CI(在本回购协议中不使用硒测试,但使用 电子书homebrow vue typescript client )。

lgtm

lgtm 是代码气味检查。

snyk

snyk 修复并防止此代码中的漏洞。

已阅读文档

此回购使用 按文档阅读文档

文档hub

推主分支,用dockerhub构建docker容器

示例

独立Web图形用户界面

独立的网络图形用户界面。例如,使用烧瓶从图像中创建pdf文件。

使用rest api的命令行工具

用于rest api的客户端应用程序的命令行工具。

带有ebook自制rest api的客户端应用程序

vue.js前端应用程序

使用vue.js,调用rest api。

电子书自制vue客户端(不推荐)

电子书自制vue-typescript客户端

rust命令行客户端

使用rust,通过cli调用rest api

电子书自制rust客户端

将api部署到heroku

将电子书自制部署到Heroku应用程序。

按下下面的按钮。

部署到heroku

演示

rest api

电子书自制rest api演示版已部署到heroku。

https://ebook homebrew.herokapp.com/

rest api文档(openapi)

前面有vue.js

使用vue.js,调用rest api demo app,部署到heroku。

https://ebook homebrow.herokapp.com//sample

使用flutter Android应用程序

使用flutter,调用rest api demo android app,部署到deploygate。试试我!

通过DeployGate在您的设备上试用

此外,您还可以下载到 谷歌播放

许可证

此软件在麻省理工学院许可下发布,请参阅许可证。

API文件

Sphinx编写的 文档

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Thumbnailator库将图像转换为cmyk   Java反射从目录中的类运行测试   JavaEclipseJDT编译器说方法未定义,但EclipseIDE没有   重构如何重构一行重复的java代码   java Eclipse:使用删除线文本呈现自定义注释   java问题与ArrayList复制数据   java如何在swagger中传递访问令牌?   使用另一个java文件运行java文件时出错   java为什么谷歌云存储生成的上传链接在成功上传后不会失效?   java将我的客户端PC重定向到默认登录页面   java hibernate c3p0配置mysql问题   java和java之间的区别。尼奥。文件文件和java。伊奥。文件   列出java循环并向映射中添加值   java为什么OJ报告这段代码的运行时错误?