Rename image file to only digit name and convert ebook files.
Project description
Ebook_homebrew
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.
Getting Started
The Ebook_homebrew is a python package, so that you can use setup.py or pip installer.
Using setup.py
$ python setup.py install
Or using pip installer
$ pip install ebook-homebrew
Usage
You can use global command ebookhomebrew .
Show help.
$ ebookhomebrew -h
Ex) Rename image file to only digit and Create PDF file.
$ ebookhomebrew auto -s ./tests -d 3,4 -e jpg -f test.pdf
ebookhomebrew command line interface
You can use ebookhomebrew command line interface.
Subcommands
Choose subcommands. Usually choose "auto"
{auto}
auto Make only digit file name, convert e-book file such as PDF
Options
-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.
Testing
Unit Test
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
Integration Test
Using pytest, if you want to test with mark “–it”
$ pytest --it
With tox
With tox, you can test multiple python version.(only python3.5, 3.6)
$ tox
Travis-CI
This repository uses Travis-CI and be building jobs by push or PR branches.
Licence
This software is released under the MIT License, see LICENSE.
API Document
The Document write by Sphinx.
Changelog
v1.0.0 (2019-1-14)
First release.
v1.1.0 (2019-02-05)
Rename to digit filename a little bit speedy for using asyncio
More Testcase(Windows)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for ebook_homebrew-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9a34644de1b158bf47146c3bb5680fc11843c7e0db6485146cd63cbfee2aa0 |
|
MD5 | f005a901dd40929bd066c0c7777a5081 |
|
BLAKE2b-256 | 673fbec6c58b81206c38a44bc3976c13340549380fdd02bd94a52a39157aa6d7 |