Releases: viamrobotics/viam-python-sdk
v0.21.0b0
This release introduces two major breaking changes, summarized below:
Removing PIL from the SDK
Summary:
The python SDK no longer decodes images natively. It is up to the user to use whatever image pipeline they want. We’re maintaining utility functions in viam.media.utils.pil
to assist in the transition, but you as the consumer will have to make sure that Pillow
is installed. The helper functions are: viam_to_pil_image
and pil_to_viam_image
.
Example usage:
# Modular Camera
async def get_image(...) -> ViamImage:
pil_image = ... # your existing code that returns PIL image
return pil_to_viam_image(pil_image)
# Client Code
async def run_client():
camera = ...
viam_image = camera.get_image(...) # Used to be PIL Image
pil_image = viam_to_pil_image(viam_image)
...
The same methods can be used to provide a ViamImage
to the VisionService.
Expected Impact: Every modular Camera and VisionService that does not pin their python-sdk version. All client code that calls on a Camera or VisionService that does not pin their python-sdk version.
AppClient no longer saves org_id
Summary:
app_client
APIs no longer make assumptions about which org a user is authed to when making calls.
In all methods where an org_id
is relevant, users will now be required to pass org_id
as the first argument. This is an important change because it allows for greater flexibility in the scoping of API keys.
# before
_ = app_client.list_organization_members()
# after
_ = app_client.list_organization_members("MY_ORG_ID")
Expected Impact: Any clients/scripts/modules using the AppClient
v0.18.0
What's Changed
- Automated Protos Update by @github-actions in #575
- rc-0.17.0 by @github-actions in #574
- Automated Protos Update by @github-actions in #576
- RSDK-7192 - Provisioning wrappers by @stuqdog in #577
- RSDK-6487, RSDK-4456 : Update comment for vision service code snippet by @bhaney in #572
- Remove is org member check by @njooma in #582
- rc-0.18.0rc2 by @github-actions in #584
Full Changelog: v0.17.0...v0.18.0
v0.18.0rc2
v0.18.0rc1
What's Changed
- Bumped rust-utils version to
0.2.4
to fix client streaming issues - Automated Protos Update by @github-actions in #575
- rc-0.17.0 by @github-actions in #574
Full Changelog: v0.17.0...v0.18.0rc1
v0.17.0
What's Changed
- rc-0.16.1 by @github-actions in #565
- RSDK-6184: better module logs over gRPC by @purplenicole730 in #557
- Automated Protos Update by @github-actions in #566
- RSDK-7014: Configure python to flush to stdout despite not being connected to a tty. by @dgottlieb in #568
New Contributors
- @dgottlieb made their first contribution in #568
Full Changelog: v0.16.2...v0.17.0
v0.17.0rc2
Full Changelog: v0.17.0rc1...v0.17.0rc2
v0.17.0rc1
What's Changed
- rc-0.16.1 by @github-actions in #565
- RSDK-6184: better module logs over gRPC by @purplenicole730 in #557
- Automated Protos Update by @github-actions in #566
- RSDK-7014: Configure python to flush to stdout despite not being connected to a tty. by @dgottlieb in #568
New Contributors
- @dgottlieb made their first contribution in #568
Full Changelog: v0.16.2...v0.17.0rc1
v0.16.2
- Update protos
- Add parameter whether to send email invites when creating an organization invite
Full Changelog: v0.16.1...v0.16.2
v0.16.1
What's Changed
- RSDK-6664 correct docs by @maximpertsov in #549
- Fix broken setup link by @npentrel in #551
- DOCS-1876: Add examples for ML and vision services by @skyleilani in #547
- Add method snippets for other clients by @npentrel in #544
- DOCS-1879: Update base.py by @npentrel in #552
- DOCS-1869: Add robot client examples by @skyleilani in #548
- Build arm7l whl by @biotinker in #553
- rc-0.15.0 by @github-actions in #546
- Automated Protos Update by @github-actions in #554
- RSDK-4857 musllinux binaries for python SDK by @biotinker in #555
- DOCS-1877: Add motion, nav, slam method examples by @skyleilani in #550
- DOCS-1875: Add generic and ViamClient examples by @skyleilani in #558
- Add billing client code samples by @npentrel in #560
- Automated Protos Update by @github-actions in #561
- RSDK-6885 - Add fields to GetPropertiesResponse by @kkufieta in #559
- [RSDK-6871] add edited map to slam client by @JohnN193 in #556
- rc-0.16.0 by @github-actions in #562
- rc-0.16.0 by @github-actions in #563
New Contributors
- @skyleilani made their first contribution in #547
- @kkufieta made their first contribution in #559
- @JohnN193 made their first contribution in #556
Full Changelog: v0.15.0...v0.16.1
v0.16.1rc1
What's Changed
- RSDK-6664 correct docs by @maximpertsov in #549
- Fix broken setup link by @npentrel in #551
- DOCS-1876: Add examples for ML and vision services by @skyleilani in #547
- Add method snippets for other clients by @npentrel in #544
- DOCS-1879: Update base.py by @npentrel in #552
- DOCS-1869: Add robot client examples by @skyleilani in #548
- Build arm7l whl by @biotinker in #553
- rc-0.15.0 by @github-actions in #546
- Automated Protos Update by @github-actions in #554
- RSDK-4857 musllinux binaries for python SDK by @biotinker in #555
- DOCS-1877: Add motion, nav, slam method examples by @skyleilani in #550
- DOCS-1875: Add generic and ViamClient examples by @skyleilani in #558
- Add billing client code samples by @npentrel in #560
- Automated Protos Update by @github-actions in #561
- RSDK-6885 - Add fields to GetPropertiesResponse by @kkufieta in #559
- [RSDK-6871] add edited map to slam client by @JohnN193 in #556
- rc-0.16.0 by @github-actions in #562
- rc-0.16.0 by @github-actions in #563
New Contributors
- @skyleilani made their first contribution in #547
- @kkufieta made their first contribution in #559
- @JohnN193 made their first contribution in #556
Full Changelog: v0.15.0...v0.16.1rc1