The Ebook_homebrew
is changing file name to only digit name like 001.jpg
and make e-book format files.
ebook_homebrew is command line interface which change file name to only digit name like 001.jpg and make e-book format files.
The Ebook_homebrew is a python package, so that you can use setup.py
or pip
installer.
$ python setup.py install
$ pip install ebook-homebrew
You can use global command ebookhomebrew
.
Show help.
$ ebookhomebrew -h
Ex1) Rename image file to only digit and Create PDF file.
$ ebookhomebrew auto -s ./tests -d 3,4 -e jpg -f test.pdf
Ex2) Run Rest API Server for converting pdf from images.
$ ebookhomebrew api -p 8080
You can use ebookhomebrew command line interface.
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.
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT API Server Port
Using pytest, if you want to test.
$ pytest
If you get coverage report, run coverage and report.
$ coverage run --source=ebook_homebrew -m pytest
$ coverage report -m
Or pytest-cov param for pytest
$ pytest --cov=ebook_homebrew --cov-report html --cov-report xml
Using pytest, if you want to test with mark "--it"
$ pytest --it
With tox, you can test multiple python version.(only python3.5, 3.6)
$ tox
This Repo is studies repo which CI/CD Config by tubone. Check config on this repo!
This repository uses Travis-CI and be building jobs by push or PR branches.
Also you can check coverage with Codecov
You can check the code maintainability, smells and technical debt with CodeClimate
Scrutinizer is the CI which build app and check code quality
Appveyor is the CI which use Windows Platform and Push the artifacts to PyPI
This repo use Azure Dev Ops Azure Pipelines with platform MacOS.
Shippable is the CI use Docker containers.
CircleCI is the great CI which can use selenium (not use selenium test in this repo but use ebook-homebrew-vue-typescript-client).
LGTM is code smells check.
Snyk is fix and prevent vulnerabilities in this code.
This repo use ReadTheDocs by Docs.
Push master branch, build docker container with DockerHub
Stand alone Web GUI. Such as Create PDF from your images by using Flask.
Command Line Tools which client app for REST API.
Client App with ebook-homebrew's rest API
Using Vue.js, Call REST API.
ebook-homebrew-vue-client (deprecated)
ebook-homebrew-vue-typescript-client
Using Rust, Call REST API by CLI
Deploy Ebook-homebrew to Heroku app.
Push a button below.
The ebook-homebrew REST API DEMO is deploy to Heroku.
https://ebook-homebrew.herokuapp.com/
Using Vue.js, Call REST API DEMO App, deploy to Heroku.
https://ebook-homebrew.herokuapp.com/#/sample
Using Flutter, Call REST API DEMO Android App, deploy to Deploygate. Try me!
And also, you can download to Google Play
Ebook Homebrew presentation is made in GitPitch.
This software is released under the MIT License, see LICENSE.
The Document write by Sphinx.