Skip to main content

Rename image file to only digit name and convert ebook files.

Project description

ebook_homebrew

Ebook_homebrew

The Ebook_homebrew is changing file name to only digit name like 001.jpg and make e-book format files.


http://img.shields.io/badge/license-MIT-blue.svg?style=flat https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square https://travis-ci.org/tubone24/ebook_homebrew.svg?branch=master https://codecov.io/gh/tubone24/ebook_homebrew/branch/master/graph/badge.svg Maintainability Test Coverage https://img.shields.io/codeclimate/tech-debt/tubone24/ebook_homebrew.svg?style=flat https://scrutinizer-ci.com/g/tubone24/ebook_homebrew/badges/quality-score.png?b=master https://scrutinizer-ci.com/g/tubone24/ebook_homebrew/badges/code-intelligence.svg?b=master https://ci.appveyor.com/api/projects/status/mx93pu69tqkngjxv?svg=true https://img.shields.io/appveyor/tests/tubone24/ebook-homebrew.svg?style=flat https://dev.azure.com/meitantei-conan/ebook_homebrew/_apis/build/status/tubone24.ebook_homebrew?branchName=master https://img.shields.io/azure-devops/tests/meitantei-conan/ebook_homebrew/1.svg?compact_message&style=flat https://api.shippable.com/projects/5c64353c33944406008b4ae8/badge?branch=master https://circleci.com/gh/tubone24/ebook_homebrew.svg?style=svg https://img.shields.io/lgtm/alerts/g/tubone24/ebook_homebrew.svg?logo=lgtm&logoWidth=18 https://img.shields.io/lgtm/grade/python/g/tubone24/ebook_homebrew.svg?logo=lgtm&logoWidth=18 https://snyk.io/test/github/tubone24/ebook_homebrew/badge.svg?targetFile=requirements.txt Documentation Status https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/pypi/dm/ebook-homebrew.svg Latest PyPI version https://img.shields.io/pypi/pyversions/ebook-homebrew.svg https://img.shields.io/pypi/format/ebook-homebrew.svg https://img.shields.io/gitter/room/tubone24/ebook_homebrew.svg https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg https://beerpay.io/tubone24/ebook_homebrew/badge.svg Waffle.io - Columns and their card count

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ebook_homebrew-1.1.4.tar.gz (13.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ebook_homebrew-1.1.4-py3.6.egg (33.2 kB view details)

Uploaded Egg

ebook_homebrew-1.1.4-py3.5.egg (33.6 kB view details)

Uploaded Egg

ebook_homebrew-1.1.4-py2.py3-none-any.whl (16.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ebook_homebrew-1.1.4.tar.gz.

File metadata

  • Download URL: ebook_homebrew-1.1.4.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

Hashes for ebook_homebrew-1.1.4.tar.gz
Algorithm Hash digest
SHA256 3adfac9cc13d2403ce2d9fbd7093b8aedb8e5817de0c93541bb70edefb24b127
MD5 85f951a1f8e2b11f9759eb0462a92337
BLAKE2b-256 f910c1c4e5cdfc430212bd55393605521eec90962365b382850139231a50d878

See more details on using hashes here.

File details

Details for the file ebook_homebrew-1.1.4-py3.6.egg.

File metadata

  • Download URL: ebook_homebrew-1.1.4-py3.6.egg
  • Upload date:
  • Size: 33.2 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

Hashes for ebook_homebrew-1.1.4-py3.6.egg
Algorithm Hash digest
SHA256 e3a30436c6b9a20b446dfbbf8dcfd4b96595c2d9fd97585e9ef77199ea592911
MD5 9b0913d571f94dd78a39026da4e980c0
BLAKE2b-256 d6f22fb3a83b45452a3bd008e5344dfccdb541880101243e97219491152e1dd7

See more details on using hashes here.

File details

Details for the file ebook_homebrew-1.1.4-py3.5.egg.

File metadata

  • Download URL: ebook_homebrew-1.1.4-py3.5.egg
  • Upload date:
  • Size: 33.6 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

Hashes for ebook_homebrew-1.1.4-py3.5.egg
Algorithm Hash digest
SHA256 bf137f17a9ec83ed08ea8101ea2191103f5c73a9af7e0ea27c6f4c288daeb27c
MD5 9f0932bddea646d468537e3afc519399
BLAKE2b-256 095b26916cca825a74648fef51f0cf085f690e02e620277350507e656fa983cb

See more details on using hashes here.

File details

Details for the file ebook_homebrew-1.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: ebook_homebrew-1.1.4-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

Hashes for ebook_homebrew-1.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ed44fbf5c04449bd8a9253cd58b3b119bc975bf9194b77081bcace46b09d3c6
MD5 68e64b88cc16165a629cccaf880393dc
BLAKE2b-256 b03e52cd3e5610dc5c42f17a640a81820fcd65d94aeb162170ea9c4bd5832c5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page