Spacypdfreader

Latest version: v0.3.2

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.2

**Changes**

- Support for Python 3.8 to 3.12 and all future 3.0 versions of Python ([16](https://github.com/SamEdwardes/spacypdfreader/issues/16), [#21](https://github.com/SamEdwardes/spacypdfreader/issues/21))
- Added local testing to test matrix of supported Python versions.
- Switch from poetry to uv for managing project dependencies and building project.
- Update dependencies.

**Fixes**

None

0.3.1

**Changes**

- Support for `page_range` argument ([16](https://github.com/SamEdwardes/spacypdfreader/issues/16), [#18](https://github.com/SamEdwardes/spacypdfreader/issues/18)).

python
import spacy
from spacypdfreader import pdf_reader
from spacypdfreader.parsers import pytesseract

nlp = spacy.load("en_core_web_sm")
doc = pdf_reader("tests/data/test_pdf_01.pdf", nlp, pytesseract.parser, n_processes=4, page_range=(2, 3))


**Fixes**

- Remove `shed` as a dependency. It was removing unused imports that were required ([17](https://github.com/SamEdwardes/spacypdfreader/issues/17)).

0.3.0

**Changes**

- Added support for multi-processing. For example:

python
import spacy

from spacypdfreader.parsers import pytesseract
from spacypdfreader.spacypdfreader import pdf_reader

nlp = spacy.load("en_core_web_sm")
doc = pdf_reader("tests/data/test_pdf_01.pdf", nlp, pytesseract.parser, n_processes=4)
print(doc._.first_page)
print(doc._.last_page)
print(doc[12].text)
print(doc[12]._.page_number)


- Changed the way in which parsers are implemented. They are now implemented with a function as opposed to a class. See <https://github.com/SamEdwardes/spacypdfreader/tree/feature/multi-processing/spacypdfreader/parsers> for examples.

**Fixes**

None

0.2.1

- Added examples to the API docs.
- Added continuous deployment for GitHub pages.

0.2.0

- Added support for additional pdf to text extraction engines:
- [pytesseract](https://pypi.org/project/pytesseract/)
- [textract](https://textract.readthedocs.io/en/stable/index.html)
- Added the ability to bring your own pdf to text extraction engine.
- Added new spacy extension attributes and methods:
- `doc._.page_range`
- `doc._.first_page`
- `doc._.last_page`
- `doc._.pdf_file_name`
- `doc._.page(int)`
- Built a new documentation site: [https://samedwardes.github.io/spaCyPDFreader/](https://samedwardes.github.io/spaCyPDFreader/)

0.1.1

- 0.1.1 Python ^3.7 support by SamEdwardes in [https://github.com/SamEdwardes/spaCyPDFreader/pull/2](https://github.com/SamEdwardes/spaCyPDFreader/pull/2)

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.