Pycognaize

Latest version: v1.4.55

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

Scan your dependencies

Page 30 of 47

0.3.9a3

- Add EnvConfigEnum.SNAPSHOT_ID
- get snapshot_path using snapshot_id
- refactor LOCAL_SNAPSHOT_PATH to SNAPSHOT_PATH
- Update snapshot.py tests

0.3.9a2

- page.search_text() did not find certain substrings present in page.free_form_text(). Found two reasons for this behavior.
* The list of ocr-data passed to `find_frirst_word_coord` was page.ocr('words'), which has the entries sorted by word_id. This makes the sort flag of the function obsolete, and second it leads to cases in which the coordinates of sub-strings from page.free_form_text() cannot be found using the function the order of the words in page.free_form_text() is unrelated to word_id.
For example a sub-string of page.free_form_text() might be “brown fox” with the word_id of “brown” being equal to 3 and “fox” being equal to 8. In this case find_first_word_coords would not find the coordinates, as it would break the for-loop as the word with word_id 4 is not “fox”.
This behavior was fixed by passing the ocr data in the same order as in page.free_form_text(), still giving the option to sort it by word_id using the sort-flag.
* Inside the find_first_word_coord function the words of the sub-string were always put through a cleanup regex before being compared to the ocr_text (which was not cleaned up if the clean-flag was set to false). This leads to cases in which a sub-string such as “Phone: 12345” would not be found as “Phone:” would be cleaned up to “Phone”.
This was fixed by either putting the words of the sub-string as well as the values for ocr_text through a cleanup regex or neither of them, depending on the clean-flag.

0.3.9a1

- Implement and/or update all tests for 0.3.7 versions (ALL TESTS PASS)
- Optimize imports

0.3.8a5

- Fix page.search_text()

0.3.8a4

- Add `Model.evaluate`
- Fix changelog wrong years (Incorrect 2020 years changed to 2021)

0.3.8a3

- Fix table divider offsets and interruption coordinates (FIXES THE BUG FROM 0.3.8a2)

Page 30 of 47

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.