зеркало из
1
0
Форкнуть 0
Граф коммитов

4 Коммитов

Автор SHA1 Сообщение Дата
Darren Cohen 5066ef78e6
Image Analysis SDK - updates for Beta 3 release (#36468)
Re-emit from TypeSpec. TypeSpec changes include adding Entra ID auth and rename of some input argument names in the operation methods (instead of image_content, call it image_url and image_data, depending on the method). There is no breaking change in the APIs, since the auto generated operation methods are internal. Public operation methods (handwritten in _patch.py) have not changed, and already include image_url and image_data input arguments in the appropriate overloads.

Add two samples with Entra ID auth, using DefaultAzureCredential.

Add two tests with Entra ID auth, using get_credential from the test recording library.

Updated package, samples and test README files to mention Entra ID related changes.

Some minor fixes in sample function names.
2024-07-23 11:51:38 -07:00
Darren Cohen 24ae37e31c
Image Analysis SDK: Post-release updates, re-emitting SDK with latest TypeSpec files (no public API changes) (#34000) 2024-01-25 11:16:27 -08:00
Darren Cohen 9fb905c405
Re-generate Image Analysis SDK with: tox run -e generate -c ..\..\..\eng\tox\tox.ini --root . (#33772)
* After running tox run -e generate -c ..\..\..\eng\tox\tox.ini --root .

* Run again, this time with added pyproject.toml

* Pick up new TypeSpec change, with prop name `list` instead of `values`

* Update samples & test to use 'list' prop name instead of 'values'

* No need to suppress mypy `attr-defined` error. Update README.md code snippets

* Use uniform style in sample code

* Hand fix emitter bug (GitHub issue filed). Remove mypy.ini (no longer needed). Fix code style I don't like

* Fix pylint issues
2024-01-10 12:10:50 -08:00
Darren Cohen b135011785
Image Analysis Python SDK (#33487)
* Image Analysis Python SDK

* Fix ci.yml name and add code owners

* Update cspell.json and CODEOWNERS

* Root README.md: Use full-path links, fix broken links, and some other minor text correction

* Fix `Run Pylint` issues. Add README.md on hand-customization

* More pylint fixes

* Fix samples errors in `Run MyPy` job, and update root README.md

* mypy fixes in test

* More mypy fixes in test

* More mypy fixes in test

* More mypy fixes in test

* Fix Run Pyint

* Recordings for sync tests

* Test recordings for async

* Push test recordings to azure-sdk-assets

* Correct build of path to load sample.jpg

* Add 'TestProxy: true' to ci.yml

* Add mypy.ini file to suppress errors from auto-generated _models.py

* 2nd attempt to suppress MyPy errors

* Add samples and tests README.md files

* Fix `Verify Readmes` by excluding README.md in the test folder

* Set version to 0.16.0b1

* Changed my mind... going back to version 1.0.0b1

* Fix sphinx issues

* Fix pylint

* Move customization to _patch.py files

* Suppress MyPy errors on sample code. The error message was: `error: ImageAnalysisClient has no attribute analyze  [attr-defined]`

* Update root README.md

* Address review comments from xiangyan99. Thank you Xiang!

* Revert back to Python 3.7 as required minimum version instead of 3.8, size ADO pipeline still uses 3.7 for Windows tests

* Updates to MyPy error suppression

* Add notes in root README.md to mention Document Intelligence service

* Updates samples: closing bracket in a new line

* Remove the call to client.close() from sync samples. Add one more async sample. Fix docs for VisualFeature

* Fix typo in samples README.md

* Minor updates, based on review comments from the Java SDK PR

* Update release date and comment in CHANGELOG.md

* Fix Lint CODEOWNERS issue (unrelated to this PR)

* Fix typo

* Remove unneeded `f` from print(f...) when no argument specified

* Update code-snippets in package README.md following previous commit to sample code

* No need for `bytes` in the call to `bytes(f.read())`. Also fix broken sample_ocr_image_url_async.py

* Use aka.ms links for ref-doc and packages. Also update aka.ms link for sample.jpg

* Pick up new TypeSpec commit, where one ref-doc sentence was removed

* Use overloads with image_url and image_data as inputs

* fix `tox run -e pyright` error

* Fix pylint error, that was a result of my pyright fix...

* Attempt to workaround ref-doc issue tool https://github.com/Azure/autorest.python/issues/1315

* Do the same as previous commit, but for the async client

* Fix Pylint issue (missing distributed_trace_async)

* Make sure analyze overload ref-docs appear

* make sure client constructor ref-docs appear
2024-01-09 15:06:14 -06:00