Measurement Plug-In SDK for Python v2.1.0-dev2
Pre-release
Pre-release
·
5 commits
to releases/2.1
since this release
Compatibility Notes
- The version for a measurement plug-in is now specified in the
.serviceconfig
file. If your plug-in specifies version using the constructor of the MeasurementService 'version' parameter and not with a 'version' element in the.serviceconfig
file, the version will be ignored and your service will be registered as version 0.1.0. - Configuration parameters with array types should be treated as
Sequence[T]
orIterable[T]
rather thanList[T]
. You can still index, iterate, slice, etc. but some operations such as concatenating with another list or tuple are not supported. If you need the parameter to be converted to a list or a tuple, you should do that in your measure() function. See this example.
New Measurement Plug-In Client Generator
- Added the client generator, allowing users to call into a measurement plug-in from Python (#889, #891, #892, #900, #901, #902)
Bug Fixes and Minor Changes
- Measurement Plug-In Generator Bug Fixes Since v2.1.0-dev1
- Raise errors for invalid enums (#920)
- Update default value for the pin map sites (#921)
- Fix mypy errors (#929)
- Update client to resolve a specific plug-in version (#938)
- Fix SyntaxWarning caused by incorrect escape sequence (#934)
- Add dependency on service (#947)
- Provide support backward compatibility for Older libraries (#951)
- Fix Path type conversion and type hints for client codegen (#952)
- Examples
- Update version checking to warn that version is deprecated and error if there is no .serviceconfig version (#935)
- Add resolve service with information API in the discovery client (#950)
Full Changelog: 2.1.0-dev1...2.1.0-dev2