Enhancement features: sorting, deduplication, output naming, rich results, and verbosity controls #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a collection of enhancements to improve the usability and functionality of fetcharoo:
sort_byparameter (Add sort_key parameter for merge mode ordering #3)deduplicateparameter (Deduplicate PDF URLs by default #4)output_nameparameter (Add custom output filename for merge mode #5)ProcessResultdataclass with detailed download statistics (Return detailed result object from process_pdfs instead of bool #6)-q/--quietand-v/--verboseflags (Add --quiet flag to CLI #8)Changes
New Features
sort_by='numeric',sort_key=fn--sort-by numericdeduplicate=True(default)output_name='book.pdf'--output-name book.pdfProcessResultfetcharoo-q,-qq,-v,-vvFiles Changed
fetcharoo/fetcharoo.py- Core implementation of all featuresfetcharoo/cli.py- CLI argument parsing and logging configurationfetcharoo/__init__.py- Export new symbols (ProcessResult,SORT_BY_OPTIONS)README.md- Documentation for all new featurestests/test_enhancements.py- 32 new tests for all featurestests/test_*.py- Updated mocks to use named loggerTest Plan
Closes
Closes #3, closes #4, closes #5, closes #6, closes #7, closes #8