Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes issues related to asynchronous extraction of table results by updating version information, reorganizing dependency groups, and improving example usage in the notebook.
- Bump project version from 0.0.22 to 0.0.23 and adjust dependency grouping in pyproject.toml.
- Update the asynchronous extraction example to use an environment variable for the API key and adjust execution/order of notebook cells.
- Enhance the async parser by returning the "result" key if present in the JSON response.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pyproject.toml | Bumped version and moved Levenshtein dependency to optional. |
| examples/async_extract_tables.ipynb | Updated API key initialization, file path, and markdown display. |
| any_parser/async_parser.py | Added support for returning "result" from the JSON response. |
| any_parser/init.py | Updated version information. |
| ], | ||
| "source": [ | ||
| "display(Markdown(markdown_output))" | ||
| "display(Markdown(markdown_output[4]))" |
There was a problem hiding this comment.
Ensure that 'markdown_output' is a list with a valid index 4 in all cases; otherwise, this may result in an IndexError at runtime.
| "display(Markdown(markdown_output[4]))" | |
| "if len(markdown_output) > 4:\n", | |
| " display(Markdown(markdown_output[4]))\n", | |
| "else:\n", | |
| " print('Error: markdown_output does not have enough elements to access index 4.')" |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Description
Previously:

After fix:

Related Issue
Type of Change
How Has This Been Tested?
Screenshots (if applicable)
Checklist
Additional Notes
PR Type
Bug fix
Description
Support
resultkey in async parserBump package version to
0.0.23Move
Levenshteinto optional dependenciesUpdate example notebook usage environment
Changes walkthrough 📝
__init__.py
Version bump to 0.0.23any_parser/init.py
__version__from 0.0.22 to 0.0.23pyproject.toml
Bump version and update dependenciespyproject.toml
Levenshteinunder optional dependenciesasync_parser.py
Add `result` key support in parserany_parser/async_parser.py
"result"in JSON responsejson_response["result"]if presentasync_extract_tables.ipynb
Update async extract tables exampleexamples/async_extract_tables.ipynb
import osand env var API keysample.pdf