Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-documentai-toolbox
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0-alpha
Choose a base ref
...
head repository: googleapis/python-documentai-toolbox
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.9.1-alpha
Choose a head ref
  • 8 commits
  • 49 files changed
  • 5 contributors

Commits on Jul 17, 2023

  1. build(deps): [autoapprove] bump cryptography from 41.0.0 to 41.0.2 (#142

    )
    
    Source-Link: googleapis/synthtool@d6103f4
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:39f0f3f2be02ef036e297e376fe3b6256775576da8a6ccb1d5eeb80f4c8bf8fb
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    35f975b View commit details
    Browse the repository at this point in the history
  2. chore(deps): update all dependencies (#140)

    Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
    renovate-bot and holtskinner authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    4908e99 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. Configuration menu
    Copy the full SHA
    fcf5dbd View commit details
    Browse the repository at this point in the history
  2. refactor: Major refactoring of functions to improve readability, effi…

    …ciency and follow standard practices. (#139)
    
    * refactor: Reorganize hocr functions
    
    - Use more jinja templating instead of hardcoding strings
    - Simplified bounding box function
    - Changed parameter name for `_get_hocr_bounding_box` to `page_dimension` for more clarity.
    
    * samples: Added sample for convert to hocr
    
    * refactor: Reordering of classes in page.py
    
    * refactor: Re-added refactoring to remove extra `get_*()` methods in page.py
    
    - Added in #110 Lost in Merge
    
    * fix: Moved `templates` directory into package.
    - Required for template to work in installed library
    
    * chore: Ran isort and black
    
    * chore: Ran no-implicit-optional
    
    * refactor: Refactored document.py
    - improve readability, follow python conventions, and improve efficiency
    - Also, fixed a previously unknown bug where `Document.search_pages()` returned inaccurate results because it only searched paragraph.text, not page.text
    
    * refactor: Refactor gcs_utilities for readability/pythonic style
    
    * refactor: Refactor page.py to improve efficiency, readability and follow python conventions
    
    * refactor: Rename `Entity.documentai_entity` to `Entity.documentai_object` to match the page.py file
    
    * refactor: Move bounding box extraction to `docai_utilities.py`
    
    * refactor: Major Refactoring of converter_helpers.py to simplify/organize functions, reduce complexity, and increase readability
    
    * fix: Fixed refactor of export_images in document.py
    
    * refactor: Cleanup of blocks.py using `getattr()`
    
    * refactor: Refactoring of bbox_conversion.py to improve readability and efficiency
    
    * fix: Change _get_files() to send full gcs uri to _get_bytes()
    - Also reduce wait_time in tests
    
    * refactor: Move `converter_helpers.py` functions into `converter.py`
    
    - `converter.py` only had one external facing function that called an internal function with the same parameters.
    - Not sure if there was a specific reason for this setup, can be undone if needed.
    
    * chore(deps): update dependency google-cloud-documentai to v2.16.1 (#138)
    
    * fix: Change _get_files() to send full gcs uri to _get_bytes()
    - Also reduce wait_time in tests
    
    * refactor: Move `converter_helpers.py` functions into `converter.py`
    
    - `converter.py` only had one external facing function that called an internal function with the same parameters.
    - Not sure if there was a specific reason for this setup, can be undone if needed.
    
    * chore: Reran black formatting after merge conflict
    
    * refactor: Minor refactoring of test_bbox_conversion.py to improve readability
    
    * refactor: Changed blocks.py to block.py for consistency.
    
    - Changed how `Block` is initialized.
    - Changed `load_blocks_from_schema` into a `@classmethod` to simplify imports.
    
    * fix: Added Missing type annotations to `document.py`
    
    * fix: Add new filename for block.py into test_bbox_conversion.py
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * fix: Fix failing tests for Block class. Changed all fields to have types
    
    * fix: Changed `converter._get_bytes` to return a Tuple
    
    * chore: Addressed Code Review Comments
    
    - Removed FILES_TO_IGNORE
    - Simplification of logic in `_get_multiplier` `convert_bbox_to_docproto_bbox`
    - Addressed other lint errors
    - Adjusted function names to indicate not protected members.
    
    * fix: Remove extra reference to metadata_blob
    
    * fix: Change expected test output and remove references to `geometry`
    
    ---------
    
    Co-authored-by: Mend Renovate <bot@renovateapp.com>
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    3 people authored Jul 20, 2023
    Configuration menu
    Copy the full SHA
    82ac823 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. build(deps): [autoapprove] bump pygments from 2.13.0 to 2.15.0 (#146)

    Source-Link: googleapis/synthtool@eaef28e
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f8ca7655fa8a449cadcabcbce4054f593dcbae7aeeab34aa3fcc8b5cf7a93c9e
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    d29ff95 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. build(deps): [autoapprove] bump certifi from 2022.12.7 to 2023.7.22 (#…

    …148)
    
    Source-Link: googleapis/synthtool@395d53a
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:6c1cbc75c74b8bdd71dada2fa1677e9d6d78a889e9a70ee75b93d1d0543f96e1
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    5fbd921 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Configuration menu
    Copy the full SHA
    e380fd7 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. chore(main): release 0.9.1-alpha (#152)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    eba4427 View commit details
    Browse the repository at this point in the history
Loading