跳转到主要内容

A cli工具用于重命名您的电子书。

项目描述

bookpy

重命名您的电子书以实现更好的组织。

支持的文件

目前仅支持pdf文件。

依赖项

Python包

  • isbnlib

  • isbntools

  • click

额外依赖项

基本用法

bookpy [OPTIONS] [SRCS]...

SRCS are the books sources (individual files or a directory).
If no source is given, the current directory will be taken.

Options:
  --version            Show the version and exit.
  -r, --recursive      Get all files recursively from a directory.
  -t, --template       Specify a template with which the books are renamed.
                       Default template is '{short_title} - {main_author} ({year})'
  -h, --help           Show the help and exit.

示例

之前

books/
├── 97.things.every.programmer.should.know.pdf
├── Algorithms.pdf
├── clean_code.pdf
├── intro algorithms.pdf
├── os - andrew tanenbaum.pdf
├── Refactoring.pdf
├── SoftSkills.pdf
└── the_pragmatic_programmer_Andrew_Hunt.pdf

命令

bookpy books/

之后

books/
├── 97 Things Every Programmer Should Know - Kevlin Henney (2010).pdf
├── Algorithms - Robert Sedgewick.pdf
├── Clean code - Robert C. Martin.pdf
├── Introduction To Algorithms - Thomas H. Cormen (2009).pdf
├── Operating Systems - Andrew S. Tanenbaum (2014).pdf
├── Refactoring - Martin Fowler (1999).pdf
├── Soft Skills - John Z. Sonmez (2014).pdf
└── The pragmatic programmer - Andrew Hunt.pdf

安装

使用pip

pip3 install bookpy

手动安装

git clone https://github.com/stsewd/bookpy

cd bookpy

pip3 install -r requirements.txt

pip3 install .

即将推出

  • 根据特定ISBN重命名文件。

  • 线程。

  • 指定单词之间的分隔符。

  • 完整模板支持(每个元素(作者、标题等)的模板)。

  • 指定文本大小写。

  • 支持epub文件。

  • 密集搜索。

项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

bookpy-0.1.2.tar.gz (3.7 kB 查看哈希值)

上传时间:

由以下机构支持