What's Changed
- Migrate to PEP 517 compliant build by @jborean93 in #379
- Added ignore revs file for tracking commits with bulk sanity changes by @jborean93 in #380
- Add type annotations by @jborean93 in #381
- Add WSManFaultError by @jborean93 in #382
- Add new public APIs for header and command output by @jborean93 in #383
- Fix up subpackages in dist by @jborean93 in #384
Version 0.5.0
- Dropped Python 2.7, 3.6, and 3.7 support, minimum supported version is 3.8
- Migrate to PEP 517 compliant build with a
pyproject.toml
file - Added type annotation
- Added
WSManFaultError
which contains WSManFault specific information when receiving a 500 WSMan fault response- This contains pre-parsed values like the code, subcode, wsman fault code, wmi error code, and raw response
- It can be used by the caller to implement fallback behaviour based on specific error codes
- Added public API
protocol.build_wsman_header
that can create the standard WSMan header used by the protocol- This can be used to craft custom WSMan messages that are not supported in the existing actions
- Added public API
protocol.get_command_output_raw
- This can be used to send a single WSMan receive request and get the output
- Unlike
protocol.get_command_output
, it will not loop until the command is done and will not catch a timeout exception
Full Changelog: v0.4.3...v0.5.0