Skip to main content

isbnx

从 PDF、图片、EPUB、MOBI 和压缩包中智能提取 ISBN 号

Python License Documentation


安装

pip install isbnx
# 或
uv add isbnx

系统依赖

pyzbar(条形码解码):

  • Windows: 需要安装 Visual C++ 运行库
  • macOS: 设置环境变量 export DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH

pdf-inspector(可选,PDF 类型检测): 参考安装


快速开始

from isbnx import extract

result = extract("cover.png")
if result.success:
    print(result.bookinfo.isbn13)  # 9787123456789

CLI

isbnx cover.png          # 提取并打印结果
isbnx --json book.pdf    # JSON 格式输出
isbnx --strict 2 book.zip

支持格式

类型 格式 提取策略
图片 PNG / JPG / WebP / BMP / PDG ONNX 检测 → OCR / 条码
PDF PDF 文本搜索 / 渲染检测
EPUB EPUB OPF 元数据 → XHTML 扫描
MOBI MOBI EXTH 元数据 → 文本扫描
压缩包 ZIP / RAR / UVZ meta.xml → bookinfo.dat → PDG 图片

详细文档

完整文档、API 参考、提取流程请访问:

👉 isbnx.readthedocs.org

Download files

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

Source Distribution

isbnx-0.0.8.tar.gz (10.0 MB view details)

Uploaded Source

Built Distribution

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

isbnx-0.0.8-py3-none-any.whl (10.0 MB view details)

Uploaded Python 3

File details

Details for the file isbnx-0.0.8.tar.gz.

File metadata

  • Download URL: isbnx-0.0.8.tar.gz
  • Upload date:
  • Size: 10.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for isbnx-0.0.8.tar.gz
Algorithm Hash digest
SHA256 9fbee88285461c12f8e66d853bfb2751783cd899ab06a078e798ceb0b9c29493
MD5 c2b6552a838d1b09bbe7dfaaf9427901
BLAKE2b-256 76170ecc3ccf8eeff917e357deb54066559829c3d6923e5ac41a459ee1536cde

See more details on using hashes here.

File details

Details for the file isbnx-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: isbnx-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 10.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for isbnx-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2d12b600d6e6c0082b74317e2d67fdd7c8890bd52a8e0a91c37a859988de8aad
MD5 b44d3fee019bafd82dfb0a5e48175027
BLAKE2b-256 125553726d1de43d9ad75bfd091526c39f04aac422cd771e6f5c9e8b97c86e7c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

This release

0.0.8 This release

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page