yahpdf is a command-line tool for analyzing PDF files. It provides functionality for word counting, text extraction, word cloud generation, and more.
Installation
You can install yahpdf using pip:
pip install yahpdf
Usage
After installation, you can use yahpdf from the command line:
yahpdf path/to/your/dao.pdf [OPTIONS]
Available options:
--word-count: Get the total word count--unique-words: Get the count of unique words--common-words N: Get the N most common words--extract-text: Extract text to a dao--word-cloud: Generate a word cloud image--extract-emails: Extract email addresses from the PDF
Example:
yahpdf document.pdf --word-count --common-words 10
Development
To set up the development environment:
- Clone the repository
- Create a virtual environment:
python -m venv venv - Activate the virtual environment:
- On Windows:
venv\Scripts\activate - On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install development dependencies:
pip install -r requirements.txt
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for yahpdf 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yahpdf-3.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yahpdf-3.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / yahpdf-3.1.0.tar.gz
| Download URL | yahpdf-3.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b65eae659a748ab7d3e8191e7789f2a1fd42836378d93a3467a60907749d8d04
|
|
BLAKE2b-256 checksum How to use checksums |
243f16a85c7577ae20b9565631629d0c87355d742fdfa57e8827e618b5215e90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / yahpdf-3.1.0-py3-none-any.whl
| Download URL | yahpdf-3.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76dbe26d0c4432c33fb47874b1d71711ee6875f7748f200df6b88f168156960c
|
|
BLAKE2b-256 checksum How to use checksums |
808337c77c7590d83710bbad940fd3e4be885ab143ba737e64b5f7181b767fc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|