Skip to main content

A simple tool to search for strings or list PDF files within a directory.

Project description

PDFSearcher

PDFSearcher is a simple Python tool for searching a specific string within PDF files located in a specified directory and its subdirectories. It outputs the file paths where the string is found.

Features

  • Recursively searches for a given string in all PDF files within a folder and its subfolders.
  • Prints out the paths of the PDF files where the search string is found.
  • Easy to install and use.

Installation

You can install the package via pip after uploading it to PyPI:

pip install find-in-pdf

Or, you can install it locally by cloning the repository and using:

pip install .

Usage

To use pdfsearcher in your Python code, you can simply import it and call the search_pdfs_in_folder function.

from pdfsearcher import search_pdfs_in_folder, list_products

# Example usage
folder_path = "/path/to/folder"
search_string = "your search string"
search_pdfs_in_folder(folder_path, search_string)
list_products(folder_path)

You can also use it as a command-line tool:

pdfutility search /path/to/folder "search_string"
pdfutility list /path/to/folder

Local dev usage

python search.py search /path/to/folder "your_search_string"
python search.py list /path/to/folder

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

find_in_pdf-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

find_in_pdf-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file find_in_pdf-0.2.0.tar.gz.

File metadata

  • Download URL: find_in_pdf-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for find_in_pdf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f633a3ce59a1d5eb8029065407368fe2fbaedb446354dd0fbd3d3e6ea6211426
MD5 72845217d12bc8ac19c3cb6a69a6ba2d
BLAKE2b-256 e918ff4f11a4d86e889433192cd8ea4e5442d50d320d4ee2191297fe72578782

See more details on using hashes here.

File details

Details for the file find_in_pdf-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: find_in_pdf-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for find_in_pdf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf1ef505e3bb2c3e76f889a35f9091394fe4add4980fdd7d2d9b4b7d704da8f
MD5 a389e59e881d8dae57922ef3303748d3
BLAKE2b-256 fe41417aa472f2d4434e3468aa8382664af7fc1607b2a7accc41225d602feb5e

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