-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start making all APIs use iterator protocol instead of bespoke method…
…s/classes ad infinitum (#11) * feat!: always in-memory parser and use iterator protocol (mostly) * fix: avoid error if x was a tuple for some reason * test: fix tests * fix: minor tweaks * ci: benchmark * chore: ruff * ci: make benchmark a separate job * ci: make benchmark a separate workflow * ci: report ccoverage * refactor!: make lines/revlines behave the same way * refactor!: remove the utterly useless PDFResourceManager * chore: ruff * fix: tolerate mangled PDF headers * refactor!: nexttoken redundant for lexer * refactor!: PDFEliminate PDFExtra PDFCharacters PDFEverwhere PDFWe PDFHave PDFNamespaces PDFAfter PDFAll * refactor!: there can be only one (parser) * refactor!: page indices (0-based), PDFRemove PDFMore PDFPrefixes * docs: describe the desired API * fix: seek 0 in iter * feat: iterator-based layout API * chore: ruff it up * fix(tests): test layout against pdfminer.six * fix: error consistent with pdfminer * fix: ensure xobjects actually work * fix: validate against pdfminer * fix: STRICT breaks things * fix(test): extra-dependencies
- Loading branch information
Showing
26 changed files
with
1,977 additions
and
2,567 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Benchmark | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install Hatch | ||
uses: pypa/hatch@install | ||
- name: Run benchmarks | ||
run: | | ||
hatch run bench:all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.