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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ebook_homebrew-1.1.3.tar.gz.
File metadata
- Download URL: ebook_homebrew-1.1.3.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2db59e5b33097ddf79ae1bab6fb2c762fb4207f64c7d8586ef812fbf7bd08a0a
|
|
| MD5 |
1d63ec211c70cf8686ea949dd66427fb
|
|
| BLAKE2b-256 |
4efaf997bfbd65215291f5d3663152df5d10076e98e1b4e0ea93ed62a2c40c16
|
File details
Details for the file ebook_homebrew-1.1.3-py3.6.egg.
File metadata
- Download URL: ebook_homebrew-1.1.3-py3.6.egg
- Upload date:
- Size: 33.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c7ce6add44645c987f76ba70c6b0f317b367ee1bae0532204bbec0507b1655
|
|
| MD5 |
af74264d4a10145b599346729e53f5e3
|
|
| BLAKE2b-256 |
ecfe1178bfa40ac15dd91d4141e9b2173a43c59a4680a31da1596d28da96f07d
|
File details
Details for the file ebook_homebrew-1.1.3-py3.5.egg.
File metadata
- Download URL: ebook_homebrew-1.1.3-py3.5.egg
- Upload date:
- Size: 33.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3af063676f791f071cf76f78bac0a92eed61917a16cf6353398876e0a200406d
|
|
| MD5 |
44c6c49bb1d598499d42549c6b1ce3c5
|
|
| BLAKE2b-256 |
d5b61d56bb7206cb789650fedef8cb39da7ebfd1e7a1768b875b36b820309ff6
|
File details
Details for the file ebook_homebrew-1.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: ebook_homebrew-1.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/36.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a036c5bf9bd73a88ddf349f19ac9ba1881bd896596b97eb9296efc07dcba3bf
|
|
| MD5 |
df1a0c6d8068065986cd685312d4915b
|
|
| BLAKE2b-256 |
7901cae8e0336e5259f76f4e6128e8ba508ea603142393c028d8e6b1c4476df7
|