Skip to main content

A powerful PDF processing tool with text extraction, table recognition, and image extraction capabilities

Project description

PDF Processor

一个强大的 PDF 处理工具,用于处理和管理 PDF 文件。

功能特性

  • PDF 文件处理
  • 支持多种操作系统
  • 简单易用的 API

安装

基础安装

pip install .

开发环境安装

pip install ".[dev]"

测试环境安装

pip install ".[test]"

依赖管理

项目使用 pyproject.tomlrequirements.txt 进行依赖管理:

  • requirements.txt: 基础依赖
  • requirements-dev.txt: 开发依赖
  • requirements-test.txt: 测试依赖

开发指南

环境设置

  1. 克隆仓库
git clone <repository-url>
cd pdf-processor
  1. 创建虚拟环境
python -m venv venv
source venv/bin/activate  # Linux/macOS
# 或
.\venv\Scripts\activate  # Windows
  1. 安装开发依赖
pip install ".[dev]"

代码规范

项目使用以下工具确保代码质量:

  • black: 代码格式化
  • isort: import 语句排序
  • flake8: 代码风格检查
  • mypy: 类型检查

运行测试

pytest

使用示例

from pdf_processor import PDFProcessor

# 创建处理器实例
processor = PDFProcessor()

# 处理 PDF 文件
processor.process("input.pdf", "output.pdf")

项目结构

pdf-processor/
├── pdf_processor/
│   └── __init__.py
├── tests/
│   └── __init__.py
├── pyproject.toml
├── requirements.txt
├── requirements-dev.txt
├── requirements-test.txt
└── README.md

贡献指南

  1. Fork 项目
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交改动 (git commit -m '添加一些特性')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 创建 Pull Request

许可证

本项目基于 MIT 许可证 - 详见 LICENSE 文件

作者

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

rainbow_pdf_processor-0.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

rainbow_pdf_processor-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file rainbow_pdf_processor-0.1.0.tar.gz.

File metadata

  • Download URL: rainbow_pdf_processor-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rainbow_pdf_processor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b592a509725177bc11b79bc8234ffb6dd8436ae6629546b83684f06eeae96c9c
MD5 38940c7673cc2d9b319ed1d18b9af4e7
BLAKE2b-256 09f448b83d92cba958757dbde0ff562b471f0785ae1946452f21c1a20732ac05

See more details on using hashes here.

Provenance

The following attestation bundles were made for rainbow_pdf_processor-0.1.0.tar.gz:

Publisher: python-publish.yml on RainbowGuysForFun/pdf-processor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rainbow_pdf_processor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rainbow_pdf_processor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49aa791add3a7563c035fbdc5a247843e0ae717d65b82bb2fe259c3066ff6b6c
MD5 944bc7e693a16d7139d1e3dd10503c65
BLAKE2b-256 3bbc81e31e6ddec59eb20004a20d21cfd90fb67d6b837e040f81eed7e87a0969

See more details on using hashes here.

Provenance

The following attestation bundles were made for rainbow_pdf_processor-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on RainbowGuysForFun/pdf-processor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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